Answer Questions
MacMatt_98 OnTimer() not being fired up.
hey guys, i have timer set like follows: UINT TimerVal; TimerVal = SetTimer(406, 50, NULL); and i added in header file: afx_msg void OnTimer(UINT nIDEvent); and in cpp file i have: void CEditorDlg::OnTimer(UINT nIDEvent) { char finalFps[100]; strcpy(finalFps, NConvert::IntToChar( _entityEngine->getFPS() )); m_lblFPS.SetWindowText( _T( finalFps ) ); CDialog::OnTimer(nIDEvent); } and : ON_WM_TIMER(). so when i put a break point int he ...Show All
Andie Kurniawan debug assertion failed?
Ok here is my problem one day i changed something, i don't know what, and my program now gets this message Debug assertion failed! Program:.... File: dlgdata.cpp Line: 44 What is that here is the code at and around that point HWND CDataExchange::PrepareCtrl(int nIDC) { ASSERT(nIDC != 0); ASSERT(nIDC != -1); // not allowed HWND hWndCtrl; COleControlSite* pSite = ...Show All
Qwertman OnTimer() not being fired up.
hey guys, i have timer set like follows: UINT TimerVal; TimerVal = SetTimer(406, 50, NULL); and i added in header file: afx_msg void OnTimer(UINT nIDEvent); and in cpp file i have: void CEditorDlg::OnTimer(UINT nIDEvent) { char finalFps[100]; strcpy(finalFps, NConvert::IntToChar( _entityEngine->getFPS() )); m_lblFPS.SetWindowText( _T( finalFps ) ); CDialog::OnTimer(nIDEvent); } and : ON_WM_TIMER(). so when i put a break point int he ...Show All
EMarcusSmith Has anyone at Microsoft actually used VC++ Express B2?
I haven't used Microsoft's Visual C++ since version 6. I've always thought Microsoft makes the best software development IDEs by far, but the compiler was extremely lacking. I figured I'd try Win32 GUI development again (I do mostly Unix or cross-platform non-GUI), so, 1) I downloaded Visual C++ Express Beta 2 and installed it. 2) It didn't compile anything successfully, including "Hello, World" (See this thread for those looking for a ...Show All
mattpic good books on win32 programming
i am a computer engineering student and i have been a .net developer for a few years now. i want to delve deeper into the world of windows api programming using vc++. please suggest good introductory texts, books and resources for begining my journey. please recommend books for windows api porgramming and not introductory C++ stuff. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=107484&SiteID=1 for recommended books. If ...Show All
Eelke Folmer Need help to enable/disable menu command on specific condition
Hello, I like to enable / disable a command (File | Save). It will be disabled (grayed) when the program starts, but must be enabled when a new screen shot is taken. I have written codes in ON_UPDATE_COMMAND_UI message handler but don't know how it is triggered to enable the menu command (File | Save). My code is : void CScreenTakerApp::OnUpdateFileSave32773(CCmdUI *pCmdUI) { // TODO: Add your command update UI handler code here ...Show All
Richard_Wolf Resize managed array inside a function
Hi, I'm having a little problem using managed arrays. It seems I can not resize an array with Array::Resize within a function. I wanted to do something like this (pseudocode): void manipulatearray(array<int> ^test) { // in reality this function processes some data (unknown how much elements, taking 10 for the example) and fills the array with it System::Array::Resize (test, 10); for(unsigned int i = 0; i < 10; i++) ...Show All
cookie365 native members of managed classes?
Hi jedediah! What's the preferred way to effectively have a native class as a member of a managed class What do you mean class NativeClass { }; public ref class ManagedClass { protected private: NativeClass *_pNativeMember; }; jedediah wrote: NNTP User wrote: Hi Paul! A very good an deep explan ...Show All
mgmian aspell compilation problems
Hi, I tried to post on the forum but it kept coming up with an internal error so i was wondering if you could help me with the following:I have recently been trying to compile aspell (a spell checker written in c and c++) in visual studio .NET (2003) which has taken forever but i managed to get it to compile a dll now. When i come to add this dll file into another project which will be using the methods from this dll it keeps giving ...Show All
vectorvictor C++ & SDK
I'm completely new at C++, though have reasonable experience with .NET. I'm trying to switch from VB.net to C++ because I want to write native code... but i'm having problems. I have 'Microsoft Platform SDK for Windows XP SP2' and 'Visual C++ 2005 Express Edition Beta 2' installed. I have also created a dir in "C:\Program Files\Microsoft Visual Studio 8\VC" called 'PlatformSDK' which has the Bin, Include and Lib folders in it. Now how do i m ...Show All
KYoung Converting System::String to Int32 and back again in hex in C++
OK, I have a simple question: I have a window where a user can enter a hex value, like 10BF00D1. Another one where the user can enter a pure binary number like 1000011101101001. I want to grab the String and put the data into an integer, manipulate it and turn the result back into a String. How do I do this with the managed System::String class in Visual C++ 2005 It was easy to do back in the "C" world, why is it so hard to find the ...Show All
M. Pfennig ActiveX control width and height
I need to find out the width and the height of an ActiveX control. Once the control is drawn on the screen, getting the size is no problem. However, I need to know the size BEFORE the control is drawn, since I need to create a graphics backbuffer for off-screen drawing. (Ideally, in the constructor or the WM_CREATE message handler.) Theoretically, I would just want the values of the WIDTH and HEIGHT parameters of the HT ...Show All
JALenz Manifest file when using both /MD and /MDd DLLs
I have an application that can be built in debug (/MDd) or release mode (/MD). This application uses third-party DLLs that are built with /MD; for example the Microsoft PDH.DLL. There is no memory-mismatch issue since these third-party DLLs handle properly all memory allocations/deallocations. When I build my application in release mode (/MD), everything works. When I build it in debug mode (/MDd) and run it, I get the&n ...Show All
Jeffrey John Osborn DLL missing
I wrote a simple hello world program and gives me error when i try to run the application.. "the procedure entry point _invoke_watson cound not be located in the dynamic link library MSVCR80D.dll" -mic I replaced the dll with the one found under WinSxS, and now it seem to work !! but can pour some insight into what is going on and which other files need to be replaced under the system32 coz under the same WinSxS directory there are 2 mor ...Show All
Jason W. Martin Debugging with MSDEV2005
I have converted a c++ dll from MSDEV2003 to MSDEV2005 and than when i try to debug this dll throw many exceptions referring to some files of MFC 7 into a strange "F:\\..." directory that isn't present on my PC. What can i do to redirect debugging (& compilation/link) to Framework 2.0 and latest MFC8 Thanks Based on the path given, it looks like the exception is occuring in the static li ...Show All
