I started using this code for subclassing the main window: http://forums.winamp.com/showthread.php?s=&threadid=227006
Here's the relevant part:
int init()<br />
// This subclasses the main Winamp window, so we can receive all events it receives.<br />
lpWndProcOld = (WNDPROC)SetWindowLong(plugin.hwndWinampParent,GWL_WNDPROC,(LONG)WndProc);<br />
// This subclasses the Playlist Editor window, so we can receive all events it receives.<br />
HWND pe = (HWND)SendMessage(plugin.hwndWinampParent,WM_WA_IPC,IPC_GETWND_PE,IPC_GETWND);<br />
lpPEProcOld = (WNDPROC)SetWindowLong(pe, GWL_WNDPROC, (LONG)PlaylistEditorProc);<br />
I have a fairly large application (MFC App) developed in Visual C++ 6.0.
As it's growing constantly, it's getting bigger and bigger and I've started to modularize it by adding DLLs with Visual Studio 2003 and now Visual Studio 2005.
Is there a better method nowadays that I can use to add new modules to the app or is DLL still the classic method used ?
Test1 error LNK2019: unresolved external symbol __endthreadex referenced in function "void __stdcall AfxEndThread(unsigned int,int)" (?AfxEndThread@@YGXIH@Z)
Test1 error LNK2019: unresolved external symbol __beginthreadex referenced in function "public: int __thiscall CWinThread::CreateThread(unsigned long,unsigned int,struct _SECURITY_ATTRIBUTES *)" (?CreateThread@CWinThread@@QAEHKIPAU_SECURITY_ATTRIBUTES@@@Z)
You are providing too little information. However, I would guess that you are missing a multithreading library. Make sure you are linking with multithread libraries.
Mutithreaded libraries are "LIBCMT.LIB" (release) and "LIBCMTD.LIB" (debug). However, I find it strange that the MFC is the one requesting the presence of "_beginthreadex" or "_endthreadex". This probably means you are not linking against MFC base libraries.
Anyway, try to link with the multothreaded libraries and see what you get. If it doesn't work then try to provide more information on the project settings (kind of project, compiler settings, linker settings, ...).
I'm trying to program a few exception classes for use in some software I'm working on. I'm more familliar with Java style of exception programming, and am having trouble finding some good API documentation on C++ exception classes. My plan was to inherit from exception, or runtime_error, however I can't find figure out what methods I'm inheriting without a good API. Does anone know of a good API page on the exeption classes?
This example does part of what I'm looking for, however I'd like to have more options when using the exception class. I'd like to give the programmer the option of passing in their own error message to the exception class, or to just use the default. Anyone know where I can look fir this?
hi,.....hhow can v load any movie clip in opengl?....`i have seen the tutorial in nehe..but it is not going wid the program i have developed..not showing the animation of the movie instead showing conflicts with already made tecxtures GL_TEXTURES_2D..how can v resolve dis?