vc6

Mutex needed in MSMQ?

I'm browsing source codes from two applications sharing one queue using MSMQ. The first application has a thread that writes into the queue while the second application has another thread that reads from the queue. Ordinarily, if you're implementing your own queue, the applications would need a mutex when accessing the queue, right? Howe...

Add watermark to various documents investigation

I've been asked to investigate the feasibility of adding watermarks to documents when printed through our application. The documents will consist of word, pdf and cad. The interface of the application is vb6 with a plethora of vc6 dll's. I can see a couple of possible solutions: Convert all documents to PDF, add a watermark and the...

unit testing framework for Microsoft Visual C++ 6.0

Is there a unit testing framework for Microsoft Visual C++ 6.0? ...

Visual Studio 2010 64-bit COM Interop Issue

I am trying to add a VC6 COM DLL to our VS2010RC C# solution. The DLL was compiled with the VC6 tools to create an x86 version and was compiled with the VC7 Cross-platform tools to generate a VC7 DLL. The x86 version of the assembly works fine as long as the consuming C# project's platform is set to x86. It doesn't matter whether the x6...

Compiling C code in Windows XP

I have C code that was compiled on Windows NT with Microsoft Visual Studio 6.0. I am migrating this code to a new machine using Windows XP. What IDE is suitable for this? I don't think MS Visual 6.0 has been designed for XP... Can I just use Visual Studio C++ to compile C code and keep the same functionality? ...

VC6 linking conflict

I have an old c++ project compiled with VC6. I need to statically link a new library to implement a new functionality. Unfortunately the new library define a symbol (i.e. _inflate) that is already defined in a previously linked static library. Of course I cannot get rid of either library, and of course I have no access to the library'...

LNK2001: What have I forgotton to set?

Following on from my previous question regarding debugging of native code, I decided to create a simple test from a console app as I wasn't getting anywhere with debugging the service directly. So I created a vc6 console app, added the dll project to the workspace and ran it. Instead of executing as expected it spat out the following l...

Can you tune C runtime heap segment reservation size on XP?

When the VC6 C runtime on XP can't serve an allocation request within an existing heap segment, it reserves a new segment. The size of these new segments increase by factors of 2 (until there are not large enough free areas to do that, at which point it falls down to smaller segments.) In any case, is there any way to control this behav...

VC6 compilation error

Hi there are some vs2005 c++ files in PJNSMTPCONNECTION Classes, but my application is in vc6, now can any one tell whether CSTRINGA, CSTRINGW are available in vc6.. if not how overcome this problem ...

LINK : fatal error LNK1104: cannot open file "Iphlpapi.lib"

So I'm using Visual C++ 6.0, and trying to compile some source code, but upon compilation I get this: Linking... LINK : fatal error LNK1104: cannot open file "Iphlpapi.lib" Error executing link.exe. I'm using the correct SDK, and the directories are correct. I've checked, double checked, and triple checked. The file is the specified d...

Compiler optimization causing the performance to slow down

I have one strange problem. I have following piece of code: template<clss index, class policy> inline int CBase<index,policy>::func(const A& test_in, int* srcPtr ,int* dstPtr) { int width = test_in.width(); int height = test_in.height(); double d = 0.0; //here is the problem for(int y = 0; y < height; y++) { ...

msvcrt: memory usage goes wild, but not under debugger

I have a C++ code compiled with Intel compiler, 32bit, in MS VC6 mode, so using either msvcrt.dll or msvcrtd.dll. The process makes heavy memory allocation and deallocation. I monitor the memory usage with WMI and look at VirtualSize and WorkingSetSize. with debug runtime (msvcrtd.dll): virtual constant 1.7GB, working constant 1.2GB w...

Programming PKCS12 by using VC++6.0

Hi everyone, I'm trying to develop web service client by using VC++6.0 and I need to create digital signature base on pkcs12 standard. Can anyone tell me the way to create and verify digital signature. Thank you very much Best regards. Tuan Tu ...

Convert CString to string (VC6)

I want to convert CString to string. (Yup. I know what am I doing. I know the returned string will be incorrect, if CString value range is outside ANSI, but That's Is OK!) The following code will work under VC2008. std::string Utils::CString2String(const CString& cString) { // Convert a TCHAR string to a LPCSTR CT2CA pszConver...

.lib and .dll Backward Compatibility

I currently have a VS6 unmanaged C library that I deliver as either a .lib or .dll. I want to upgrade to VS2010 but I still have users that are in VS6, VS2005, and VS2008. Can a .lib or .dll built in VS2010 be used in VS6, VS2005, or VS2008? Thanks! ...

VC6 Profiler Problem: Spurious Function Calls

I am running into the following issue while profiling an application under VC6. When I profile the application, the profiler is indicating that a simple getter method similar to the following is being called many hundreds of thousands of times: int SomeClass::getId() const { return m_iId; }; The problem is, this method is not calle...

When Does Visual Studio 6 Catch Structured Exceptions?

This is mostly curiosity, but I've been reading about the history of Visual Studio catching SEH exceptions in a C++ try-catch construct. I keep running across the assertion that older version Visual Studio with the /GX flag enabled would "somtimes" catch structured Win32 exceptions in a C++ catch block. Under what circumstances will Vi...

What is the perl format and best regular expression library that compile in MS VC++6.0 ?

I wrote a program in c++ in VC++2008 with boost library for regular expression. But my code must be compiled in vc++6.0 compiler. vc++6 has compile error when using regular expression(I'm not actually sure but I can't compile boostRegex in vc++6). So, for changing my library from boost, what is your opinion to me(one that is more simila...

unable to pass Template function as a callback parameter

Please refer the code below: typedef void (*TimerCallback)(int RequestID_in, void* AdditionalParameter_in); class MyTimer { public: MyTimer(){} bool schedule( int Interval_in, TimerCallback TimerCallback_in, void* AdditionalParameter_in) { //some logic return true; } }; names...

Message compiled into exe not found.

I'm using VC++ 6.0. I have an executable that contains a resource file and message.h file defined and I am trying to write to the event log. It is similar to the simpledown project that can be found on thecodeproject.com. The message ID is defined as 0x103. When I do the call to the ReportEvent, it writes to the event log with the buffer...