Answer Questions
Bob_Dineen missing C++ file(cpp) template??
Hi there, I have just started learning C++. I am trying to build a console application in Visual C++ 2005 Express Edition. After i have created an empty Win32 console Application and i right click on source files in Solution Explorer then Add/New Item... Categories/Code. There is no C++ file(cpp) node displayed under Visual Studio Installed Templates. Am i doing something wrong or is there something missing. Thanks ray ...Show All
Pintag Class Pointer Problems
I have a tab-driven Visual C++ .Net program. The main window and the tab control comprise the 'root' class, and each notebook (tab) page is an child instance of a class. So, if I have 6 tab pages, I have a total of 7 classes. Each tab page (class) is inherited from the root so that I can utilize virtual functions. The Problem: I need to have the ability to send messages (Strings) between each of the tabs, so that any tab can get or giv ...Show All
RayManning Visual Studio .NET 2003 Vs. Visual Studio 2005
Hi all, I am currently working on a c/c++ application which works only on Visual Studio .NET 2003, using the .sln file provided in the package. Currently the following are installed on my system: Microsoft .NET framework 1.1 Microsoft Visual Studio .NET 2003 Professional - English MSDN Library for visual studio .NET 2003. My company now has to buy some more licences for working on the same project but a new version, Visual Studio 2005, is ...Show All
sich Problem with x64 hello world app...
Hi all, I've been trying to port a 32bit app to 64bit these past days, and finally got the thing to compile and link after a long struggle. needless to say, the thing refuses to run on my x64 XP machine, it's missing a number of libraries (assemblies, or whatever the term en vogue these days may be. God, does anybody remember the days when code was just code Sigh.) Anyhow.... I thus am now trying to create the simplest of all apps, a hello world ...Show All
marcol74 How to decide the errors
hoh to decide the error C2039 ... Sorry but i have dificult to pass the exemple to a project type CLR Windows Form. { Double Number1, Number2, Result; Number1 = txt1->Text->ToDouble; Number2 = txt2->Text->ToDouble(0); Result = Number1 - Number2; txtr->Text = Result.ToString(); } This is my code, and i dont now where is the error :( ToDouble isn't a member of String: instead the Double class has a stati ...Show All
MDiCarlo Checking for a trivial event for null
Hi, I encountered a problem when I port some codes (inherited codes) in MC++ to the new C++/CLI syntax. The errror cause a C3918. This is the snippet of the code: namespace NsCtlListView { ... public ref class CtlListView : public System::Windows::Forms::ListView { ... public delegate void VScrollEventHa ...Show All
steve hallden finding the datatype of user input
does anyone know of a way to check the datatype of a users input to see whether it is an integer or not smtraber User input to what User input is usually a stream of characters. This stream of characters might be convertible to other data type inside your program. I.E. So a stream of characters entirely consisting of characters in the range from 0x30 up to 0x39 might be converted to an integer if there is no overflow. So to check what th ...Show All
Brian Speck Having Function problems
I want to write a fuction that will add all these elements in a array it will go sorta like this, when i input all these numbers in the array it should add them and divide them buy the number entered, i am getting an errror when i call my function though any help, am i missing something in this lisiting int addup(int Numbers[ ], int count) { int a; int sum = 0; for(int a = 0; a < count ...Show All
J Drennan Compiling x86 / x86-64 asm in VC++ projects
I have VS 2005, running on Windows XP x64 on an AMD64 3400+. I recently learned some assembly, and I'm wanting to use it in some of my programming projects. Obviously, i want to compile for the x64 if possible. I'm disappointed to find that Microsoft, for some reason, does not support the __asm keyword for x86-64. I found some tutorials on compiling and linking asm files for VS 2003, and I tried them out, but they don't work for me in VS20 ...Show All
Torsten K. syntax error : missing ';' before '*' compile error using diffpack library with vsc++6.0
Hi! I am trying to use the c++ library called Diffpack. The library is only compatible with vsc6.0. When trying to compile any of the supplied applications in vsc++6. I get the following errors: spacetimescale.h(187) : error C2143: syntax error : missing ';' before '*' spacetimescale.h(187) : error C2501: 'Vec_NUMT' : missing storage-class or type specifiers spacetimescale.h(187) : error C2501: 'a_parameter' : missing storage ...Show All
cyn_atl Saying Goodbye to an Old Friend
I recently read this article regarding security changes to the C/C++ ANSI standard in order to improve overall behaviour and programming issues when dealing with memory overruns and potential malicious use of the Runtime library functions. [EDIT] http://msdn.microsoft.com/library/default.asp url=/library/en-us/dncode/html/secure03102004.asp Anyway, it was only until after starting to use the Microsoft C++ 2005 Express Beta 2 system that these c ...Show All
Babak Zallaghi Optimizing Link Times
I'm trying to merge our multi-dll project into a single EXE to get more advantage out of LTCG. The problem I'm having is that making this change has taken link times from 20-30 seconds up to 2:20, without enabling LTCG (in a debug build). I have incremental linking and use library dependancy inputs enabled, and with the uber-verbose output, it appears to be functioning. My final exe size in debug is 38 MB, and my .ilk file is 127 MB. Are there a ...Show All
Bob Dove Good Style?
I have only just recently starting using Visual Studio and Visual C++ and I've noticed that left to it's own devices the IDE has you put code it the header files of your projects rather then in a separate .cpp file. I know this works and compiles but was just wondering if this was considered good form Would it be better to make the effort to separate the code from the headers TTIA, Rene The following 2 links ...Show All
Shreveport VC2005 %50 Slower then VC2003
I just migrated a graphics application from VC2003 to VC2005. After building it, I ran a small benchmark & found that VC2005 code was about %50 slower. The Application does a great deal of floating point and integer calculations. It also converts doubles to int quite a bit (the VC2003 version used SSE to handle this). The VC2003 version used /G7 and /Ow (which are not available in VC2005) Compiler Switches Used: (vc2003)/arch ...Show All
Azam Abdul Rahim "Custom build step" of a project: execution rule ?
Hi, I am presently using "Visual Studio 2005". I defined a project to generate a DLL X but I needed to do other operations on this DLL X to generate a file Y. So I added a "Custom Build Step" on the project file to generate the Y file. I defined Y as the output file and I even added X as an additional dependency file. I changed the execution order of the Custom Build Step and put it before the "Post Build Event". The problem is that the generati ...Show All
