Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hardcoded CString file path Pin
Richard MacCutchan28-Jan-10 10:13
mveRichard MacCutchan28-Jan-10 10:13 
GeneralRe: Hardcoded CString file path Pin
CPallini28-Jan-10 10:35
mveCPallini28-Jan-10 10:35 
GeneralRe: Hardcoded CString file path Pin
Richard MacCutchan28-Jan-10 11:23
mveRichard MacCutchan28-Jan-10 11:23 
GeneralRe: Hardcoded CString file path Pin
al250028-Jan-10 11:31
al250028-Jan-10 11:31 
AnswerRe: Hardcoded CString file path Pin
Richard MacCutchan28-Jan-10 10:18
mveRichard MacCutchan28-Jan-10 10:18 
Questionerror C2679: binary '>>' : no operator found Pin
mlchavez28-Jan-10 8:52
mlchavez28-Jan-10 8:52 
AnswerRe: error C2679: binary '>>' : no operator found Pin
Richard MacCutchan28-Jan-10 9:11
mveRichard MacCutchan28-Jan-10 9:11 
GeneralRe: error C2679: binary '>>' : no operator found Pin
mlchavez28-Jan-10 9:39
mlchavez28-Jan-10 9:39 
GeneralRe: error C2679: binary '>>' : no operator found Pin
Richard MacCutchan28-Jan-10 9:46
mveRichard MacCutchan28-Jan-10 9:46 
AnswerRe: error C2679: binary '>>' : no operator found Pin
CODEPC28-Jan-10 10:18
CODEPC28-Jan-10 10:18 
Questionplaying .wav files using double buffering approach Pin
Danzy8328-Jan-10 8:45
Danzy8328-Jan-10 8:45 
AnswerRe: playing .wav files using double buffering approach Pin
enhzflep29-Jan-10 20:29
enhzflep29-Jan-10 20:29 
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 

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.