visual-studio-6

How do I set up a custom build step in Visual Studio 6?

Unfortunately it looks like for various reasons I'm going to have to use Visual Studio 6 instead of a newer version of VS. It's been a long time since I've used it. I'm looking through its menus and don't see any obvious way to set up any custom build steps (pre-build, post-build, pre-link... anything would help actually). Can anyone g...

What library should be included to use TransparentBlt?

What library should be included to use TransparentBlt? This is VC98 (Visual Studio 6) linking to the Gdi32.lib. (Other GDI functions such as BitBlt link as expected), and the compilers compiles with out error or warning. Even though the Gdi32.lib is included, yet the linker returns this error: mtcombo.obj : error LNK2001: unresolved ...

Static library - visual studio 2005/6.0 compatibility

In the past we experienced some problems using a DLL library created with Visual Studio 2005 in our Visual Studio 6.0 application (VS2005 DLL was C++ unmanaged, of course). In your opinion can we fall in the same kind of problem if the library is static (*.lib) and not dynamic? ...

Visual Studio 6 VC++ Project version - how do I increment it?

I am making changes to an old program written in VC++6. the project resources include a 'version' set which include the following: Block Header Comments Company Name File Version Product Version Both FileVersion and ProductVersion are at 1.0.0.97 (where the 97 is a build number and increments each time I build the project) My changes a...

how to avoid "already defined error" in C++

I am gettings these type of errors in a MFC VS6 project while linking the application: msvcrt.lib(MSVCRT.dll) : error LNK2005: _atoi already defined in LIBC.lib(atox.obj) I know what it means (a function exists in 2 different libraries); to solve it I should have to exclude one of the 2 libraries (msvcrt.lib or libc.lib). But if I do ...

Visual Modeler in VS 6

Till date I have used only VB6 Professional for developing apps. But recently I have joined a company which owns VS 6 Enterprise (or some such version) I was just exploring what is available in VS 6 Ent. and I found Visual Modeler. The tutorial provided with it is not good enough. I was wondering if there is any detailed tutorial(s) ...

std::auto_ptr Compile Issue in Visual Studio 6.0

Update: Edited code example to use AutoA for the workaround (which was the original intention). Realized this after seeing rlbond's answer. I am trying to incorporate the usage of auto_ptr in my code based on recommendations from this thread: http://stackoverflow.com/questions/478482/express-the-usage-of-c-arguments-through-method-int...

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...

Define a struct in a midl generated header file

I am in the process of automating the build of a legacy product and have hit a wall... I have a .idl file that is compiled in VC++ 6.0 using midl to generate a .tlb, .h and .c file that has a manual build step to add: struct StructDef; Just ahead of an MIDL_INTERFACE in the generated .h file. The rest of the .h file uses the definit...

Using a COM based Addin created for Visual Studio 6 in Visual Studio 2005.

Is it possible to use an Add-in created for Visual Studio 6 in Visual Studio 2005. I know its possible for one to use COM Add-ins created for Visual Studio 2002/3 in Visual Studio 2005. Unfortunately I don't have the Add-in project, else I would have tried to upgrade. I need the Add-in to work in VS2005 because it acts like a project wi...

What are the default return values for operator< and operator[] in C++ (Visual Studio 6)?

I've inherited a large Visual Studio 6 C++ project that needs to be translated for VS2005. Some of the classes defined operator< and operator[], but don't specify return types in the declarations. VS6 allows this, but not VS2005. I am aware that the C standard specifies that the default return type for normal functions is int, and I ass...

Add syntax coloring for new filetype in Visual Studio 6?

Is it possible to change the syntax coloring for a new file type (let's call it .XYZ files) in Visual Studio (VC++) 6, and if so, how? I see where you can edit the color for comments, numbers, operators, etc. in Tools/Options/Format, but it seems to apply only to known filetypes like .C, .H, .CPP, .HPP, etc. In this particular case, XY...

Recommended migration strategy for C++ project in Visual Studio 6

For a large application written in C++ using Visual Studio 6, what is the best way to move into the modern era? I'd like to take an incremental approach where we slowly move portions of the code and write new features into C# for example and compile that into a library or dll that can be referenced from the legacy application. Is thi...

Visual Studio 6 SVN plugin

We currently use AnkhSvn with Visual Studio 2008 but have one solution that is still coded in Visual Studio 6. Are there any SVN plugins that operate with such an old IDE? Looking to move away from SourceSafe (shudder) and amalgamate our source control but would prefer to have a tool within the IDE rather than using tortoise SVN. ...

Visual Studio 2010 IDE with Visual C++ 6.0 compiler ?

How can I do that ? Can I work in VS2010 IDE but have it compile with the VS C++ 6.0 compiler? And can I work in VS2010 IDE and have it compile by using the the VS2008 compiler ? ...

How can I poll the SpaceNavigator 3D Mouse from MFC in Visual Studio 6

I have an MFC project in Visual Studio 6 and I am trying to poll the SpaceNavigator 3D mouse for angles and translation. The examples on the 3dconnexion website are for later versions of visual studio, and the archive and the ftp link referred to on the forums are outdated information. Where can I download a proper sdk for vs6? I have i...

Build Visual Studio 6 project with Visual Studio 2010

I am trying to build a project created in VS 6 with VS 2010. When I open .dsw file, VS converts the project asking me this message: "... ProjectName.dsp must be converted to the current Visual C++ project format. After it has been converted, you will not be able to edit this project in previous versions of Visual Studio. Convert and op...

Visual C++ 6.0 - fatal error C1063

Hi all, i've converted a my application originally written in MS Visual Studio 2008 to be compiled on MS Visual C++ 6.0 (see my previous question http://goo.gl/lWyM). After the conversion of all my code now compiles in Release, without debug informations. In Debug i encounter a strange problem... the error C1063. fatal error C1063: ...