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

C / C++ / MFC

 
GeneralCSockets Error Pin
shiraztk13-Sep-04 21:22
shiraztk13-Sep-04 21:22 
GeneralRe: CSockets Error Pin
Arsalan Malik13-Sep-04 21:31
Arsalan Malik13-Sep-04 21:31 
GeneralRe: CSockets Error Pin
shiraztk13-Sep-04 22:17
shiraztk13-Sep-04 22:17 
QuestionHow to send user defined structure via PostMessage Pin
ledallam13-Sep-04 21:04
ledallam13-Sep-04 21:04 
AnswerRe: How to send user defined structure via PostMessage Pin
Arsalan Malik13-Sep-04 21:20
Arsalan Malik13-Sep-04 21:20 
GeneralRe: How to send user defined structure via PostMessage Pin
ledallam13-Sep-04 21:37
ledallam13-Sep-04 21:37 
GeneralRe: How to send user defined structure via PostMessage Pin
Arsalan Malik13-Sep-04 21:45
Arsalan Malik13-Sep-04 21:45 
GeneralRe: How to send user defined structure via PostMessage Pin
Mad__13-Sep-04 23:22
Mad__13-Sep-04 23:22 
Hi,

<br />
typedef DATA<br />
{<br />
int EventID;<br />
CString ModuleName;<br />
CString ThreatName;<br />
} info;<br />
<br />
info* pinfo_data = (info*)GlobalAlloc(GPTR, sizeof(info));<br />
AfxGetMainWnd( )->PostMessage(WM_LOGMSG, 0, (LPARAM)pinfo_data);


convert to LPARAM, not to LPVOID Wink | ;)

allocate structure with API calls, and
free structure in target thread, not in main thread
GeneralRe: How to send user defined structure via PostMessage Pin
Roger Allen14-Sep-04 12:24
Roger Allen14-Sep-04 12:24 
GeneralAccessing data between threads Pin
ledallam13-Sep-04 19:30
ledallam13-Sep-04 19:30 
GeneralRe: Accessing data between threads Pin
Arsalan Malik13-Sep-04 19:38
Arsalan Malik13-Sep-04 19:38 
GeneralRe: Accessing data between threads Pin
Hardy_Smith13-Sep-04 21:40
Hardy_Smith13-Sep-04 21:40 
GeneralHandling multiple instances of an application in VC++ 6.0 Pin
Neeranjan13-Sep-04 19:07
Neeranjan13-Sep-04 19:07 
GeneralRe: Handling multiple instances of an application in VC++ 6.0 Pin
Arsalan Malik13-Sep-04 19:24
Arsalan Malik13-Sep-04 19:24 
GeneralRe: Handling multiple instances of an application in VC++ 6.0 Pin
Neeranjan13-Sep-04 19:40
Neeranjan13-Sep-04 19:40 
GeneralRe: Handling multiple instances of an application in VC++ 6.0 Pin
Anonymous14-Sep-04 0:47
Anonymous14-Sep-04 0:47 
GeneralRe: Handling multiple instances of an application in VC++ 6.0 Pin
lookforme_prash14-Sep-04 0:52
lookforme_prash14-Sep-04 0:52 
GeneralRe: Handling multiple instances of an application in VC++ 6.0 Pin
Neeranjan14-Sep-04 18:46
Neeranjan14-Sep-04 18:46 
GeneralRe: Handling multiple instances of an application in VC++ 6.0 Pin
lookforme_prash14-Sep-04 19:58
lookforme_prash14-Sep-04 19:58 
GeneralRe: Handling multiple instances of an application in VC++ 6.0 Pin
Neeranjan14-Sep-04 20:16
Neeranjan14-Sep-04 20:16 
GeneralRe: Handling multiple instances of an application in VC++ 6.0 Pin
lookforme_prash14-Sep-04 20:22
lookforme_prash14-Sep-04 20:22 
GeneralRe: Handling multiple instances of an application in VC++ 6.0 Pin
Neeranjan14-Sep-04 20:48
Neeranjan14-Sep-04 20:48 
GeneralWin32 Pin
wow999913-Sep-04 17:40
wow999913-Sep-04 17:40 
GeneralRe: Win32 Pin
PJ Arends13-Sep-04 18:21
professionalPJ Arends13-Sep-04 18:21 
GeneralCom port enable Pin
anuchelvi13-Sep-04 17:10
anuchelvi13-Sep-04 17:10 

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.