Click here to Skip to main content
15,912,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Howto: get a Two's Complement Checksum Pin
Ryan Binns31-Jul-03 3:19
Ryan Binns31-Jul-03 3:19 
GeneralRe: Howto: get a Two's Complement Checksum Pin
Tim Ranker31-Jul-03 3:31
Tim Ranker31-Jul-03 3:31 
GeneralRe: Howto: get a Two's Complement Checksum Pin
DudleyDoorite31-Jul-03 3:43
DudleyDoorite31-Jul-03 3:43 
GeneralExtracting Audio from AVI Pin
Anonymous31-Jul-03 2:22
Anonymous31-Jul-03 2:22 
GeneralRe: Extracting Audio from AVI Pin
Jim Crafton31-Jul-03 8:07
Jim Crafton31-Jul-03 8:07 
Generallaser pointer interaction Pin
sleep223131-Jul-03 1:34
sleep223131-Jul-03 1:34 
GeneralRe: laser pointer interaction Pin
Alexander M.,31-Jul-03 10:40
Alexander M.,31-Jul-03 10:40 
General_beginthread newbie question Pin
tareqsiraj31-Jul-03 1:24
tareqsiraj31-Jul-03 1:24 
Hello ppl, i am trying to learn multi-threaded c++ programming and have tried the MSDN example. It works fine with just a simple main function and a thread function. But when i try to implement it in a win32 application, i get the following error.

error C2664: '_beginthread' : cannot convert parameter 1 from 'void (void *)' to 'void (__cdecl *)(void *)'

I am using VC++ 6 with the 2003 platform sdk installed. My project is generated by the WTL AppWizard provided with WTL 7.0. I have put my thread function as a member function to the main dialog class. I have included process.h in stdafx.h

_beginthread(ThreadFunc, 0, NULL);<br />
...<br />
void CMainDlg::ThreadFunc(void * dummy)<br />
{<br />
...<br />
}


Any help/pointer will be very helpful. Thankx in advance.


-Tareq
GeneralRe: _beginthread newbie question Pin
Rage31-Jul-03 1:32
professionalRage31-Jul-03 1:32 
GeneralRe: _beginthread newbie question Pin
Renjith Ramachandran31-Jul-03 1:42
Renjith Ramachandran31-Jul-03 1:42 
GeneralRe: _beginthread newbie question Pin
tareqsiraj31-Jul-03 1:50
tareqsiraj31-Jul-03 1:50 
GeneralRe: _beginthread newbie question Pin
Jim Crafton31-Jul-03 8:11
Jim Crafton31-Jul-03 8:11 
GeneralRe: _beginthread newbie question Pin
User 665831-Jul-03 2:11
User 665831-Jul-03 2:11 
GeneralRe: _beginthread newbie question Pin
Vitali Halershtein31-Jul-03 4:55
Vitali Halershtein31-Jul-03 4:55 
GeneralRe: _beginthread newbie question Pin
tareqsiraj31-Jul-03 6:53
tareqsiraj31-Jul-03 6:53 
GeneralSelecting multiple files in subdirectories Pin
BoudewijnEctor31-Jul-03 1:20
BoudewijnEctor31-Jul-03 1:20 
GeneralRe: Selecting multiple files in subdirectories Pin
Ted Ferenc31-Jul-03 1:33
Ted Ferenc31-Jul-03 1:33 
GeneralRe: Selecting multiple files in subdirectories Pin
Jim Crafton31-Jul-03 8:19
Jim Crafton31-Jul-03 8:19 
GeneralDead windows in MFC Pin
BoudewijnEctor31-Jul-03 0:59
BoudewijnEctor31-Jul-03 0:59 
GeneralRe: Dead windows in MFC Pin
BoudewijnEctor31-Jul-03 1:08
BoudewijnEctor31-Jul-03 1:08 
GeneralRe: Dead windows in MFC Pin
jhwurmbach31-Jul-03 1:20
jhwurmbach31-Jul-03 1:20 
GeneralRe: Dead windows in MFC Pin
BoudewijnEctor31-Jul-03 1:23
BoudewijnEctor31-Jul-03 1:23 
GeneralRe: Dead windows in MFC Pin
jhwurmbach31-Jul-03 1:29
jhwurmbach31-Jul-03 1:29 
GeneralRe: Dead windows in MFC Pin
BoudewijnEctor31-Jul-03 1:53
BoudewijnEctor31-Jul-03 1:53 
GeneralRe: Dead windows in MFC Pin
BoudewijnEctor31-Jul-03 2:01
BoudewijnEctor31-Jul-03 2: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.