Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWin32 edit box problems Pin
Christian Graus18-Sep-01 20:26
protectorChristian Graus18-Sep-01 20:26 
GeneralRe: Win32 edit box problems Pin
18-Sep-01 22:19
suss18-Sep-01 22:19 
GeneralRe: Win32 edit box problems Pin
Christian Graus18-Sep-01 22:25
protectorChristian Graus18-Sep-01 22:25 
GeneralRe: Win32 edit box problems Pin
Paul A. Howes19-Sep-01 3:05
Paul A. Howes19-Sep-01 3:05 
QuestionHow can I programmatically insert an OLE objects (or image) into RTF control??? Pin
Youknowme18-Sep-01 18:22
Youknowme18-Sep-01 18:22 
GeneralThread and ActiveX component Pin
Farah Mansor18-Sep-01 18:13
Farah Mansor18-Sep-01 18:13 
GeneralRe: Thread and ActiveX component Pin
Ghazi H. Wadi19-Sep-01 14:01
Ghazi H. Wadi19-Sep-01 14:01 
GeneralRe: Thread and ActiveX component Pin
Farah Mansor19-Sep-01 15:32
Farah Mansor19-Sep-01 15:32 
Here I post some sample codes:

// myDlg class (class A)
CSocketSvr mySocket; // my socket variable

// ActiveX event handler
void myDlg::OnReceivedData(LPCTSTR ReceivedData)
{
...
// I start my thread - it will execute for the first time I receive any data
if (TRUE)
{
pThread = (CWzdThread*)AfxBeginThread(RUNTIME_CLASS(CWzdThread), THREAD_PRIORITY_NORMAL, 0, CREATE_SUSPENDED);
}
...
}

// my method
void myDlg::Check()
{
if (mySocket.GetConnectedStatus()) <--- THIS IS WHERE IT GIVES ME THE RUNTIME ERROR
{
...
}
}

/////////////////////////////////////////
// CWzdThread class (class B)
myDlg* pDlg;
int CWzdThread::Run()
{
while(TRUE)
{
...
pDlg->Check();
}
}

///////////////////////////////////////////////
// CSocketSvr class (the activeX control class)
// to get the connection status
bool CSocketSvr::GetConnectedStatus()
{
....
return result;
}

I think this will give you enough information about what I am trying to do here.
mmm I still don't get it where should I add the Lock function. Confused | :confused:
Can you please explain more on that. Smile | :)

Thank you so much for your help. Rose | [Rose]

FM
GeneralRe: Thread and ActiveX component Pin
Ghazi H. Wadi19-Sep-01 16:52
Ghazi H. Wadi19-Sep-01 16:52 
GeneralRe: Thread and ActiveX component Pin
Farah Mansor19-Sep-01 21:04
Farah Mansor19-Sep-01 21:04 
GeneralRe: Thread and ActiveX component Pin
Ghazi H. Wadi20-Sep-01 12:46
Ghazi H. Wadi20-Sep-01 12:46 
GeneralRe: Thread and ActiveX component Pin
Farah Mansor20-Sep-01 15:58
Farah Mansor20-Sep-01 15:58 
GeneralRe: Thread and ActiveX component Pin
Ghazi H. Wadi21-Sep-01 16:09
Ghazi H. Wadi21-Sep-01 16:09 
GeneralRe: Thread and ActiveX component Pin
24-Sep-01 19:47
suss24-Sep-01 19:47 
Generalconsecutive sums Pin
minikg18-Sep-01 15:38
minikg18-Sep-01 15:38 
GeneralRe: consecutive sums Pin
Christian Graus18-Sep-01 16:02
protectorChristian Graus18-Sep-01 16:02 
GeneralRe: consecutive sums Pin
minikg18-Sep-01 16:04
minikg18-Sep-01 16:04 
GeneralRe: consecutive sums Pin
minikg19-Sep-01 12:28
minikg19-Sep-01 12:28 
GeneralRe: consecutive sums Pin
Christian Graus19-Sep-01 12:47
protectorChristian Graus19-Sep-01 12:47 
GeneralRe: consecutive sums Pin
minikg19-Sep-01 13:22
minikg19-Sep-01 13:22 
GeneralRe: consecutive sums Pin
Christian Graus19-Sep-01 14:23
protectorChristian Graus19-Sep-01 14:23 
GeneralRe: consecutive sums Pin
Christian Graus19-Sep-01 14:40
protectorChristian Graus19-Sep-01 14:40 
GeneralRe: consecutive sums Pin
Christian Graus19-Sep-01 14:42
protectorChristian Graus19-Sep-01 14:42 
GeneralRe: consecutive sums Pin
Christian Graus19-Sep-01 14:58
protectorChristian Graus19-Sep-01 14:58 
GeneralRe: consecutive sums Pin
Christian Graus19-Sep-01 16:32
protectorChristian Graus19-Sep-01 16:32 

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.