Answer Questions
danroot Constructor Overrides
I've got a question on something that I'm not quite clear on. Maybe somebody can help me! If I derrive a class from another class like so: // Plant class... class CPlant { public : CPlant( int par_leaves):leaves(par_leaves) {}; int leaves; }; // Tulip class with different signature on constructor... class CTulip : public CPlant { public : CTulip( bool par_hasBloomed):hasBloomed(pa ...Show All
BBedell Create an dll from existing c++ project
Hello... I have a c++ project and want to use this in a c# program. So, I thought I could make a dll from this c++ code. But I didn't find the right solution at this moment. Maybe you can help me The c++ program consists of about 15 files (.cpp and .h). I think I have to remove the main method, but then ... In my c# programm, I want to call some functions of the c++ code... Regards, Jacquipre. ...Show All
onbeach Is C++ a version of VB... Im so confused.
Ive been told that VB6 is just a simpled version of C++. Or is it a seperate language. Does it have any connection to VB6 Thank you very much. :) No, C++ is another programming langauge, Visual Stuido 2005 supports, Visual Basic.Net (or VB8), C# and C++.Net, for Visual Studio 6, it supports Visual Basic 6 and C++ ...Show All
Marcello Savorani Passing a string variable into a function
I am having passing a string variable into a class function. I am using #include <string> I can use the string variable in the normal code, but if I try to pass something of type string into a class function (in this case card.cpp) it returns this error: c:\documents and settings\philip harris\my documents\2005-2006 school year\winter 2006\comp 1672 - intro to cs ii\blackjack\blackjack\card.h(10) : error C2061: syntax error : iden ...Show All
nastynate __CxxFrameHandler3 is missing in platform sdk
I'm trying to link my x64 project Everytime I try to link libcpmtd.lib from the platform sdk (lib\AMD64\) , I receive errors like: error LNK2001: unresolved external symbol __CxxFrameHandler3 while using libcpmtd.lib shipped with Visual Studio (\Microsoft Visual Studio 8\VC\lib\amd64) it works perfectly. I observed the lib from the platform sdk and figured out that it contains no such symbol __CxxFrameHandler3, but the lib f ...Show All
Panesso .Net Framework
Hi, I have an application which I did not originally create. I develop it using Visual Studio 2003 - Visual C++.net. When I click on the configuration manager for my solution I can see that this platform, for said application is "Win32". I didnt think this was the case since my work (code) is developed compiled and run correctly using visual studio.net. Then i created a completely new project, visual c++ and chose the opt ...Show All
Mike Henderlight Header file incompatibility causes compiler errors
The following source code causes numerous compiler errors in msxml.h: #define version 438 #include <afx.h> Naming the variable something other than 'version' makes the errors go away. This suggests an error in macro definitions in one of MS's header files. I agree that the "const int" way you suggest is better than the "#define" way, in this case. However, the MS developers ...Show All
Dato0011 Importing enum under C++/CLI
I am trying my first attempts with C++/CLI but I have a minor problem. I am building a wrapper usable by all .NET languages which is importing unmanaged C/C++ code and is linking with a custom library file. I am creating a ref class as: public ref class CMyTest { public: int Init() { ...call old style function } } This function returns an integer. This integer is encoded as a old style typedef'd enum: typedef enum _errors { .. } Errors; I ...Show All
lucius153 VS 2005: Custom build step is not executed for static library project.
I've experienced a problem after migrating my Win32 static library project from VS2003 to VS2005. The custom build steps are not executed even if I perform the rebuild of the project. Custom build step is executed only in case if any project settings are changed while project loaded to IDE, but after project reloading the problem is happen again. I found that problem is reproduced also for new created static library ...Show All
Ralf Hedler NULL STL string exception with 2005
The following code properly throws an exception that is caught in the "catch(...)" below on Visual C++ version 6.0 and Visual C++ 2003. However, an exception is thrown that is not caught and a CRASH occurs on version 2005 of Visual C++. This seems like an extremely serious bug to me. Does anyone know: 1.) Is this a confirmed bug by Microsoft 2.) Is there a safe way around it. By "safe" I do not mean "just don't ...Show All
David Jemeyson Execute code, afeter object's destructor works
Hi, I'm develop a easy buster of memory leaks. All code was done, but i need to call a report function after all destructors works. I found 'atexit' function, but it works before object's destructor. Some idea... suggest... tips... thanks There are a series of function pointers set up by the CRT to be executed at exit (destructors for global objects being an obvious use for this list). I be ...Show All
riet srand
What is the difference between not using srand, using srand(1) and using srand(arbitrary value) as regards, producing repeatable sequences with rand Thanks Martin for the reply. In my application, when I use rand() without using srand, it seems to be generating different sequences every tim I run it. As the application is really huge, I guessed that may be somewhere there is an srand(current time) or something similar which is cau ...Show All
known2none Runtime Error! Program IExplore.exe - Answer to your Problems
Is this the message you get Runtime Error! Program IExplore.exe The application has requested the runtime to terminate it in an unusual way. Screen Shot: http://www.geocities.com/playpolly/runtime.gif If so, well Read Below. Short Form (for Experts only): Delete the file Vgraph.dll from \WINDOWS\ OR any other place resident Long Form: (Estimated Burden: 1-5 Minutes) STEP 1: DELETE ALL YOUR INTERNET EXPLORER (I ...Show All
ags2886 VS.NET 200 Beta 2: BadImageFormatException
Hi there, I get the BadImageFormatException on a function call in my code. How can this be, the msdn says that this exception is raised when loading invalid unmanaged code. But i am calling a member function from inside that same class. Im using C++.Net 2.0. When i step through the code the exception is raised on the moment the function is called. This is the call: String^ s = GetFileNrList(";"); All the function does is returning a ; seperate ...Show All
Eric Duncan amd 32 bit optimized code AND 64Express
I'm just wondering if some one might be able to tell me the VS 2005 linker MACHINE: to get amd 32 bit optimized code I read about it about 8 months ago, but now google pulls up way to much 64bit conversion from 32 bit, that I cant seem to find it any more Also where could i download 64Express Or a 64Express Clone Hi, There is no linker switch to get optimized code for 32 bit AMD CPUs. There is the /arch:[SSE|S ...Show All
