Never mind, I got it(stupid me). Just add the virtual funtion WindowProc();
LRESULT Dlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
The callback goes there...
I'm having issues getting the callback to work for my systray icon. I'm using PreTranslateMessage(MSG* pMsg) to get all the messages in the main dialog. This is what I'm using to make the icon go:
NOTIFYICONDATA XAIMIcon;
HINSTANCE hInst;
hInst = (HINSTANCE)GetWindowLong(m_hWnd,GWL_HINSTANCE)...
I'm trying to create a dlg window from my main dlg out of a resource. I want it to be its own window and not part of the main dlg so it will minimize to the taskbar and such. Righ now I'm using Create() to create modeless dlgs but they are always on top of the main dlg and they wont minimize to...
I really dont know, I got it to work a long time ago but wasnt satisfied(it lags the program a bit every time the sound is played) so I switched to using DirectX sound. Try this tho:
PlaySound("C:\\FullPath\\HelloWin.wav", NULL, SND_FILENAME | SND_ASYNC);
See if that works.
-Micah
I use OpenGL with VC++ as well. Here are two sites I have found very usefull:
http://nehe.gamedev.net/
http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg1.htm
I'm Pretty sure they dont use MFC.
-Micah
Cool, thanx. I'll check out that website. I think I was able to get what I was looking for by using htons(). The data I'm generating looks like the stuff I got by packet sniffing GAIM and other Clients. Although I dont understand why yet.
-Micah
Does anyone know how I would make a TLV tag?
It's suppose to be 2 byes long and its used in AOL's TOC protocol among other things. I cant seem to find any usefull information on how to make it. Im having probs. with the initial signon:
Client To Host:
4 byte FLAP version (1)
2 byte TLV Tag (1)...
Cool, thanx for the info. I'll have to keep that in mind. At the moment I'm just reading the raw packets but soon I'll be creating them as well.
-Micah
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.