Click here to Skip to main content
15,917,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldynamic menus Pin
Tyrus18211-Oct-04 18:39
Tyrus18211-Oct-04 18:39 
GeneralRe: dynamic menus Pin
Roger Allen12-Oct-04 10:51
Roger Allen12-Oct-04 10:51 
QuestionHow can I Set Background color for a Static text ? Pin
King of Merit11-Oct-04 18:27
King of Merit11-Oct-04 18:27 
AnswerRe: How can I Set Background color for a Static text ? Pin
Sujan Christo11-Oct-04 18:35
Sujan Christo11-Oct-04 18:35 
AnswerRe: How can I Set Background color for a Static text ? Pin
Ravi Bhavnani12-Oct-04 4:03
professionalRavi Bhavnani12-Oct-04 4:03 
GeneralProb on Multi-Threaded Application Pin
Sujan Christo11-Oct-04 18:16
Sujan Christo11-Oct-04 18:16 
GeneralRe: Prob on Multi-Threaded Application Pin
Blake Miller12-Oct-04 5:17
Blake Miller12-Oct-04 5:17 
GeneralWorking directory problem Pin
smbika11-Oct-04 16:52
smbika11-Oct-04 16:52 
Hi,

Here is the scenario:

I have an app which uses CFileDialog to select a file.
All i am really doing with the file is getting the name, its path and extension.

I have an executable (call it myexec)in the directory my app is in, which must be run from that directory as it uses dlls which are there too.

I take the file name (full path) i select and build a command string like "myexec filename-with-full-path" and run it using the system() routine.

It works fine if i choose a file from the home directory of my app but if i chose one from another directory, it fails because it cannot find the executable "myexec".

I am presuming the changing of directories in the CFileDialog control has altered the working directory of my app and if this is so i do not know how to reset it without another call to CFileDialog and returnng to the home directory from within that.

I hope this is not too confusing...I tried to explain it as best as i could...confusing me a little too...

Thanks,
Sean

Firefly, Stargate, Farscape: in that order
GeneralRe: Working directory problem Pin
alex.barylski11-Oct-04 17:49
alex.barylski11-Oct-04 17:49 
GeneralRe: Working directory problem Pin
smbika12-Oct-04 1:54
smbika12-Oct-04 1:54 
GeneralRe: Working directory problem Pin
PJ Arends11-Oct-04 18:11
professionalPJ Arends11-Oct-04 18:11 
GeneralRe: Working directory problem Pin
smbika12-Oct-04 1:55
smbika12-Oct-04 1:55 
GeneralRe: Working directory problem Pin
BlackDice12-Oct-04 4:00
BlackDice12-Oct-04 4:00 
GeneralRe: Working directory problem Pin
smbika12-Oct-04 5:49
smbika12-Oct-04 5:49 
GeneralRichEditCtrl: How to use StreamIn and StreamOut RTF with bitmap info Pin
jackion3111-Oct-04 15:50
jackion3111-Oct-04 15:50 
GeneralRe: RichEditCtrl: How to use StreamIn and StreamOut RTF with bitmap info Pin
Jim Crafton12-Oct-04 5:22
Jim Crafton12-Oct-04 5:22 
GeneralPan/Tilt control guidline needed Pin
baboguru11-Oct-04 15:13
baboguru11-Oct-04 15:13 
Generalinput flow control Pin
Makutu11-Oct-04 14:54
Makutu11-Oct-04 14:54 
GeneralReal time monitoring Pin
jooo11-Oct-04 14:50
jooo11-Oct-04 14:50 
GeneralCListCtrl, OnBegintrack Pin
Vancouver11-Oct-04 14:06
Vancouver11-Oct-04 14:06 
GeneralRe: CListCtrl, OnBegintrack Pin
alex.barylski11-Oct-04 17:54
alex.barylski11-Oct-04 17:54 
GeneralRe: CListCtrl, OnBegintrack Pin
Vancouver11-Oct-04 18:43
Vancouver11-Oct-04 18:43 
GeneralRe: CListCtrl, OnBegintrack Pin
Adi Narayana11-Oct-04 23:48
Adi Narayana11-Oct-04 23:48 
GeneralRe: CListCtrl, OnBegintrack Pin
Vancouver11-Oct-04 19:35
Vancouver11-Oct-04 19:35 
GeneralRe: CListCtrl, OnBegintrack Pin
Blake Miller15-Dec-04 10:09
Blake Miller15-Dec-04 10:09 

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.