Click here to Skip to main content
15,891,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUsing Google Map in MFC application? Pin
CODEPC28-Jan-10 7:22
CODEPC28-Jan-10 7:22 
GeneralRe: Using Google Map in MFC application? Pin
David Crow28-Jan-10 8:53
David Crow28-Jan-10 8:53 
AnswerRe: Using Google Map in MFC application? Pin
loyal ginger28-Jan-10 10:07
loyal ginger28-Jan-10 10:07 
GeneralRe: Using Google Map in MFC application? Pin
CODEPC28-Jan-10 11:40
CODEPC28-Jan-10 11:40 
AnswerRe: Using Google Map in MFC application? Pin
Nemanja Trifunovic28-Jan-10 10:29
Nemanja Trifunovic28-Jan-10 10:29 
QuestionSyntax problem with "" Pin
gregarion28-Jan-10 3:50
gregarion28-Jan-10 3:50 
AnswerRe: Syntax problem with "" Pin
Covean28-Jan-10 3:55
Covean28-Jan-10 3:55 
QuestionDLL, EXE, dialog question Pin
DaveHitchman28-Jan-10 2:58
DaveHitchman28-Jan-10 2:58 
The outline of the problem:
I have an exe which will be displaying the status of various pieces of remote equipment in the form of icons and screens.
The remote equipment is NOT defined at this stage so I want a DLL which I can NAME in a setup file, load, and which has a standard interface to my main exe. The interface (at the moment) is 'load', 'giveMeStatusIcon', 'updateStatus' (largely so I can force the change of the status icon), 'showStatusScreen'

The basics of loading a DLL from a name, getting the interface, calling the functions above all work. I can on my 'exe' screen show the returned status icons - these icons are resources in the dll and returned as icons for my exe to display

The problem comes when I ask it to show the status screen. This screen is defined in the DLL resource, and thats the way I want it - I don't want my exe to have to worry about what is in that DLL screen, what it does or how it does it. The DLL gets called, loads the dialog resource ok, but the DoModal call causes an assert - the DLL is not a CWinApp so DoModal can't apparently work.

I guess one possible way is to stop creating a DLL and create an EXE, start that and setup some inter process comms to deal with the communication. But I would much rather stick to the plan of using a DLL.

Does anyone have any suggestions?

Note I do NOT want to write all possible remote device DLL's now and start putting .h files in my exe, I want to stick to the basic idea of having these as items I can develop next month, next year, or whenever and use frmo my exe via loading of a dll file with a fixed API (at least to my exe) at run time.
AnswerRe: DLL, EXE, dialog question Pin
Richard MacCutchan28-Jan-10 3:07
mveRichard MacCutchan28-Jan-10 3:07 
QuestionActiveX Controls. Pin
ashwath197928-Jan-10 2:28
ashwath197928-Jan-10 2:28 
QuestionInputing variable into string.find Pin
gregarion28-Jan-10 2:25
gregarion28-Jan-10 2:25 
QuestionRe: Inputing variable into string.find Pin
CPallini28-Jan-10 2:38
mveCPallini28-Jan-10 2:38 
AnswerRe: Inputing variable into string.find Pin
gregarion28-Jan-10 2:53
gregarion28-Jan-10 2:53 
GeneralRe: Inputing variable into string.find Pin
CPallini28-Jan-10 3:35
mveCPallini28-Jan-10 3:35 
AnswerRe: Inputing variable into string.find Pin
David Crow28-Jan-10 3:35
David Crow28-Jan-10 3:35 
AnswerRe: Inputing variable into string.find Pin
David Crow28-Jan-10 3:32
David Crow28-Jan-10 3:32 
GeneralRe: Inputing variable into string.find Pin
gregarion28-Jan-10 3:47
gregarion28-Jan-10 3:47 
QuestionDetermine the language of the OS Pin
Joschwenk66628-Jan-10 1:13
Joschwenk66628-Jan-10 1:13 
AnswerRe: Determine the language of the OS Pin
Richard MacCutchan28-Jan-10 1:42
mveRichard MacCutchan28-Jan-10 1:42 
AnswerRe: Determine the language of the OS Pin
Covean28-Jan-10 1:43
Covean28-Jan-10 1:43 
Questionwin7 & vista's problem Pin
nenfa28-Jan-10 1:07
nenfa28-Jan-10 1:07 
AnswerRe: win7 & vista's problem Pin
Richard MacCutchan28-Jan-10 1:44
mveRichard MacCutchan28-Jan-10 1:44 
GeneralRe: win7 & vista's problem Pin
nenfa28-Jan-10 3:21
nenfa28-Jan-10 3:21 
GeneralRe: win7 & vista's problem Pin
nenfa28-Jan-10 3:28
nenfa28-Jan-10 3:28 
GeneralRe: win7 & vista's problem Pin
Richard MacCutchan28-Jan-10 5:07
mveRichard MacCutchan28-Jan-10 5:07 

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.