vc6

Error C2678 after migrating C++ code from VC6 to VS2008 - no operator found which takes a left-hand operand of type 'type'

This piece of code compiles file in VC6 but in VS 2008 it gives an error. Can anyone tell me why? I guess it is because you can no longer compare a pointer to NULL (which is a typedef for 0). If that is the case, how do I do this comparison in VC9? for ( std::vector<aCattrBase*>::iterator iT = attrLst.begin(); iT < attrLst.end(); iT++) ...

How to build workspace from DDK examples

Hi All, I am new to win32 programming and also to driver programing. I have installed windows DDK on my system and have got some examples with the DDK but those examples dont have dsw file, i wanted to know how can i create .dsw file so that i can open that workspace in VC6 please help me in this regard. Thanks in advance ...

Does VC2005 static library work with VC6

I am trying to provide customers with a plain old win32 static library built with MSVC2008 who are reluctant to upgrade from Developer Studio 6. I get 2 unresolved extrnal symbols: ___iob_func and __ftol2_sse. I get both both using the IDE with the plainest settings I can find, and from the command line with: cl devstudio.c /I. /l...

MSDN 2003 - How to display full path of files

We are moving from Microsoft Visual Studio 6.0 to Microsoft Development Environment 2003. In Visual Studio 6.0, the location of the file will be displayed if you go to the workspace, go to the FileView tab, right click on any file and select Properties. The full path of the file is displayed under File name. However, in 2003, the file ...

A list of known string issues in VC++ 6.0

Hi All, I am looking for some list containing all string related issues in VC++ 6.0 which are fixed in later service packs such as this one. Can anyone please help me on this regard? The reason for my search is this: We face some string related issues in our VC++ 6.0 based product. I am looking for other potential issues. Thanks. ...

VC++ 6.0 application crashing inside CString::Format when %d is given.

A VC++ 6.0 application is crashing when doing a CString::Format operation with %d format specifier. This does not occur always but occurs when the application memory grows upto 100MB or more. ALso sometimes same crash observed when a CString copy is done. The call stack would look like this mfc42u!CFixedAlloc::Alloc+82 mfc42u!CString:...

Running Visual C++ 6.0 under Windows XP - Updates and Requirements?

Okay, so I have a legacy Codebase and an old Visual C++ 6.0 Standard Installation CD. I want to install that on my Windows XP SP3 System. Is there anything I would need to avoid or to download besides SP6? Are executables created with VC6 compatible on Vista and Windows 7? (I know that there is no 64-Bit compiler, and that's fine) (I ...

How do I write the following inline assembly code in visual c++ 6.0?

Hello all, I am writing an application in C in GCC (for linux/ubuntu) that uses the following inline assembly: float a[4] = { 10, 20, 30, 40 }; float b[4] = { 0.1, 0.1, 0.1, 0.1 }; asm volatile("movups (%0), %%xmm0\n\t" "mulps (%1), %%xmm0\n\t" "movups %%xmm0, (%1)" :: "r" (a), "r" (b)); Excuse...

Bad pointer or link issue when creating wstring from vc6 dll

I got a DLL generated on VC6 and using wstring, and I'm trying to use it in a VC9 project. In this DLL there is a higher level class manipulating wstring, called UtfString. I got everything imported correctly in my project, but when I call: std::wstring test; UtfString uTest(test); it won't link, even if the function prototype is in...

MS VC++ 6 : Why return !false rather than true?

Looking at some code I noticed that another dev had changed every instance of true to !false. Why would you do that? thx ...

Browse VC6 DLL variables content (DEBUG)

Hi, I'm trying to debug an old VC6 dll, I manage to go through the code but unfortunately my vc9 debugger doesn't show the content of the variables in the dll. (browsing info I guess) I manage to see the content of my dll when I debug it in VC6 but I would prefer to be able to debug in the same time as my managed code. Maybe I'm miss...

Use bison and flex with vc6

When i use bison & flex with vc6, i got got below errors lex.yy.c(395) : error C2146: syntax error : missing ';' before identifier 'YY_PROTO' lex.yy.c(395) : fatal error C1004: unexpected end of file found what would be the cause for this?? please help. Copied from Comment: #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" in...

What does the /TSAWARE linker flag do to the PE executable?

After adding the /TSAWARE linker flag to one of my projects (Visual Studio 6), I was surprised to find a new section in the PE file (.idata). If I don't set the flag, the imports are merged into .rdata. To illustrate the "problem" we start out with a simple console program: #include <stdio.h> int main() { printf("hello world\n");...

Ho to read data through Serial Communication?

I am sending data through serial port on Windows.But when i am going to read that data the system goes in infinite loop.System also hangs.Please give me the solution if anyone finds it. ...

Precompiled Headers

I have a sample project (not mine) which is in Visual C++ 6. I'm trying to convert it to Visual Studio 2008. The older project is using precompiled headers. Now the questions are: What are precompiled headers? Since the older project is using precompiled headers. I'll also use them in Visual Studio 2008 (the new project). But I get er...

Compiling MFC on Visual Studio 6.0

I'm painfully debugging a legacy VS 6.0 MFC app, and I'd really like to step into MFC code. Now, the code did ship with VS6, and the symbols (mfc42.pdb) too, but the debugger asserts 'Symbols loaded (source information stripped)' upon attaching. By these tips, all copies of mfc42.pdb on my machine are indeed stripped (their size i...

how to figure out what value MSVC is using for a preprocessor macro

I'm attempting to use a /D compiler option on MSVC6 to define a string, but there's something weird about using double quotes around it. To debug this problem, it would be extremely helpful for me to be able to see what value the preprocessor is actually substituting into my code where the macro is expanded. Is there any way I can do t...

Problem with Macros

HI , Can some one help me in understanding why the value of SQUARE(x) is 49 ? I am using Visual C++ 6.0 . #define SQUARE(X) X * X int main(int argc, char* argv[]) { int y = 5; printf("%d\n",SQUARE(++y)); return 0; } ...

VC6 and template error

Hi, I am overloading operator << to implement a stream like interface for a class: template<typename T> CAudit& operator << ( const T& data ) { audittext << data; return *this; } CAudit& operator << ( LPCSTR data ) { audittext << data; return *this; } The template version fails to compile with "fatal error C1001: INT...

Is there a technique to determine if a dos app was invoked via sentto vs a dos window?

In the case of a sendto invocation, I would like to keep the application open, after it completes, so the user can look at it. In the case of a dos window invocation, the user controls when the window closes. The platform is XP using msvc 6 ...