Click here to Skip to main content
15,890,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionerror C2955: use of class template requires template argument list in C++/MFC [modified] Pin
mfc doubt19-Oct-09 8:58
mfc doubt19-Oct-09 8:58 
AnswerRe: error C2955: use of class template requires template argument list in C++/MFC Pin
CPallini19-Oct-09 11:12
mveCPallini19-Oct-09 11:12 
AnswerRe: error C2955: use of class template requires template argument list in C++/MFC Pin
Stuart Dootson19-Oct-09 12:58
professionalStuart Dootson19-Oct-09 12:58 
QuestionSetWindowsHookEx under Windows Service Pin
FotisSs19-Oct-09 8:02
FotisSs19-Oct-09 8:02 
AnswerRe: SetWindowsHookEx under Windows Service Pin
«_Superman_»19-Oct-09 8:29
professional«_Superman_»19-Oct-09 8:29 
GeneralRe: SetWindowsHookEx under Windows Service Pin
IvanProg3-Apr-10 4:11
IvanProg3-Apr-10 4:11 
AnswerRe: SetWindowsHookEx under Windows Service Pin
mirushaki27-Jul-15 1:26
mirushaki27-Jul-15 1:26 
QuestionhWnd passed into another class Pin
Nicola Curran19-Oct-09 5:44
Nicola Curran19-Oct-09 5:44 
I am writing a WinAPI app and trying to use some code to make a systray icon. However, when I pass in the HWND into the class as below:

.h
public:<br />
HWND			 m_hParentWnd;


.cpp
void CTrayIcon::OnCreate(HWND parent, UINT uCallbackMessage, HICON icon)<br />
{<br />
	m_hParentWnd	   = parent;


there is an unhandled exception:

Unhandled exception at 0x00415799 in blueline.exe: 0xC0000005: Access violation writing location 0x00000004.

The contents of parent is:

parent: 0x000b0d30 {unused=??? }
unused = CXX0030: Error: expression cannot be evaluated

It wuld be amazing if someone could suggest a direction to look in. I have found somebody with a similar problem, but they didn't get a responce.

Nicola.
AnswerRe: hWnd passed into another class Pin
Chris Losinger19-Oct-09 6:29
professionalChris Losinger19-Oct-09 6:29 
AnswerRe: hWnd passed into another class Pin
Cedric Moonen19-Oct-09 7:17
Cedric Moonen19-Oct-09 7:17 
AnswerRe: hWnd passed into another class Pin
theCPkid19-Oct-09 19:04
theCPkid19-Oct-09 19:04 
GeneralRe: hWnd passed into another class Pin
Nicola Curran19-Oct-09 21:36
Nicola Curran19-Oct-09 21:36 
QuestionRegarding the Record Position. Pin
janaswamy uday19-Oct-09 4:20
janaswamy uday19-Oct-09 4:20 
QuestionRe: Regarding the Record Position. Pin
David Crow19-Oct-09 4:52
David Crow19-Oct-09 4:52 
AnswerRe: Regarding the Record Position. Pin
Rajesh R Subramanian19-Oct-09 5:45
professionalRajesh R Subramanian19-Oct-09 5:45 
GeneralRe: Regarding the Record Position. Pin
janaswamy uday19-Oct-09 5:56
janaswamy uday19-Oct-09 5:56 
GeneralRe: Regarding the Record Position. Pin
Rajesh R Subramanian19-Oct-09 6:16
professionalRajesh R Subramanian19-Oct-09 6:16 
QuestionHow we show a message box & get user input in Win32 Dynamic-Link Library Pin
THAQCD19-Oct-09 4:19
THAQCD19-Oct-09 4:19 
AnswerRe: How we show a message box & get user input in Win32 Dynamic-Link Library Pin
Richard MacCutchan19-Oct-09 4:33
mveRichard MacCutchan19-Oct-09 4:33 
GeneralRe: How we show a message box & get user input in Win32 Dynamic-Link Library Pin
THAQCD19-Oct-09 6:11
THAQCD19-Oct-09 6:11 
GeneralRe: How we show a message box & get user input in Win32 Dynamic-Link Library Pin
Iain Clarke, Warrior Programmer19-Oct-09 8:08
Iain Clarke, Warrior Programmer19-Oct-09 8:08 
GeneralRe: How we show a message box & get user input in Win32 Dynamic-Link Library Pin
THAQCD19-Oct-09 8:26
THAQCD19-Oct-09 8:26 
GeneralRe: How we show a message box & get user input in Win32 Dynamic-Link Library Pin
Tim Craig19-Oct-09 8:31
Tim Craig19-Oct-09 8:31 
GeneralRe: How we show a message box & get user input in Win32 Dynamic-Link Library Pin
Richard MacCutchan19-Oct-09 8:33
mveRichard MacCutchan19-Oct-09 8:33 
QuestionEvents for Combobox in Visual C++ [modified] Pin
Invinci19-Oct-09 4:09
Invinci19-Oct-09 4:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.