Answer Questions
Kikala Why is VC8 code much slower than VC7.1?
I have built the code below using both MSVC 7.1 and 8.0 beta 2, using the command shown in the initial comment. When run on a 3GHz P4 with 1GB RAM, running XP SP2, the output is as follows: VC7.1: Time = 62 VC8.0: Time = 110 Why does the 8.0 build take 1.77 times as long to run Thanks, Keith MacDonald ///////////////////////////////// // cl -Ox -EHsc -MT TimeTest.cpp #define WIN32_LEAN_AND_MEAN #include <window ...Show All
Dougins Visual C++ express beta 2: can't link std::runtime_error
This simple example won't link - unresolved external symbols for std::runtime_error (build log follows example). Command line for build: /Od /I "C:\Program Files\Microsoft Platform SDK\Include" /I "C:\Program Files\Microsoft Platform SDK\Include\atl" /I "C:\Program Files\Microsoft Platform SDK\Include\crt" /I "C:\Program Files\Microsoft Platform SDK\Include\gl" /I "C:\Program Files\Microsoft Platform SDK\Include\mfc" /D "_MBCS" /Gm /EHsc /RTC1 ...Show All
sujayg read struct from file
this is a beginner programmer questions, at least i think so. CFile::Read( void* lpBuf ,UINT nCount) i can pass a struct (first param) and the length of that struct (second param) and then i will have a populated struct. How can i do the same thing with a managed c++ function The size of an int is 2, size of a double is 8, and a long is 4, how can i adjust my struct that i am reading in to account for this offset ...Show All
Alexnaldo Santos Embedding comments in the dll for the managed classes
If I have this code: #include "Something.h" /// <summary> /// Description... /// </summary> public ref class Test { }; Is it possible to embed the comments of class Test as metadata in the dll (like in C#) If this is not possible, how can I restrict the compiler (when using /doc) from getting the comments from specific files For example, in the above example, how can I make the compiler not ...Show All
Rich S changing "licensed to" information
im trying to create a setup and deployment project to create an install for my app it creates the msi/exe files fine BUT: when i run them i get this error: "the folder path 'julius/ryan abella' contains an invalid character this is the licensed to information that can be found in help-> about microsoft visual studio in the top right. how can i c ...Show All
Mark Favor 2 timer
what happens if 2 timers ticks at the same time i'm using visual c++ .net 2003 (win form .net) Well seeing as how in a computer's world there is only one task running. Currently I have 10 browser windows open, listening to music, running 3 instances of vs.net 2 of which are running services. All of these things are doing one thing or another at the same time. To the computer it's doing one thing at a time. The operating system just switch ...Show All
Marty Byrne Compile warning D4024 and Link error LNK1181
I'm trying to convert a couple of projects from VC7.1 to VC8 and encounter this erorr for building /rebuilding every project. I have VS2005 Professional Edition, SDK 2005 April, Windows 2003 SP1 DDK installed. Error message: 1>Compiling... 1>cl : Command line warning D4024 : unrecognized source file type 'y_/', object file assumed 1>LINK : fatal error LNK1181: cannot open input file ' |/.obj' Please give some idea. Thanks. ...Show All
Janmre The joy of CObArray
Hiya, I've got a dialog based program using MFC which needs to pass an array of instances of a class inherited from CObject. I'm currently using CObArray which is quite happy to take the class but it won't give it back... Any ideas, I'm floundering again... Mike You should consider using the DYNAMIC_DOWNCAST macro to that you know that the downcast cast is safe. This MFC macro works on CObject deriv ...Show All
Yutong MSFT STL.NET
Does anyone know what is the status of STL.NET Apparently it did not ship with VS2005 or did I miss something I need STL's multimap container. Anyone know of an equivilant animal Thanks Bollwerk wrote: Does anyone know what is the status of STL.NET Apparently it did not ship with VS2005 or did I miss something I need STL's multimap container. Anyone know of an equivilant animal Thanks ...Show All
nzracer VC++ 2005 B2 error C3766:'ClassXXX' must provide an implementation for the interface method 'foo'
Hi All: I have complied the code from MSDN library for Vs2005b2, which is the example of 'interface class'. The codes are as follows: //========================================= // mcppv2_interface_class.cpp // compile with: /clr using namespace System; public delegate void ClickEventHandler(int, double); // define interface with nested interface public interface class Interface_A { void Function_1(); interface ...Show All
SMGK LockFile
How can I check if the file is already open through C++ programming. I tried to use LockFile() and _lockfile() functions but they both require number of bytes to be specified. I want to lock the whole file before writing something to it or abort the operation if another instance of that file already open. Any hints and comments will be appreciated. The problem is my code has no control over the opening ...Show All
drfoxs13 Linking error
I am using vc++ 6.0 for an application which uses nmake tool to build the required files. During the process it is giving an linking error LINK : fatal error LNK1104: cannot open file "mfc42u.lib" NMAKE : fatal error U1077: 'link' : return code '0x450' Stop. Please tell me a way to resolve this. thanks in advance I can't find mfc42u.lib, where can i download it It looks like you are missing a directory from you LIB enivronment variab ...Show All
John Hoge R6034 - attempt to load C runtime library without using manifest.
I've got a 32bit C++/MFC application that gets the R6034 error on startup. Seems odd as the application does have a manifest. And another application that I build the same way starts fine. If I compile the applicaton 64bit, it fails with "Unable to start program..." Are there any ways to debug manifest/dependency problems Claus, The sample you attached in the bug is building a dll. For dlls, t ...Show All
p3aul Strange STL ostringstream compile error with Visual Studio 2005
I have just installed Visual Studio 2005 and am building a project formerly maintained under VC++ 6.0. The compile error I cannot fathom pertains to STL, specifically it appears to be related to my use of ostringstream. I believe I have isolated the problem to one of my header files where I use the ostringstream class. However, my use of this class is obviously limited to the public interface which is why the compile error below makes no sense t ...Show All
Elijah visual c++ 6.0 vs visual c++ 2005
I am looking forward to upgrade VC++ 6.0 to Visual C++ .NET 2005. But there are things I need to know before I do... 1. What are major changes in the "object class" structure ( if there are changes). 2. Do I need to make changes for the MFC libraries that I used while coding with VC++ 6.0 when I upgrade to VC++ .NET 2005. 3. In VC++ 6.0 I can use openGL and MFC together, and I can run OpenGL in a window with th ...Show All
