Answer Questions
JoshRoss "Preprocessor Definitions" for "All Configurations" wipes out Release and Debug settings
With the July cpt create a new solution (e.g. WIN32 console). Select "All Configurations" from the property pages and add an entry e.g. TEST to the "Preprocessor Definitions". Now examine the Release or Debug "Preprocessor Definitions" and notice that the original entries have beed deleted. I see that bug FDBK2612 has been recorded against this issue. Indeed, there are some p ...Show All
M_Over Menu Messaging Handling
Hi ! I have created a menu on the fly. Now I want to catch messages when an item is selected from menu. How do i do it. I am doing it by catching WM_MENUCOMMAND but I get undeclared error. I defined it my cpp file with the value of 0x0126 which i checked in winuser.h . Still I dont catch any msg. Can some1 explain me the mechanism and why do i I get this compile error when I use WM_MENUCOMMAND while on the other hand WM_COMMAND or WM_MEN ...Show All
cristi79 linker error with glut
Hi mate, I use c++ visual studio 2005 excpress,have a problem with linker,glut.lib and glu.lib...i copy glu32.lib and glut32.lib opengl32.lib in visualstudio2005/lib/ dir and the .h file in visualstudio2005/include/Gl/....now in visual studio in property page menu linker->input->"Additional Dependencies" item add :"opengl32.lib" "glu32.lib" "glut32.lib".....compile and: primitiv.obj : error LNK2019: unresolved external symbol _glutS ...Show All
Tom-S-Crowley Need a little help. Take a look please
Hello! I'm a new to Visual Cpp, so please help me, if you can. I need to write to following sub-routine to count: x r y s =(x 1 a 1 +x 2 a 2 +x 3 a 3 ) r (y 1 a 1 +y 2 a 2 +y 3 a 3 ) s where x i ,y j =digits from another program module, S, R = should be entered by operator, a=unknown dogits. the program task is: to open brackets and make re-combine digits into next order: x r y s =(a j 1 a i 2 a k 3 ), where i,j,k=degree of the a x Thank you v ...Show All
Divyang Can not cancel the creation of a CWinFormsView object?
If the PreCreateWindow returns FALSE, then the program asserts and crashes when trying to cast the managed control to ICommandTarget. BOOL CWinFormsView::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) { m_nFlags |= WF_ISWINFORMSVIEWWND; BOOL ok=__super::Create(lpszClassName, lpszWindowName, dwStyle, rect,pParentWnd, nID, pContext); ASSERT(ok); ok ...Show All
govindsinghyadav VC++ Express B2 not working with Platform SDK
Microsoft claims that you can write native Win32 applications with the Visual C++ 2005 Express Edition Beta 2. Microsoft claims that this can be done simply by downloading and installing the Platform SDK. Is this in fact true Are they really giving away a full-featured IDE and SDK that would allow you to build Win32 applications Let's find out... These are the EXACT steps I've gone through 3 times now to get this to work ...Show All
Krishnaswin may some master-hand help on this issue?
i'm a newcomer to WIN32 and had trouble while having a Windowproc as menber of my own class. here is the code: //Window.h I'm guessing that the problem is (or is similar to) passing a pointer to the Window::MainWindowProc function to CreateWindow. CreateWindow needs to take a stdcall-style callback. CALLBACK is half of it, since it decorates the function as __stdcall (as opposed to __cdecl or a C++ member function).&n ...Show All
Godhascometoearth How to read unicode character??
Hi all, Currently i am doing one project related to unicode file reading, showing the characters in the ListCtrl . I got my result applying CFile, API WideCharToMultibyte & the reverse one.Here I read BOM for each file(.txt),then got the bytes for respective characters. but i have some confusion regarding whether those functions work properly if the character is more than two bytes ...Show All
sugavaru command line build up-to-date when it shouldn't be
I have a problem where a command line build of a *.vcproj file using the VCBuild task returns "BaseLib - up-to-date" when it really is not. BaseLib.vcproj produces the output library BaseLib.lib, and one of the *.cpp files in the project includes BaseLib.h. BaseLib.h has a last modified date of 5/30/2006, and BaseLib.lib has a modification date of 5/16/2006. The project is out-of-date right BaseLib.h *is* explicitly in the project. ...Show All
Ben Miller MSFT Corrupt Builds After Cancel
Our team has a ~50 project solution with a few dlls, lots of libs, and three executables. If I do a build solution, and at any point during the build hit Control-C to cancel it, whatever is being built at the time I hit the button is now corrupt. It looks like it leaves the partially created .obj, .exe, or .dll around and doesn't detect that it only got halfway through. Is this a common symptom Is there some known fix (MSDN and google searches ...Show All
Adriaan Canter Importing class from dll
Hi My problem is that I cannot import a class from a dll without an import library. Thank You, Attila. I have written the dll. And there is a function called GetProcAddress, that i can use for importing functions from a dll, and this way, i don't need a lib file. But I want to import a class, and that i cannot do with this function (or at least I don't know how to). But thanx anyway. Attila ...Show All
cwilliam IEnumerator<T>.Current
The following code was compiling fine under Beta 1 but now generates the following error: 'Enumerator<T>' does not implement interface member 'System.Collections.IEnumerator.Current'. 'Enumerator<T>.Current' is either static, not public, or has the wrong return type. class Enumerator <T> : System.Collections.Generic. IEnumerator <T> { private T m_current; public T Current   ...Show All
GuyFawkes this is rediculous
As a harware developement project, we have many outside lib which is compiled in old way, and now can't be linked with new studio 2005. There is a way to get around these types of problems - I've done so many times. All you need to do is wrap any old functionality in a DLL. e.g. mylib.lib is a static library built in VC 2003. myexe.exe is an EXE built in VC 2005. create ...Show All
Randa Maher Cannot able to launch exe using CreateProcess( )
Hi I am the only user of the System with full Administrator rights. And i m trying to launch the Exe from a Simple Windows Application. I put a Menu Option under the Help Menu .On whose click I tried to launch the Exe. Following is extract from my WndProc( ) Fuction STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMem ...Show All
hamedghasemi intellisense include path
What is the format for the intellisense include path I'm using vc++ express 2005 beta 2 and want to include boost, platform sdk, directx9 and my own source headers. I tried "C:\Path1";"C:\Path2";... and several other variations and none seemed to index properly (at best, only one of the header paths specified would be indexed by intellisense). Also, is there a way to use environment variables in this path I tried %FOO% and $(FOO) and neither wo ...Show All
