Click here to Skip to main content
15,902,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Getting notification for changes of files in the system Pin
Jijo.Raj9-Nov-08 21:30
Jijo.Raj9-Nov-08 21:30 
QuestionWriteFile returns non-zero(Success) NumberBytesWritten is 0 Pin
Shiva Prasad9-Nov-08 2:48
Shiva Prasad9-Nov-08 2:48 
QuestionHow to get CDocument pointer in Dialog class Pin
Max++8-Nov-08 23:58
Max++8-Nov-08 23:58 
AnswerRe: How to get CDocument pointer in Dialog class Pin
Mark Salsbery9-Nov-08 6:21
Mark Salsbery9-Nov-08 6:21 
QuestionHow to detect whether a COM port is available or not ? Pin
brucewayn8-Nov-08 21:45
brucewayn8-Nov-08 21:45 
AnswerRe: How to detect whether a COM port is available or not ? Pin
Rolf Kristensen9-Nov-08 1:29
Rolf Kristensen9-Nov-08 1:29 
QuestionHow can I create a working thread in a MFC regular dll Pin
W.Kim 19878-Nov-08 20:51
W.Kim 19878-Nov-08 20:51 
AnswerRe: How can I create a working thread in a MFC regular dll Pin
Mark Salsbery9-Nov-08 6:30
Mark Salsbery9-Nov-08 6:30 
First make sure you've covered the requirements for a regular DLL
that uses MFC (taken from the docs):

1) Compiled with _USRDLL defined, and if the DLL links to MFC dynamically,
_AFXDLL must be defined.

2) The DLL must instantiate a CWinApp-derived class.

3) The DLL uses the DllMain provided by MFC. Don't add your own.
Place all DLL-specific initialization code in the InitInstance
member function and termination code in ExitInstance as in a normal
MFC application.


In the dll you can use AfxBeginThread() to create worker threads.


If you don't know how to actually use a DLL, you may want to study:

DLLs[^]


Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: How can I create a working thread in a MFC regular dll Pin
W.Kim 19879-Nov-08 14:07
W.Kim 19879-Nov-08 14:07 
GeneralRe: How can I create a working thread in a MFC regular dll Pin
Mark Salsbery9-Nov-08 14:10
Mark Salsbery9-Nov-08 14:10 
GeneralRe: How can I create a working thread in a MFC regular dll [modified] Pin
W.Kim 19879-Nov-08 18:04
W.Kim 19879-Nov-08 18:04 
GeneralRe: How can I create a working thread in a MFC regular dll Pin
Iain Clarke, Warrior Programmer9-Nov-08 22:25
Iain Clarke, Warrior Programmer9-Nov-08 22:25 
GeneralRe: How can I create a working thread in a MFC regular dll Pin
W.Kim 198710-Nov-08 3:06
W.Kim 198710-Nov-08 3:06 
GeneralRe: How can I create a working thread in a MFC regular dll Pin
Mark Salsbery10-Nov-08 4:53
Mark Salsbery10-Nov-08 4:53 
GeneralRe: How can I create a working thread in a MFC regular dll Pin
Mark Salsbery10-Nov-08 5:00
Mark Salsbery10-Nov-08 5:00 
QuestionPointer symbol position and constant member functions Pin
Christian Flutcher8-Nov-08 16:55
Christian Flutcher8-Nov-08 16:55 
AnswerRe: Pointer symbol position and constant member functions Pin
Saurabh.Garg8-Nov-08 18:55
Saurabh.Garg8-Nov-08 18:55 
GeneralRe: Pointer symbol position and constant member functions Pin
Christian Flutcher9-Nov-08 5:35
Christian Flutcher9-Nov-08 5:35 
AnswerRe: Pointer symbol position and constant member functions Pin
toxcct9-Nov-08 3:05
toxcct9-Nov-08 3:05 
GeneralRe: Pointer symbol position and constant member functions Pin
Christian Flutcher9-Nov-08 5:30
Christian Flutcher9-Nov-08 5:30 
AnswerRe: Pointer symbol position and constant member functions Pin
Iain Clarke, Warrior Programmer9-Nov-08 4:04
Iain Clarke, Warrior Programmer9-Nov-08 4:04 
GeneralRe: Pointer symbol position and constant member functions Pin
Christian Flutcher9-Nov-08 5:32
Christian Flutcher9-Nov-08 5:32 
QuestionHow to format like this 123,456,789.00? Pin
followait8-Nov-08 16:05
followait8-Nov-08 16:05 
AnswerRe: How to format like this 123,456,789.00? Pin
Saurabh.Garg8-Nov-08 18:57
Saurabh.Garg8-Nov-08 18:57 
GeneralRe: How to format like this 123,456,789.00? Pin
followait8-Nov-08 19:41
followait8-Nov-08 19:41 

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.