JUST KIDDING!
Hey programmers of the world... My brain is melting! So I'm using WinAPI and a class that creates systray icons. The systray icon example I have uses MFC (I could right everything I know about MFC on my thumb) and I am trying to mold it into my winapi app (limited knowledge also!). So, so far I have created the recourse ico thingi, and it in turn auto generated the resource.h file.
My icon loading code looks like this :
HICON trayIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
But has weird contents like this :
trayIcon = 0x01a20557 {unused=??? }
unused = CXX0030: Error: expression cannot be evaluated
similarly when I pass the hwnd obj to the system tray class its contents is as above ^
then when we go into the createSystemTrayIcon() method and the
m_hParentWnd = parent;
window is assigned...it all goes tits up!
Unhandled exception at 0x00415799 in blueline.exe: 0xC0000005: Access violation writing location 0x00000008.
So what do you think? Is there an ovbious mistake here. I'm not sure who else programs, so this is mainly directed towards ivan I guess. Any help would be really appreciated.
Here, someone else has the same issue...but no one responded:
http://thewinforums.com/topic/52955-create-window-problem/