Click here to Skip to main content
15,920,630 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug Assertion error Pin
Anu_Bala27-Jul-07 0:22
Anu_Bala27-Jul-07 0:22 
GeneralRe: Debug Assertion error Pin
Roger Broomfield27-Jul-07 0:57
Roger Broomfield27-Jul-07 0:57 
GeneralRe: Debug Assertion error Pin
Anu_Bala27-Jul-07 1:34
Anu_Bala27-Jul-07 1:34 
GeneralRe: Debug Assertion error Pin
Roger Broomfield27-Jul-07 2:10
Roger Broomfield27-Jul-07 2:10 
QuestionProgrammatically show group properties dialog Pin
mbooth951726-Jul-07 17:13
mbooth951726-Jul-07 17:13 
AnswerRe: Programmatically show group properties dialog Pin
Mark Salsbery26-Jul-07 17:46
Mark Salsbery26-Jul-07 17:46 
GeneralRe: Programmatically show group properties dialog Pin
mbooth951726-Jul-07 20:04
mbooth951726-Jul-07 20:04 
QuestionNEED HELP with multithreading!!!!!!!!!!!!!! Pin
alberthyc26-Jul-07 14:29
alberthyc26-Jul-07 14:29 
hi, i'm a beginner in both MFC and multithreading.

i created a dialog and in my CMy61xxTestDlg.h, i declared:



UINT __cdecl Start(LPVOID pParam);


// CMy61xxTestDlg dialog
class CMy61xxTestDlg : public CDialog
{......



and in my cpp file, i have

hDrv=0;

CWinThread* pThread=AfxBeginThread(Start,(UINT)hDrv,THREAD_PRIORITY_BELOW_NORMAL);


i got error like:

error C2665: 'AfxBeginThread' : none of the 2 overloads could convert all the argument types

.....\afxwin.h(4202): could be 'CWinThread *AfxBeginThread(AFX_THREADPROC,LPVOID,int,UINT,DWORD,LPSECURITY_ATTRIBUTES)'

.....\afxwin.h(4205): or 'CWinThread *AfxBeginThread(CRuntimeClass *,int,UINT,DWORD,LPSECURITY_ATTRIBUTES)'
while trying to match the argument list '(UINT (__cdecl *)(LPVOID), UINT, int)'



could anyone help me with this?Confused | :confused:



thx!!!

AnswerRe: NEED HELP with multithreading!!!!!!!!!!!!!! Pin
Mark Salsbery26-Jul-07 14:33
Mark Salsbery26-Jul-07 14:33 
GeneralRe: NEED HELP with multithreading!!!!!!!!!!!!!! Pin
alberthyc26-Jul-07 17:15
alberthyc26-Jul-07 17:15 
GeneralRe: NEED HELP with multithreading!!!!!!!!!!!!!! Pin
Mark Salsbery26-Jul-07 17:25
Mark Salsbery26-Jul-07 17:25 
GeneralRe: NEED HELP with multithreading!!!!!!!!!!!!!! Pin
alberthyc27-Jul-07 5:32
alberthyc27-Jul-07 5:32 
GeneralRe: NEED HELP with multithreading!!!!!!!!!!!!!! Pin
Mark Salsbery27-Jul-07 5:40
Mark Salsbery27-Jul-07 5:40 
GeneralRe: NEED HELP with multithreading!!!!!!!!!!!!!! Pin
alberthyc27-Jul-07 6:05
alberthyc27-Jul-07 6:05 
GeneralRe: NEED HELP with multithreading!!!!!!!!!!!!!! Pin
Mark Salsbery27-Jul-07 6:42
Mark Salsbery27-Jul-07 6:42 
GeneralRe: NEED HELP with multithreading!!!!!!!!!!!!!! [modified] Pin
alberthyc27-Jul-07 10:27
alberthyc27-Jul-07 10:27 
GeneralRe: NEED HELP with multithreading!!!!!!!!!!!!!! Pin
Mark Salsbery27-Jul-07 12:12
Mark Salsbery27-Jul-07 12:12 
QuestionCritical Section for one thread Pin
Force Code26-Jul-07 12:25
Force Code26-Jul-07 12:25 
AnswerRe: Critical Section for one thread Pin
Mark Salsbery26-Jul-07 12:45
Mark Salsbery26-Jul-07 12:45 
GeneralRe: Critical Section for one thread Pin
Force Code26-Jul-07 12:52
Force Code26-Jul-07 12:52 
GeneralRe: Critical Section for one thread Pin
Mark Salsbery26-Jul-07 13:00
Mark Salsbery26-Jul-07 13:00 
QuestionHow do I process "ALT + ENTER" in Win32 C++ programming? Pin
Furrage26-Jul-07 11:56
Furrage26-Jul-07 11:56 
AnswerRe: How do I process "ALT + ENTER" in Win32 C++ programming? Pin
Mark Salsbery26-Jul-07 12:59
Mark Salsbery26-Jul-07 12:59 
GeneralRe: How do I process "ALT + ENTER" in Win32 C++ programming? Pin
Furrage26-Jul-07 14:35
Furrage26-Jul-07 14:35 
GeneralRe: How do I process "ALT + ENTER" in Win32 C++ programming? Pin
Mark Salsbery26-Jul-07 14:49
Mark Salsbery26-Jul-07 14:49 

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.