Answer Questions
SED \CLR Compilation woes!
Iv compiled my current C++ project as \clr as i want to start putting in some specific C++\CLI code to serialize my MFC objects to .NET equivalents. The program crashes on startup, something to do with the stack frame being corrupted. My first concern is the program has ballooned in terms of the size of the executable image. When it attempts to run it fails and some report about stack frame corruption. Iv noticed any C files have to be conver ...Show All
Avanthi How to get rid of a console window appearing with my .NET win app
I have a solution that contains a number of projects both managed and native C++. The EXE startup project is a .NET app though. For ages now I've been getting a console window coming up as well as the main window when the project starts up. That was fine during development because I could output debug info to it etc. But now its coming close to the release date and I need to get rid of it. I didn't do anything earlier because in my naivity I tho ...Show All
jamie1ky forward reference to class template - template param not in scope
I'm seeing what look like buggy results from the compiler where it chokes on the use of a T<X>& to a declared but undefined class template T (a forward reference), iff the fwd reference is to a dependent type name (e.g. X is a template parameter). Looks rather like a 2-phase name lookup bug of some kind - an area where the compiler has had conformance issues with the C++ Standard. Here is a file I wrote that reproduces the problem as ...Show All
Malini Reddy crypto++ compiler errors
Trying to switch to VC++ 2005, and here is the major problem I am facing: When compiling crypto++ v 5.2.1. http://www.eskimo.com/~weidai/cryptlib.html the following error message is reported (only in Debug mode - Release builds and runs just fine): c:\program files\microsoft visual studio 8\vc\include\xutility(292) : error C2664: 'bool CryptoPP::CodeLessThan::operator ()(const CryptoPP::HuffmanDecoder::code_t,const CryptoPP::HuffmanDecode ...Show All
plusall about " while ( cin >> string) "
I am studing a famous book called "c++ Primer" by Stanley B.Lippman. and in it, there is a program as follows: #include <string> #include <iostream> #include <vector> using namespace std; void main () { string word; vector < string > text; while ( cin >> word) { text.push_back( word ); } cout << "words read are: \n"; for ( int ix = 0; ix < text.size(); ++ix) { cout ...Show All
Gary zhuo Problems in Release Compilation
My Visual C++ 6.0 MFC project serves as a framework that loads a variable series of MFC extension DLLs that do most of the work of the project. Although the DLLs vary widely in function and complexity, they have many common features and derive from a common base class. All of the DLLs export a configure() function. In most cases, the configuration is accomplished with a standard MFC dialog and associated class derived from CDialog. ...Show All
Aspera __CONTEXT from winnt.h in x64
Hi .... i am getting the following error when including one of my previous code constructs. It is using the member of Struct CONTEXT from winnt.h, error C2039: 'Ebp' : is not a member of '_CONTEXT Dont have much depth in x64 bit system structs or its equivalents for x64. any idea for its substitute or a suggestion for correction will be highly appreciated. Best Regards, - Imran. You can preprocess the file using the /P compil ...Show All
WoofDg79 ATL with CLR in released VS2005 problem (beta 2 OK)
TWO problems with ATL and /CLR option... PROBLEM #1 Create project with VC6 as ATL, both threading model, MFC support, and free threaded marshaller. Convert with the released version of VS2005: At this point, all is OK Add /CLR support per MSDN How To: Compile MFC and ATL Code with /clr. FAILS: does not register. When registered with RegSvr32 manually, get a run-time error 80040111 from client. This is INTERESTING: Build the source with Be ...Show All
inspirone Baby C++ developer needs to know what this commonly recieved exception means:
I have been seeing this message for as long as I have been using computers...I seem to have generated one of my own now that I am a professional programmer. What causes this Are there, say, 4 common things that do this, and if so, how is it resolved I am looking for a general answer. Here is the exception: Unhandled exception at 0x0051abd1 in Infuzer.exe: 0xC0000005: Access violation reading location 0x0147ae98. Also, I will note that this part ...Show All
Devukjs Initializing an array of pointers to functions
I am writing a dialog based MFC appliation using Visual C++ 6.0. In my simplified test case, I added the following definitions to the header (TestDlg.h). typedef void FOO(); FOO show1{}; FOO show2{}; FOO show3{}; FOO *pfun[3]; At the end of the OnInitDialog() code (before return TRUE;), I attempted to initialize the array as follows: pfun[0] = show1; pfun[1] = show2; pfun[2] = show3; Each of these lines has compile error C2440: '=' : ...Show All
steve19 calling Activex methods from a static function--Dialog-based application
i am using an Activex control in a dialog based applicaton(VC++). i created an member variable for that(myportcontroller). In an non-static function i am able to call the Activex control methods using the member variable and worked fine. But i need to call the activex control methods in an static function. Here i cannot use the member variable as it is a static function. So, i declared an object for Activex control class. Using that object i cal ...Show All
fhunter XML reader for native C++
Hi! I'm looking for a small C++ XML SAX reader, similar to XmlTextReader in .NET. The most important thing is that the library is small can be statically linked. Can anybody recommend me anything Thanks in advance! I never had problems with this. Just look at the changes to MSXML3 and MXML4! Check the interfaces, but as I know: the basic functions never changed! But whats basic for you :-) I'm afraid I haven't got much experience ...Show All
Ross Miltenberg System tray ICON
Hi, How can I display a system tray Icon in VC++. How can I set up a menu for this system tray icon. Thanks, Nibu thomas. If you use MFC this is a good article: http://www.microsoft.com/msj/archive/SDBE.aspx Else read the docs and search for articles about Shell_NotifyIcon http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/functions/shell_notifyicon.asp frame=true ...Show All
Nitin2162000 running unknow methods
Hi, I have a object with 'function attribute' - void (*function1)(CString); Another object have a function what i want to call from first object. I made code like this, but if the called method is member of some object this syntax doesnt work. How can I write it Thank you class CRAPIFunc { void (*function1)(CString); void runMethod(void) }; CRAPIFunc::runMethod(void) { function1(); // run ...Show All
bigwes99 can entry point for a program may be cahnge
hi friends , i dont know wheter this is a correct place to put my query or not. can aprogram amy work without a main() entry point of a program may be changed or not Hi, in the project propeties->Linker->Advanced->Entry point you can change the entry point function name of your application. ...Show All
