Click here to Skip to main content
15,911,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: An unexplained compiler error (C2039) Pin
Anonymous9-May-04 5:01
Anonymous9-May-04 5:01 
QuestionHow to get _DSpreadSheet's point from handle? Pin
wl@syntc.com.cn7-May-04 20:45
wl@syntc.com.cn7-May-04 20:45 
GeneralProtocol Validation Pin
Kannan Ramanathan7-May-04 20:03
Kannan Ramanathan7-May-04 20:03 
Generalrecursive directory searching Pin
Ryan McDermott7-May-04 16:12
Ryan McDermott7-May-04 16:12 
GeneralRe: recursive directory searching Pin
nguyenvhn7-May-04 17:17
nguyenvhn7-May-04 17:17 
GeneralRe: recursive directory searching Pin
Joe Woodbury7-May-04 17:40
professionalJoe Woodbury7-May-04 17:40 
GeneralRe: recursive directory searching Pin
2249177-May-04 19:27
2249177-May-04 19:27 
GeneralRe: recursive directory searching Pin
Joe Woodbury8-May-04 8:36
professionalJoe Woodbury8-May-04 8:36 
A) You should NEVER assume what the directory is in your project.

B) Just call GetCurrentDirectory() before the call then restore it afterward. You could encapsulate it in a class (which I have.)

C) Alternatively, you could use the final directory buffer to build up the path as you go. It requires a little more parsing, but if you preserve the length to make it easier to strip the path back down, it's not difficult. (Yes, I've done it this way, especially in the DOS days.)


Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke

GeneralINI File/MFC Pin
ThongNguyen7-May-04 16:07
ThongNguyen7-May-04 16:07 
GeneralRe: INI File/MFC Pin
Joe Woodbury7-May-04 17:43
professionalJoe Woodbury7-May-04 17:43 
GeneralRe: INI File/MFC Pin
Anonymous7-May-04 18:11
Anonymous7-May-04 18:11 
QuestionHow can I calculate??? help Pin
Snyp7-May-04 15:00
Snyp7-May-04 15:00 
AnswerRe: How can I calculate??? help Pin
valikac7-May-04 18:47
valikac7-May-04 18:47 
GeneralRe: How can I calculate??? help Pin
Rafael Fernández López7-May-04 23:14
Rafael Fernández López7-May-04 23:14 
GeneralRe: How can I calculate??? help Pin
Snyp8-May-04 13:04
Snyp8-May-04 13:04 
Generalwebbrowser control in dll Pin
dilip_sarangi7-May-04 14:59
sussdilip_sarangi7-May-04 14:59 
GeneralRe: webbrowser control in dll Pin
Rafael Fernández López7-May-04 23:17
Rafael Fernández López7-May-04 23:17 
GeneralHandling Minimize event Pin
Dev5787-May-04 12:55
Dev5787-May-04 12:55 
GeneralRe: Handling Minimize event Pin
Garth J Lancaster7-May-04 14:09
professionalGarth J Lancaster7-May-04 14:09 
GeneralRe: Handling Minimize event Pin
Joe Woodbury7-May-04 17:44
professionalJoe Woodbury7-May-04 17:44 
GeneralRe: Handling Minimize event Pin
nguyenvhn7-May-04 22:29
nguyenvhn7-May-04 22:29 
Generallistbox custom draw Pin
roel_7-May-04 12:46
roel_7-May-04 12:46 
GeneralRe: listbox custom draw Pin
Joe Woodbury7-May-04 17:47
professionalJoe Woodbury7-May-04 17:47 
GeneralRe: listbox custom draw Pin
roel_8-May-04 5:33
roel_8-May-04 5:33 
GeneralBMP trouble Pin
Rafael Fernández López7-May-04 11:40
Rafael Fernández López7-May-04 11:40 

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.