Click here to Skip to main content
15,896,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFormatting Double Pin
AJ12324-Oct-01 12:20
AJ12324-Oct-01 12:20 
GeneralRe: Formatting Double Pin
Christian Graus24-Oct-01 12:28
protectorChristian Graus24-Oct-01 12:28 
Generalwsprintf does not work with doubles Pin
Tomasz Sowinski25-Oct-01 1:14
Tomasz Sowinski25-Oct-01 1:14 
GeneralRe: Formatting Double Pin
Mike Burston24-Oct-01 12:52
Mike Burston24-Oct-01 12:52 
General"STL & typedef problem" of MFC extened DLL programing Pin
24-Oct-01 11:37
suss24-Oct-01 11:37 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Christian Graus24-Oct-01 11:47
protectorChristian Graus24-Oct-01 11:47 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
24-Oct-01 19:28
suss24-Oct-01 19:28 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Michael Dunn24-Oct-01 19:44
sitebuilderMichael Dunn24-Oct-01 19:44 
Cast the return value of AfxGetApp() to your CWinApp-derived type:
CMyApp* pMyapp = (CMyApp*) AfxGetApp();
A word of caution though, if you rely on this in your DLL, then you must make an MFC regular DLL, not an MFC extension DLL. An extension DLL shares the CWinApp object of the EXE, whereas a regular DLL has its own CWinApp object.

--Mike--
http://home.inreach.com/mdunn/
This posting is provided "as was" with no warranties, guarantees, lotteries, or any of those little bags of peanuts you get on planes. You assume all risk for crossing the street without holding mommy's hand. © 2001 Mike's Classy Software. Member FDIC. If rash develops, discontinue use.
Heart | [heart] your Green Alien | [Alien] with Good Stuff | [The good stuff] and Beer | [beer]
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
24-Oct-01 20:23
suss24-Oct-01 20:23 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Michael Dunn24-Oct-01 20:42
sitebuilderMichael Dunn24-Oct-01 20:42 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Steen Krogsgaard24-Oct-01 20:59
Steen Krogsgaard24-Oct-01 20:59 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Michael Dunn24-Oct-01 21:25
sitebuilderMichael Dunn24-Oct-01 21:25 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Steen Krogsgaard24-Oct-01 22:16
Steen Krogsgaard24-Oct-01 22:16 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Michael Dunn24-Oct-01 14:40
sitebuilderMichael Dunn24-Oct-01 14:40 
GeneralRe: "STL & typedef problem" of MFC extened DLL programing Pin
Christian Graus24-Oct-01 14:42
protectorChristian Graus24-Oct-01 14:42 
GeneralRepositioning a toolbar Pin
Walter Pak24-Oct-01 11:19
Walter Pak24-Oct-01 11:19 
GeneralRe: Repositioning a toolbar Pin
Christian Graus24-Oct-01 18:40
protectorChristian Graus24-Oct-01 18:40 
GeneralDatabase question Pin
Peter Molnar24-Oct-01 10:45
Peter Molnar24-Oct-01 10:45 
GeneralRe: Database question Pin
Michael P Butler24-Oct-01 11:21
Michael P Butler24-Oct-01 11:21 
GeneralRe: Database question Pin
Simon Walton24-Oct-01 11:28
Simon Walton24-Oct-01 11:28 
GeneralRe: Database question Pin
Michael P Butler24-Oct-01 11:38
Michael P Butler24-Oct-01 11:38 
GeneralRe: Database question Pin
Carlos Antollini24-Oct-01 11:49
Carlos Antollini24-Oct-01 11:49 
GeneralRe: Database question Pin
Simon Walton24-Oct-01 11:25
Simon Walton24-Oct-01 11:25 
GeneralRe: Database question Pin
Christian Graus24-Oct-01 11:49
protectorChristian Graus24-Oct-01 11:49 
GeneralRe: Database question Pin
Braulio Dez25-Oct-01 4:04
Braulio Dez25-Oct-01 4:04 

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.