Answer Questions
dogbear ATL Server Performance Monitor classes and PERF_ELAPSED_TIME.
I am using the ALT Server performance monitor classes to create performance counters. The performance counters that are defined as PERF_COUNTER_RAWCOUNT are working perfectly. The performance counters defined as PERF_ELAPSED_TIME are not. // Definition for the performance object DECLARE_PERF_CATEGORY_NO_INSTANCES(QuemonPerfObject, 1, _T( "Quemon" ), _T( "Quemon Performance Objects" ), -1); // Definition for ...Show All
Trond Brande try catch
I am getting some compiler errors catch blocks that I have not figured out. Consider these: c :\myprojects\mstqrequisitionobj\reqheadr.cpp(4190) : error C2310: catch handlers must specify one type c:\myprojects\mstqrequisitionobj\reqheadr.cpp(4194) : error C2065: 'exc' : undeclared identifier c:\myprojects\mstqrequisitionobj\reqheadr.cpp(4194) : error C2228: left of '.what' must have class/struct/union type is ''unknown-type'' c: ...Show All
Borimir Japanese Application
Hi I developed an Jananese application in MFC (VS 7.2). When i run this application in Japanese Windows its working fine, if i run in other then japanese it display charactors. How can i solve this problem Manoj Jangid No, sorry. I've never tried to actually accomplish what you are trying. I have always been able to require that my customers use the correct language OS. Displaying Chinese (or Japanese) on an English OS ...Show All
Michael Palladino Info about some types
What these types below represent (what kind of data they store ) and how can I use them (declaration and assign of data) - LPCSTR - LPCTSTR -LPCWSTR And how can I show a MessageBox dialog in a MFC Application And the last one, how can I use a DLL also created in C++ in a C++ Visual Application Can this application be made in C++ .Net, or it must be MFC like the DLL Thanks. The datatype question has already been answered ...Show All
Cha Chunchadatharn Visual C++ 2005 Express Edition Beta - Wizards
I'm new to C++ programming. I need to create a CFX tag written in C++. The information I've found refers to using Visual C++ Cold Fusion Tag Wizard. However, this is must not be a standard wizard with the express edition. Is there a way to install this, or do I need to upgrade. Moreover, does the Coldfusion tag wizard come with Visual C++ 2005 standard Thanks James Thanks for the reply. However, I'm still con ...Show All
Hassano Header File Inclusion problem?
Hi guys, Please take a look at this code. I have some problems, This is not the real code, but a sample. /************************************************/ //File: SomeObject.h class CSomeObject:public CObject { //.....code goes here } //End File //File: SomeObject.cpp #include "someobject.h" CSomeObject::CSomeObject() { //.....code g ...Show All
Rembo LNK problems continued
Hard life in C++ lane, I'll tell you. Trying to compile code with unmanaged CAsyncSocket class I got LNK errors: Build Log Build started: Project: SocketCplus4, Configuration: Release|Win32 Command Lines Creating temporary file "c:\Documents and Settings\....\My Documents\Visual Studio 2005\Projects\SocketCplus4\SocketCplus4\Release\RSP00000E1064772.rsp" with contents [/OUT:"Release\SocketC ...Show All
Ryan LeCompte New to VC++, can't really get started...
I'm a C programmer and I just installed VC++, created a new project called test1, and started typing in code. I decided to make a real simple program that has some input and output so I can see how VC++ works but after I create my project and type in my code, I do not know where to go from there. I decided to debug since that is the first thing I do with all my other compilers, then compile and build but it cannot find test1.exe ...Show All
miss_platina Internal Compiler Error when using template
Here is the code: template<typename Left, typename TypeBase> class unary_op { Left lt; public: unary_op(const Left& lt) : lt(lt) {} /*template<typename T1, typename T2> struct result_2 { typedef typename TypeBase::template result_2<T1, T2>::result_type result_type; };*/ template<typename T1, typename T2> typename TypeBase::template result_2<T1, T2>::result_type operator()(const T1& t1, const T2&a ...Show All
C Davis Debug Assertion on ActiveX control (Internet Explorer)
I am facing trouble while using ActiveX control (MFC) with internet explorer. The control runs fine when loaded for the first time but when page is refreshed I receive a debug assertion. It is asserting in WinCore.cpp line 707 function: CreateEx Any help would be appreciated.. Parag Don't worry about it. I have developed a workaround. For those who are still looking for it: Create an ActiveX Control project ...Show All
Jiri Beranek msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin Hi Martin, can you clarify on what you mean when y ...Show All
otakung Override printf()
Hi, I have a C++ .NET assembly that uses some old-style un-managed C++ libs and dlls. Inside the old C++ code, printf() is used for user/developer feedback. Is there some way I can override printf() and do "my own actions" with the strings that are being printed Or somehow "catch" the printed messages that is supposed to be printed to the Console -I want to get rid of the Console window, and let the printf()-infor ...Show All
Ramesh Jha setting compiler options programmatically.
I am trying to simplify my life and set up all compiler options programmatically in a single file where I will see what is going on. I created a .cpp file and copied an MSDN function in there that is supposed to do it. My intention is to call this function eventually from the main routine. So far all attempts to compile the file failed with the errors described below. First the code: using namespace System; using namespace System::Object; using ...Show All
jdarias different location for *.ncb file
Hello, we have our *.vcproj files on the network. But all created files (*.obj, *.lib...) are stored on the local disc for performance reasons. But till now, I didn't found a way, that the *.ncb files (with VC 2005 they are really big) saved on local disc too. Not in the same diectories as the *.vcproj files. Do you any solution Thanks for your efforts Markus I second the notion that one needs to be able to reloc ...Show All
nestor_hdz Missing Text in MessageBox when called from DLL
I am writing a DLL and at times I need a MessageBox. The MessageBox fails to show the main text, and text on buttons. The problem only appears on machines other than the development machine - I assume this is related to having the development tools or some other package installed. The problem occurs when the program is run on Win2k and XP. Under NT the text appears normally but the button looks funny - the button is not d ...Show All
