Click here to Skip to main content
15,893,486 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Load MFC regular DLL failed Pin
norish29-Jan-10 3:26
norish29-Jan-10 3:26 
AnswerRe: Load MFC regular DLL failed Pin
machengzhi2-Feb-10 15:27
machengzhi2-Feb-10 15:27 
QuestionHardcoded CString file path Pin
al250028-Jan-10 9:28
al250028-Jan-10 9:28 
AnswerRe: Hardcoded CString file path Pin
CPallini28-Jan-10 9:35
mveCPallini28-Jan-10 9:35 
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 
Thanks guys,

I also realized that hardcoding a path(even relative) is stupid and in fact I could not get it to work. I found the following superior method that I had used elsewhere-

char acPath[256];
        if ( GetModuleFileName( NULL, acPath, 256 ) != 0) {
            // guaranteed file name of at least one character after path
            * ( strrchr( acPath, '\\' ) + 1 ) = '\0';
            //AfxMessageBox( acPath );   // Use it
        }

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 
AnswerRe: DLL, EXE, dialog question Pin
Richard MacCutchan28-Jan-10 3:07
mveRichard MacCutchan28-Jan-10 3: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.