vc6

Are there any reasons not to use Visual Studio 6 for C++?

Are there any reasons why I shouldn't use Visual Studio 6 for C++ development? Where can I find some resources why this would or wouldn't be a good idea? Are there any lists of issues I would have with this? ...

Advantage of porting vc6 to vc2005/vc2008?

I was asking my team to port our vc6 application to vc2005, they are ready to allot sometime to do the same.Now they need to know what is the advantage of porting. I don't thing they really understand what does it mean to adhere to standard compliance. Help me list out the advantage to do the porting. Problem I am facing are 1)No deb...

How to conditionally compile VC6 resources

Hi, depending on a compile switch (values are COMPILE_A or COMPILE_B), which is set in the form of an envorinment variable, I want to compile my application with different settings, like application name and splash screen. I got this far: In "Project / Settings / C/C++ / Preprocessor Definitions" I added $(COMPILESWITCH) (results in...

vc++ install creator

VC++ 6.0 Project After Completing my project i created the project EXE ,using Create Installer, But the problem is without vc++ 6.0 software the EXE project it will not execute , it shows error: This application has failed to sart because MFC42.DLL has not found,Re-installing the application may fix this. When i insatll vc++ 6.0 sof...

Linker problems after switching to VS2005 from VC6 (LNK4099)

Hi, I ported one of my old projects to VS2005 and am having linker warnings such as xxxxx.lib(xxxxxxxx.obj) : warning LNK4099: PDB 'vc60.pdb' was not found with ...; linking object as if no debug info Now, I've tried rebuilding the project but the warnings won't go away. Is it really supposed to be looking for vc60.pdb and not vc8...

wrong argument conversion preferred when calling function

I'm writing a program under MS Visual C++ 6.0 (yes, I know it's ancient, no there's nothing I can do to upgrade). I'm seeing some behavior that I think is really weird. I have a class with two constructors defined like this: class MyClass { public: explicit MyClass(bool bAbsolute = true, bool bLocation = false) : m_bAbsolute(bAbso...

How to make the vertical scrollbar follow the data?

In a VC++ 6.0 MFC of mine, I added an EditBox with Vertical Scrollbar, every 10 seconds I am reading data from serial port and I have to display through EditBox(IDC_EDIT1), I done it without any problems. But one typical problem I am facing which is that, whenever a new data displayed in the EditBox the vertical scrollbar goes up and da...

Editbox Scrollbar

In VC++ 6.0 i have developed the MFC Application i have to show the data on the screen repeatedly through EditBox, But the default scrollbar doesn't fits, How to Set a VScrollBar and process it with EditBox. I am not using VScrollBar and "AutoScroll" property of EditBox which i made it false. Bcz VScrollBar and "AutoScroll ,the beh...

How can adding code to a loop make it faster?

I have a simple function with an inner loop - it scales the input value, looks up an output value in a lookup table, and copies it to the destination. (ftol_ambient is a trick I copied from the web for fast conversion of float to int). for (i = 0; i < iCount; ++i) { iScaled = ftol_ambient(*pSource * PRECISION3); if (iScaled <=...

solution file

what is solution file in visual c++ 6.0, how to geneate the solution file. ...

Can I use a Visual Studio 6 compiled C++ static library in Visual Studio 2008?

Is it possible to use a C++ static library (.lib) compiled using Visual Studio 6 in Visual Studio 2008? ...

problem with IHTMLDocument2::write()

I am trying to create an mshtml document object from an html buffer. But when the following code is executed it is invoking internet explorer window. How do I prevent it invoking IE. #include <atlbase.h> #include <mshtml.h> CoInitialize(NULL); CString strHTMLCode = _T("<html><head><script language=\"JavaScript\">{top.location.href=\"...

how to build a vc++ file in commandline

How to build a Project developed in VC++ in command line i am not visual studio(2003or 2005 or 2008) ...

Is it time to say goodbye to VC6 compiler ?

Of late I'm facing the issues that points finger to VC6 compiler. Few of them are: A function-try-block doesn't work. Related Q in-class constant doesn't work. __FUNCTION_ (Macro to get function name) doesn't work The latest addition is it doesn't allow void functions to be passed as part of for_each. The below example is not compil...

Anyone using Visual Assist? How does VA get the source code content?

I'm using Visual Assist with VC6, it seems to be a powerfull tool. As a programmer, I'm curious about the implementation. I'm wondering how does VA get the source code content? it seems that VA knows every line of my code file, even when it's modified and not saved into file. I've looked into addin dev for a while, VC6's addin interface...

how to view CString object value in debug in VC6 environment

In VC 6 environment what is the settings to be done to view the value of the CString in debug mode. Even in watch window ??? appears for CString variables! ...

How to create a structure which contains a list of itself

I want to create a structure which contains a list of same structure like this. #include <list> struct Url { CString strUrl; std::list<Url> children; }; void main() { Url u1, u2; u1.children.push_back(u2); } This code is not compiling. But when I replace std::list with std::vector it is working fine. How can I make th...

Cannot load workspace in VC++6

I have copied a project to a new directory, and now the workspace will not load into the vc++6 ide. There is no error, just no workspace. I have diff'ed the dsw and dsp files, and they are the same. ...

Using visual studio 6 c++ compiler from within emacs

Hey guys, I'm just getting started with c++ development and I would like to use emacs to write the code and then compile and run it from within emacs using the visual studio 6 compiler. I have already googled around a bit but just can't seem to find an explanation of how this is done. Any pointers? Thanks for your help, joerg ...

missing ; before identifier while compiling VC6 code in VC9

The following code compiles fine in VC6 but when I compile the same project in VS2008 it gives the following error error C2146: syntax error : missing ';' before identifier 'm_pItr' template <class pKey, class Data, class pCompare, class hKey = int, class hCompare = less<hKey>, class sKey = int, class sCompare = less<sKey...