Click here to Skip to main content
15,921,941 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: connecting vs.net c++ to mysql Pin
Christian Graus4-Jul-05 13:19
protectorChristian Graus4-Jul-05 13:19 
GeneralOutlook express add in Pin
Wessam Fathi3-Jul-05 14:14
Wessam Fathi3-Jul-05 14:14 
GeneralaxWebBrowser in MC++ Pin
2-Jul-05 9:31
suss2-Jul-05 9:31 
GeneralRe: axWebBrowser in MC++ Pin
ursus zeta3-Jul-05 12:31
ursus zeta3-Jul-05 12:31 
GeneralRe: axWebBrowser in MC++ Pin
osamahmirza4-Jul-05 10:11
osamahmirza4-Jul-05 10:11 
GeneralDeveloping Database Applications Using Dialog Forms instead of SDI or MDI with ADO connectivity Pin
Wisdom200429-Jun-05 21:24
Wisdom200429-Jun-05 21:24 
GeneralRe: Developing Database Applications Using Dialog Forms instead of SDI or MDI with ADO connectivity Pin
osamahmirza2-Jul-05 9:56
osamahmirza2-Jul-05 9:56 
Generalproblem with _beginthread in second class Pin
Niels_Bergsma29-Jun-05 12:56
Niels_Bergsma29-Jun-05 12:56 
Hi everyone,

I'm developing a c++ multithread app create a thread in a separated class:

I've also used _beginthread in the main function of the program without any problems, here my code looks liks this:
_beginthread(StartTCPService,0, NULL );

In my second class (tmpClient) I tried to do the same with this code:

<br />
void ClientThread (void *socket)<br />
{<br />
    SOCKET sd = (SOCKET) socket;<br />
}<br />

and to create a thread:
_beginthread(SocketClientThread,0, NULL);

But my compiler complains that:

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


I tried to convert the thread func to a static one, but with any luck.

What's wrong with this code, why can't I create a thread ?

Regards,

Niels Bergsma

Note: I'm developing with VisualStudio .Net 2003
GeneralArray Pin
Saksida Bojan28-Jun-05 6:05
Saksida Bojan28-Jun-05 6:05 
GeneralRe: Array Pin
ursus zeta2-Jul-05 8:50
ursus zeta2-Jul-05 8:50 
GeneralMagaging Document and View Classes inDialog Based Database applications. Pin
Wisdom200428-Jun-05 0:59
Wisdom200428-Jun-05 0:59 
GeneralRe: Magaging Document and View Classes inDialog Based Database applications. Pin
Sheng Jiang 蒋晟10-Jul-05 14:06
Sheng Jiang 蒋晟10-Jul-05 14:06 
QuestionHow to wrapp Friend function in managed c++? Pin
SudhaMakki28-Jun-05 0:51
SudhaMakki28-Jun-05 0:51 
AnswerRe: How to wrapp Friend function in managed c++? Pin
ursus zeta2-Jul-05 8:55
ursus zeta2-Jul-05 8:55 
GeneralCreating Files Pin
Saksida Bojan27-Jun-05 10:02
Saksida Bojan27-Jun-05 10:02 
GeneralRe: Creating Files Pin
osamahmirza2-Jul-05 10:07
osamahmirza2-Jul-05 10:07 
GeneralRe: Creating Files Pin
Saksida Bojan3-Jul-05 3:38
Saksida Bojan3-Jul-05 3:38 
GeneralRe: Creating Files Pin
afinnell15-Jul-05 15:50
afinnell15-Jul-05 15:50 
GeneralRe: Creating Files Pin
Saksida Bojan18-Jul-05 4:35
Saksida Bojan18-Jul-05 4:35 
Generalopening word and passing strings to a word template doc in C++ Pin
JPARR27-Jun-05 0:37
JPARR27-Jun-05 0:37 
GeneralRe: opening word and passing strings to a word template doc in C++ Pin
ursus zeta28-Jun-05 10:19
ursus zeta28-Jun-05 10:19 
GeneralRe: opening word and passing strings to a word template doc in C++ Pin
JPARR28-Jun-05 22:38
JPARR28-Jun-05 22:38 
GeneralFile Operation (Read, Write etc..) monitoring system Pin
e_prabhu26-Jun-05 23:15
e_prabhu26-Jun-05 23:15 
GeneralRe: evolutionry artificial neural network (neural network with genetic algorithm) Pin
Christian Graus26-Jun-05 19:55
protectorChristian Graus26-Jun-05 19:55 
GeneralParameter passing between Managed C++ and C#.NET Pin
wdli24-Jun-05 13:52
wdli24-Jun-05 13:52 

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.