Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how do i put a bmp into an exe file??? Pin
User 21559716-Nov-04 17:46
User 21559716-Nov-04 17:46 
GeneralError in filecore.cpp line 258 Pin
SamuelTee15-Nov-04 23:49
SamuelTee15-Nov-04 23:49 
GeneralRe: Error in filecore.cpp line 258 Pin
User 21559716-Nov-04 0:30
User 21559716-Nov-04 0:30 
GeneralRe: Error in filecore.cpp line 258 Pin
ThatsAlok16-Nov-04 2:41
ThatsAlok16-Nov-04 2:41 
GeneralRe: Error in filecore.cpp line 258 Pin
David Crow16-Nov-04 2:50
David Crow16-Nov-04 2:50 
GeneralWizard Dialog problems Pin
#realJSOP15-Nov-04 23:46
professional#realJSOP15-Nov-04 23:46 
GeneralRe: Wizard Dialog problems Pin
Jack Puppy16-Nov-04 0:49
Jack Puppy16-Nov-04 0:49 
GeneralRe: Wizard Dialog problems Pin
Maximilien16-Nov-04 0:54
Maximilien16-Nov-04 0:54 
GeneralRe: Wizard Dialog problems Pin
#realJSOP16-Nov-04 2:39
professional#realJSOP16-Nov-04 2:39 
GeneralColor of text in CStatic control Pin
Cedric Moonen15-Nov-04 23:23
Cedric Moonen15-Nov-04 23:23 
GeneralRe: Color of text in CStatic control Pin
Jack Puppy16-Nov-04 0:36
Jack Puppy16-Nov-04 0:36 
GeneralRe: Color of text in CStatic control Pin
Cedric Moonen16-Nov-04 1:07
Cedric Moonen16-Nov-04 1:07 
GeneralRecordset Open(using select statement) Pin
vc-programmer-15-Nov-04 22:49
vc-programmer-15-Nov-04 22:49 
Generalfind pid for an open tcp connection in Windows 2000 Pin
Anonymous15-Nov-04 22:27
Anonymous15-Nov-04 22:27 
GeneralDialog Variable can not be assigned Pin
Jens Lüddecke15-Nov-04 22:16
Jens Lüddecke15-Nov-04 22:16 
Hello!
I have got the following problem!

Ich have written a Dll for a Socket Connection. This Dll call a callback function when it receives a Msg over the net.
The function which is called from the dll is a global function in my Testapplication. The global function calls my receive function which only copys the msg in two Membervariablen from the Dialog. These Membervariablen are undefined (Debug shows: ???) and the program crashs.

Global receive function
void gReceiveMsg(CMsg *pMsg)
{
((CSocketTesterApp*)AfxGetApp())->CallbackReceiveMsg(pMsg);
}

function in my application (the values are received correct )
void CSocketTesterApp::CallbackReceiveMsg(CMsg *pMsg)
{
CString sVar = "";
double nVal =0;
pMsg->GetData(&sVar,&nVal);
((CSocketTesterDlg*)AfxGetMainWnd())->ReceiveMsg(sVar,nVal);
}

receive function in my Dialog
void CSocketTesterDlg::ReceiveMsg(CString sVariable, double nValue)
{
m_sRecVariable = sVariable;
m_nRecValue = nValue;
UpdateData(FALSE);
}

The Program crashs after the assignment to the membervariable.
I hope someone can help me!!!

king regards

Jens Lüddecke

QuestionMultiple selection in CTreeCtrl possible… ? Pin
anderslundsgard15-Nov-04 21:46
anderslundsgard15-Nov-04 21:46 
AnswerRe: Multiple selection in CTreeCtrl possible… ? Pin
Maximilien16-Nov-04 2:23
Maximilien16-Nov-04 2:23 
QuestionHow to Hide the MFC Opening Dialog Box when open the Application.? Pin
pubududilena15-Nov-04 21:35
pubududilena15-Nov-04 21:35 
AnswerRe: How to Hide the MFC Opening Dialog Box when open the Application.? Pin
Selvam R16-Nov-04 2:21
professionalSelvam R16-Nov-04 2:21 
AnswerRe: How to Hide the MFC Opening Dialog Box when open the Application.? Pin
ThatsAlok16-Nov-04 2:32
ThatsAlok16-Nov-04 2:32 
AnswerRe: How to Hide the MFC Opening Dialog Box when open the Application.? Pin
David Crow16-Nov-04 2:54
David Crow16-Nov-04 2:54 
Generalusing LBS_MULTIPLELSEL Pin
V.G15-Nov-04 21:15
V.G15-Nov-04 21:15 
GeneralRe: using LBS_MULTIPLELSEL Pin
pubududilena15-Nov-04 22:03
pubududilena15-Nov-04 22:03 
GeneralRe: using LBS_MULTIPLELSEL Pin
David Crow16-Nov-04 2:56
David Crow16-Nov-04 2:56 
GeneralRe: using LBS_MULTIPLELSEL Pin
V.G16-Nov-04 3:40
V.G16-Nov-04 3:40 

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.