Answer Questions
scale_programmer Problem with /MTd compile option
Thanks in advance for any help. I encounter a problem with VS2005 where the EXE would crash with heap error. I create a simple EXE, DLL to illustrate the problem. Crash - if I use /MTd in the compile option for the EXE No Crash - if I use /MDd in the comppile option for the EXE I mark the place where the crash occurs. Error Message ------------- HEAP[EXE.exe]: Invalid Address specified to RtlValidateHeap( 003E0000, 00395BC8 ) Window ...Show All
LearningVisualC2005 Suggestion for the next standard...
<RITZ@discussions.microsoft.com> wrote in message news:0ab7fdae-8303-4a4e-95f9-5aee37fb96a6@discussions.microsoft.com > Hi, I have a small suggestion that I think is neccissary for the next > C++ standard release. The standard does not denote that structs need > to be contiguous, I think that it should for a few reasons. I.E. > Transfering whole structs accross a network and writting whole > ...Show All
Ultrahead Justification for forcing 'virtual' for overridden virtual functions
Since C++ does not force a programmer to specify the 'virtual' keyword when overriding a virtual function in a base class, what was the justification for forcing not only 'virtual' but also an after the parameter list 'override' when overriding virtual functions of a base ref class or interface class. For normal C++ programmers this bifurcation from C++ seems both a PITA and absolutely unnecessary. There must have been some practical reason for ...Show All
clevershark VC++ 6.0 Platform SDK download
Dear All Do any one know how to get the Platform SDK for VC++6.0 I found the least one that not support VC++ 6.0 Please Help Regards KS Look at your old MSDN CD's From the SDK download page you can read: The last SDK that will work with VC 6.0 is the February 2003 Edition, you can order a CD on the fulfillment site. http://www.microsoft.com/downloads/details.aspx FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&a ...Show All
JonRowett How can I manipulate strings in ATL
Some problems happened during my simple development on IE. When I try to use MessageBox to display one string, manipulated by"strcat", there is no error or warning during compiling. But when IE tries to invoke the DLL, MessageBox involved, the IE reports that there are some errors in my DLL. After removed "strcat", every thing is ok. I wonder whether perhaps the string manipulation is different from the ordinary ...Show All
alexgr Weird build output
I am not sure why I got this. I think I accidentally pressed some sort of key combinations and my build output is like this: 1>------ Build started: Project: test, Configuration: Debug Win32 ------ 1>Compiling... 1>main.cpp How to remove the prefixing '1>' This is for MP machines - it is so you can see what actions are being performed by what processor. I must admit I don't know how to remove it. Under Tools->Options- ...Show All
Jon_Fisher IAddrBook::Address mapi problem
Hi, I am 'fixing' some poorly written MAPI code. Mostly because the MAPI wasn't being unintialized and realeased properly, also a lot of the code was not checking properly the return values from the MAPI function calls. I have a problem though with the IAddrBook::Address method. The original code was as follows:- if(FAILED(hResult = lpAdrBook->Address(&hWnd, &adrparm, &lpadrlist))) { // report error cleanup and exit } ...Show All
Krunchu Newbie: Can't use WinAPI because included twice
Sorry for this lame question, but I've spent hours trying to solve this ridiculous problem. I'm trying to use the Windows API GetGUIThreadInfo, but because (I believe) it is declared twice (in winable.h and winuser.h, which I believe are implicitly included) I cannot use it. I get an identifier not found error. What do I do so I can use GetGUIThreadInfo I haven't used C++ for a long time, and I'm not sure if I ever encountered this proble ...Show All
Selvatik error LNK2001: unresolved external symbol __CxxFrameHandler3
Hi, I am working on ODBC project migrating from VC 6.0 to VC 8.0. This project works fine for machine:X86. Now I want the same project work for machine:X64 also. When compiled this project for machine:X64 on VC 8.0(VS 2005) I see a Linker problem show below. ==================================================== sample.obj : error LNK2001: unresolved external symbol __CxxFrameHandler3 .\Debug/sample.dll : fatal error LNK1120: 1 unresolved ext ...Show All
kckc String* conversion
I have a String* and i want to know if the String* variable is a string of characters (a string) or an integer. IF its an integer value then i want to convert it to an integer (type Int32) any ideas on how this could be done thank you for supplying me with example code! that was not necessary but very helpful! Well, the way to convert a string representation of a n ...Show All
mountairy How to change the text color in Edit control when it is disabled?
In my program, I try to change the text color in a disabled Edit control, but it always show me the default color. Follow is my code: HBRUSH CMainWnd::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr; if (pWnd == &m_edit) { hbr = CreateSolidBrush(RGB(255, 255, 225)); if (nCtlColor == CTLCOLOR_EDIT) { pDC->SetBkColor(RGB(255, 255, 225)); pDC->SetTextColor(RGB(0, 255, 255)); } else if (nCt ...Show All
QuantaCat C++ & UNICODE
Dear MSDN C++ experts, I have Visual Studio 2005 Professional installed, I need a help issue about something annoying a bit. My professor in college asked us to make a report how to write in name in Arabic using UNICODE, in fact I was unable to make such a program as it's so hard for me as I'm still a beginner. Here is a code sample I asked someone to make for me, It's UNIX based, the print out is an empty screen in windows: ======= ...Show All
itosu Problem with extended combo box in VS8
I have a problem with the Extended Combobox in VS8. I created an Win32 app. and added a Dialog in a Resource View. And this dialog should appear each time i choose an appropriate menu item. But when I drop an Extended Combo Box on it from a Toolbox it doesn't appear. But when I simply delete it from a dialog it appears when I click on a menu item. It also happens even if a drop an extended combobox on About dialog. Please help. ...Show All
Elfeffe Transferring project from a computer running 2000 to a machine with XP
I am using Visualc++.net 2003. I transferred a project from a computer with 2000 to a computer with XP. The project opens and runs ok on the 2000 computer but on the XP computer I get the message cannot open my .vcprog file. Thanks you wer correct. I was missing 1 file does it happend with any project or a specific project some of the assemblies referenced in y ...Show All
jowjow DLL initialization failure
I've translated a VC7 project that builds a COM dll, to VC8. It builds, but I can't register it: Regsvr32 reports "LoadLibrary("<path>") failed - A dynamic link library (DLL) initialization routine failed." The dependency viewer suggests that all the required libraries are present. The failure occurs before execution reaches by code (DllMain). How can I debug and find out what's going on Phil Atkin ...Show All
