Click here to Skip to main content
15,889,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
mve#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 
GeneralRe: using LBS_MULTIPLELSEL Pin
David Crow16-Nov-04 3:56
David Crow16-Nov-04 3:56 
GeneralWM_CTLCOLORLISTBOX Pin
V.G15-Nov-04 21:11
V.G15-Nov-04 21:11 
GeneralRe: WM_CTLCOLORLISTBOX Pin
pubududilena15-Nov-04 21:40
pubududilena15-Nov-04 21:40 
GeneralAlgorithm for generating Alphanumeric characters Pin
Mythri.B.L15-Nov-04 20:40
Mythri.B.L15-Nov-04 20:40 
GeneralRe: Algorithm for generating Alphanumeric characters Pin
DaFrawg15-Nov-04 20:50
DaFrawg15-Nov-04 20:50 
GeneralRe: Algorithm for generating Alphanumeric characters Pin
David Crow16-Nov-04 3:00
David Crow16-Nov-04 3:00 
GeneralDDK Pin
snthomas15-Nov-04 20:01
snthomas15-Nov-04 20:01 

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.