Click here to Skip to main content
15,915,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
Nemanja Trifunovic20-Aug-08 3:12
Nemanja Trifunovic20-Aug-08 3:12 
GeneralRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
Cedric Moonen20-Aug-08 3:18
Cedric Moonen20-Aug-08 3:18 
AnswerRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
CPallini20-Aug-08 0:06
mveCPallini20-Aug-08 0:06 
AnswerRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
Jijo.Raj20-Aug-08 0:08
Jijo.Raj20-Aug-08 0:08 
GeneralRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
KarstenK20-Aug-08 0:12
mveKarstenK20-Aug-08 0:12 
GeneralRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
Jijo.Raj20-Aug-08 3:20
Jijo.Raj20-Aug-08 3:20 
AnswerRe: error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'class CString' to 'const unsigned short *' Pin
David Crow20-Aug-08 3:23
David Crow20-Aug-08 3:23 
QuestionGet the program full path. Pin
Ahmed Charfeddine19-Aug-08 23:38
Ahmed Charfeddine19-Aug-08 23:38 
Hello evrybody.
I would like to know how can I retriev the program path once it is installed.
When my executable is launched I would like to acces program ressources like images, xml files.
These are all situatted in relative paths : ie in directories insidethe same dir as the executable it self.

The problem is that many utility functions that loads the ressources only accepts full paths, ie they would not accept something like the following :

./BMPs/tunisia_flag.bmp

So How can I translate that dot (.) to them, how to retrieve the application path ?

Is it possible at least to store the user chosen installation path of the application into registry at installation time, using the SetupProject type so to be retrieved by the application at run time ?

Thank you in advance.

Our Philosophy, Mohammed Baqir Al Sadr

AnswerRe: Get the program full path. Pin
toxcct19-Aug-08 23:42
toxcct19-Aug-08 23:42 
AnswerRe: Get the program full path. Pin
SandipG 19-Aug-08 23:50
SandipG 19-Aug-08 23:50 
GeneralRe: Get the program full path. Pin
JudyL_MD20-Aug-08 7:05
JudyL_MD20-Aug-08 7:05 
QuestionFile Serach [modified] Pin
NewVC++19-Aug-08 23:29
NewVC++19-Aug-08 23:29 
AnswerRe: Off Topic Pin
toxcct19-Aug-08 23:30
toxcct19-Aug-08 23:30 
GeneralRe: Off Topic Pin
NewVC++19-Aug-08 23:40
NewVC++19-Aug-08 23:40 
GeneralRe: Off Topic Pin
toxcct19-Aug-08 23:44
toxcct19-Aug-08 23:44 
GeneralRe: Off Topic Pin
NewVC++19-Aug-08 23:47
NewVC++19-Aug-08 23:47 
QuestionRe: File Serach Pin
CPallini20-Aug-08 0:32
mveCPallini20-Aug-08 0:32 
AnswerRe: File Serach Pin
David Crow20-Aug-08 3:31
David Crow20-Aug-08 3:31 
Questionerror C2039: 'QueryStringValue' : is not a member of 'CRegKey' Pin
Dhiraj kumar Saini19-Aug-08 22:58
Dhiraj kumar Saini19-Aug-08 22:58 
AnswerRe: error C2039: 'QueryStringValue' : is not a member of 'CRegKey' [modified] Pin
toxcct19-Aug-08 23:11
toxcct19-Aug-08 23:11 
GeneralRe: error C2039: 'QueryStringValue' : is not a member of 'CRegKey' Pin
Dhiraj kumar Saini19-Aug-08 23:14
Dhiraj kumar Saini19-Aug-08 23:14 
GeneralRe: error C2039: 'QueryStringValue' : is not a member of 'CRegKey' Pin
_AnsHUMAN_ 19-Aug-08 23:17
_AnsHUMAN_ 19-Aug-08 23:17 
GeneralRe: error C2039: 'QueryStringValue' : is not a member of 'CRegKey' Pin
toxcct19-Aug-08 23:26
toxcct19-Aug-08 23:26 
AnswerRe: error C2039: 'QueryStringValue' : is not a member of 'CRegKey' Pin
Cedric Moonen19-Aug-08 23:12
Cedric Moonen19-Aug-08 23:12 
GeneralRe: error C2039: 'QueryStringValue' : is not a member of 'CRegKey' Pin
Dhiraj kumar Saini19-Aug-08 23:16
Dhiraj kumar Saini19-Aug-08 23:16 

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.