Click here to Skip to main content
15,914,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC - gallery and Add to project - missing virtuals Pin
jhwurmbach9-Aug-07 22:47
jhwurmbach9-Aug-07 22:47 
GeneralRe: MFC - gallery and Add to project - missing virtuals Pin
jhwurmbach10-Aug-07 3:53
jhwurmbach10-Aug-07 3:53 
AnswerRe: MFC - gallery and Add to project - missing virtuals [modified] Pin
Nelek13-Aug-07 21:19
protectorNelek13-Aug-07 21:19 
QuestionGetting program directory Pin
hxhl959-Aug-07 9:25
hxhl959-Aug-07 9:25 
AnswerRe: Getting program directory Pin
Chris Losinger9-Aug-07 9:34
professionalChris Losinger9-Aug-07 9:34 
QuestionRe: Getting program directory Pin
hxhl959-Aug-07 11:01
hxhl959-Aug-07 11:01 
AnswerRe: Getting program directory Pin
Chris Losinger9-Aug-07 11:07
professionalChris Losinger9-Aug-07 11:07 
AnswerRe: Getting program directory Pin
David Crow10-Aug-07 2:57
David Crow10-Aug-07 2:57 
hxhl95 wrote:
...I used path.GetBuffer(0) like ::GetModuleFileName(NULL,path.GetBuffer(0),sizeof(path.GetBuffer(0)));.


Since GetBuffer() returns a pointer, you are passing 4 as the third argument to GetModuleFileName(). Try:

GetModuleFileName(NULL, path.GetBuffer(MAX_PATH), MAX_PATH);
path.ReleaseBuffer();



"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


QuestionRe: Getting program directory Pin
hxhl9510-Aug-07 12:25
hxhl9510-Aug-07 12:25 
AnswerRe: Getting program directory Pin
David Crow11-Aug-07 6:35
David Crow11-Aug-07 6:35 
Questionconversion operator ??? Plz help ......... Pin
Zealous_Me9-Aug-07 7:37
Zealous_Me9-Aug-07 7:37 
AnswerRe: conversion operator ??? Plz help ......... Pin
led mike9-Aug-07 8:08
led mike9-Aug-07 8:08 
GeneralRe: conversion operator ??? Plz help ......... Pin
Zealous_Me9-Aug-07 8:32
Zealous_Me9-Aug-07 8:32 
GeneralRe: conversion operator ??? Plz help ......... Pin
led mike9-Aug-07 9:08
led mike9-Aug-07 9:08 
GeneralRe: conversion operator ??? Plz help ......... Pin
Zealous_Me10-Aug-07 8:57
Zealous_Me10-Aug-07 8:57 
GeneralGood luck in the future! Pin
leckey9-Aug-07 9:48
leckey9-Aug-07 9:48 
GeneralRe: Good luck in the future! Pin
Zealous_Me10-Aug-07 8:55
Zealous_Me10-Aug-07 8:55 
GeneralRe: conversion operator ??? Plz help ......... Pin
jhwurmbach9-Aug-07 22:43
jhwurmbach9-Aug-07 22:43 
AnswerRe: conversion operator ??? Plz help ......... Pin
Mark Salsbery9-Aug-07 8:33
Mark Salsbery9-Aug-07 8:33 
GeneralRe: conversion operator ??? Plz help ......... Pin
led mike9-Aug-07 9:08
led mike9-Aug-07 9:08 
GeneralRe: conversion operator ??? Plz help ......... Pin
Mark Salsbery9-Aug-07 9:15
Mark Salsbery9-Aug-07 9:15 
AnswerRe: conversion operator ??? Plz help ......... Pin
Russell'9-Aug-07 8:35
Russell'9-Aug-07 8:35 
QuestionRE: adding a button in a application Pin
itsgood1239-Aug-07 5:11
itsgood1239-Aug-07 5:11 
AnswerRe: RE: adding a button in a application Pin
toxcct9-Aug-07 5:12
toxcct9-Aug-07 5:12 
QuestionRe: RE: adding a button in a application Pin
David Crow9-Aug-07 5:30
David Crow9-Aug-07 5:30 

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.