Answer Questions
tyther Load Controls by Code
I am of Peru and speak Spanish but I will try to write in English. Sorry by the Errors. I am veteran of VB6, I am seeing C++ 2005 and wanted to load controls by code. In VB6 the syntax is: Load <Control>(<Index>) how I do this in C++ 2005 I am assuming that you want to load a control onto a form. To do that, you need to first construct the control and then add it to the form. The code would look ...Show All
RAnderson14 Visual C++ compiles much slower on dual core processor
The Background: I recently upgraded from a 2GHz AMD Athlon machine to a 3.2GHz Pentium D dual core processor, thinking that my Visual C++ (.NET 2003) compile times would decrease significantly. In fact, it went the other way round. One of my library projects requires 11 minutes to compile on the AMD machine, but takes 25 minutes on the dual core machine. My entire set of projects compiles in about 4 ho ...Show All
dalangalma porting code from win32 console to MFC
I was given some code developed in a Visual C++ Win32 Console Project. I was asked to port the code to a thread inside a MFC application (single document, standard MFC in a static library). I'm getting a lot of new compile errors I did not see in the Win32 Console environment (see below for a partial list of things that no longer compile). Are there a few simple things I can do to make it compile, or am I looking at a brutal undertaking strin ...Show All
Chaman Zinga 'DWORD_PTR' : undeclared identifier
Ok, I have seen several others here post questions concerning the problem of getting: error C2065: 'DWORD_PTR' : undeclared identifier ; however, I have not seen any solutions I can use. Has anyone figured out what is going on I have tried the same suggestions that others have made to no avail, including adding <windows.h>, etc. I just installed VStudio 2005 Standard on a machine that I just did a new install of W2K w/SP4, so the ...Show All
jrothwell9 MessageBox difficulty
(I am using VS 2003 .NET with a Windows Form Application project. .NET Framework 1.1) I am trying to use the simple MessageBox::Show(System::String) When I start typing just to see if it is there, I'll type System::Windows::Forms::MessageBox::Show and it all comes up right, but, when I go to compile it tells me: error C2653: 'MessageBoxA' : is not a class or namespace name when I am using it like this: MessageBox::Show((System::String*)"Hello Wo ...Show All
Nanda Motikane ArrayList::Sort() with Class
I have an ArrayList which stores different instances of a class, which contains 3 integers. I wish to sort the ArrayList by 1 of these integers. I'm sure it's possible but can't find anything on MSDN to show me how, can anyone help Thanks, IxxI This thread is a week old. Are you still awaiting an answer Note: the double spacing problem is something for which we're all waiting for a fix. Next time if you wan ...Show All
Boris Vidolov MSFT stringstream loses memory
Hello, I believe the code below shall run forever but it shall not consume more and more memory as Windows task manager shows. This problem occures for your standard library that is shipped with Microsoft Developer Studio 2005. The earlier versions seem to be unaffected. #include <sstream> int main() { for(;;) { std::stringstream ss; ss << "asdf"; } } -- Michael Kochetkov P.S. I have reported it to Dinkumware ...Show All
Ted Hacker Adding existing items (Windows forms) into a project
Environment: XPPro SP2, VS.Net2003 When I add a .Net form using the wizard, I am able to use the form designer to edit the form. However, when I add the files using "Add existing items", I won't able to use the form designer. In the later case, the resx file does not appear under the header file of the form. Is there a way to fix this Thanks! Thanks Vu! I feel so stupid. How can I ...Show All
tonyb291 iostream.h
Ciao a tutti, sto provando a usare visual c++: ho creato un'applicazione console con il seguente sorgente: // // PRIMO.CPP // Il primo esempio in C++ // #include <iostream.h> main() { cout << " CIAO MONDO! "; return (0); } Ma compilando mi da errore: dice che non puo includere il file iostream.h Io pensavo che le librerie venissero trovate in automatico. Cosa devo impostare grazie ciao:) ...Show All
Venu Sridhar Where is RLTOOLS.EXE?
I tried ftp://ftp.microsoft.com/softlib/mslfiles/rltools.exe or http://support.microsoft.com/download/support/mslfiles/RLTOOLS.EXE , but I received the "Not Found" error. I try to search microsoft.com for it, and I receive the same error. Where has RLTOOLS.EXE been moved Can anyone help me Thanks. Not sure why you don't find it: it is here: ftp://ftp.mic ...Show All
adman666 Using SSE3 inline with VC++2003
Dear All, Is there any way to allow the inline assembler in VC++2003 to support SSE3 instructions There is a file of macros/opcodes available on the Intel website for SSE3, but it is for MASM rather than the VC inline assembler. Thanks in advance, David Considering that SSE3 came after VS2003, I doubt you'll find the mnemonic in the compiler. In case it helps, you can inject bytes directly ...Show All
BeerBecks Microsoft Visual C++ Runtime Library error question
I recieve this error when I launch Internet Explorer - version 6.0 OS Windows XP Home edition 2002 Service Pack 2. Error is as follows: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Program Files\Internet explorer\iexplore.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I am not certain where to post this questi ...Show All
mwrisner Looking for physical disks
Hi, I am writing a program that needs to know how many physical disk there are in a computer and i need to know the type (harddrive, flash,etc). Is there any api functions that will help me. i don't know that much about c++ so any help would be help alot. I have looked at places like codeproject but none compile in Microsoft Visual Studio 2005. Thanks again Lance Ingle Thanks I got GetDriveType to work ...Show All
William G objbase.h
what happened to the objbase.h file in visual c++, was it replaced with something else or do you not need it as long as you have windows.h included What version and edition of VC++ are you using Is objbase.h in your platformsdk\include directory I can still see some samples for VC++ 2005 that include objbase.h. For example: http://msdn2.microsoft.com/library/z5aa1ca1(en-us,vs.80).aspx Thanks,   ...Show All
Younes AMAR array of characters function question
the code below worked on dev c++. then i put the c code into visual studio and i get the following errors: error C2143: syntax error : missing ';' before '[' warning C4091: ' ' : ignored on left of 'char ' when no variable is declared error C2143: syntax error : missing ';' before 'type' error C2143: syntax error : missing ';' before 'type' error C2065: 'pASCII' : undeclared identifier error C2100: illegal indirection error C2100: illegal indir ...Show All
