Click here to Skip to main content
15,894,740 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: #pragma question Pin
Rick York12-Jan-05 12:12
mveRick York12-Jan-05 12:12 
QuestionHow to Access data of Doc in a thread Pin
IsaacLitingjun11-Jan-05 19:21
IsaacLitingjun11-Jan-05 19:21 
AnswerRe: How to Access data of Doc in a thread Pin
Cedric Moonen11-Jan-05 20:12
Cedric Moonen11-Jan-05 20:12 
GeneralRe: How to Access data of Doc in a thread Pin
IsaacLitingjun11-Jan-05 20:52
IsaacLitingjun11-Jan-05 20:52 
GeneralRe: How to Access data of Doc in a thread Pin
Cedric Moonen11-Jan-05 21:07
Cedric Moonen11-Jan-05 21:07 
GeneralRe: How to Access data of Doc in a thread Pin
IsaacLitingjun11-Jan-05 21:23
IsaacLitingjun11-Jan-05 21:23 
AnswerRe: How to Access data of Doc in a thread Pin
Ryan Binns11-Jan-05 20:14
Ryan Binns11-Jan-05 20:14 
GeneralRe: How to Access data of Doc in a thread Pin
IsaacLitingjun11-Jan-05 21:01
IsaacLitingjun11-Jan-05 21:01 
Thank you for your reply.

we need have a thread dealing with something(like initialize drives,and connect to voice_board and dial ...) and our main functions are all in View class, for example: displaymessage... we store the data in doc class.

may i create the thread in my doc class or view class? then i can access the data easiler, but it seems if we create the callout function in view class,we get these errors:

<br />
D:\VC YDCJ\vcydcjView.cpp(431) : error C2664: 'CreateThread' : cannot convert parameter 3 from 'int (void)' to 'unsigned long (__stdcall *)(void *)'<br />
        None of the functions with this name in scope match the target type<br />


thank you and waiting for your reply... thx!


- - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...

There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...

YOU WILL WHEN YOU BELIEVE

QuestionCpu usage? Pin
dSolariuM11-Jan-05 19:10
dSolariuM11-Jan-05 19:10 
AnswerRe: Cpu usage? Pin
Jetli Jerry12-Jan-05 0:10
Jetli Jerry12-Jan-05 0:10 
AnswerRe: Cpu usage? Pin
David Crow12-Jan-05 5:43
David Crow12-Jan-05 5:43 
GeneralListBox problem Pin
Ivan Cachicatari11-Jan-05 18:54
Ivan Cachicatari11-Jan-05 18:54 
GeneralRe: ListBox problem Pin
basementman12-Jan-05 4:01
basementman12-Jan-05 4:01 
GeneralRe: ListBox problem Pin
Ivan Cachicatari12-Jan-05 7:27
Ivan Cachicatari12-Jan-05 7:27 
Generalprocess ID to process name Pin
2000ram11-Jan-05 18:22
2000ram11-Jan-05 18:22 
GeneralRe: process ID to process name Pin
Aamir Butt11-Jan-05 19:33
Aamir Butt11-Jan-05 19:33 
GeneralVirtual Destructors Pin
Neelesh K J Jain11-Jan-05 18:07
Neelesh K J Jain11-Jan-05 18:07 
GeneralRe: Virtual Destructors Pin
Cedric Moonen11-Jan-05 19:58
Cedric Moonen11-Jan-05 19:58 
GeneralRe: Virtual Destructors Pin
digwizfox13-Jan-05 7:16
digwizfox13-Jan-05 7:16 
GeneralGDI Edit Questions, Please Help Pin
c++code10111-Jan-05 17:50
c++code10111-Jan-05 17:50 
GeneralCProgressCtrl problem in Status bar Pin
Neelesh K J Jain11-Jan-05 16:44
Neelesh K J Jain11-Jan-05 16:44 
GeneralNot a problem... Pin
Kochise11-Jan-05 21:51
Kochise11-Jan-05 21:51 
Generalgethostbyname C2143 Pin
Vadim Tabakman11-Jan-05 14:57
Vadim Tabakman11-Jan-05 14:57 
GeneralRe: gethostbyname C2143 Pin
Antony M Kancidrowski12-Jan-05 2:28
Antony M Kancidrowski12-Jan-05 2:28 
GeneralRe: gethostbyname C2143 Pin
Vadim Tabakman12-Jan-05 10:00
Vadim Tabakman12-Jan-05 10:00 

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.