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

C / C++ / MFC

 
AnswerRe: Heap Fragmentation? Pin
Pavel Klocek16-Oct-02 19:26
Pavel Klocek16-Oct-02 19:26 
AnswerRe: Heap Fragmentation? Pin
Tomasz Sowinski16-Oct-02 23:40
Tomasz Sowinski16-Oct-02 23:40 
GeneralCallback and Assembly Pin
S van Leent16-Oct-02 10:16
S van Leent16-Oct-02 10:16 
GeneralRe: Callback and Assembly Pin
Paul M Watt16-Oct-02 10:41
mentorPaul M Watt16-Oct-02 10:41 
GeneralRe: Callback and Assembly Pin
S van Leent16-Oct-02 10:42
S van Leent16-Oct-02 10:42 
GeneralRe: Callback and Assembly Pin
Joaquín M López Muñoz16-Oct-02 12:00
Joaquín M López Muñoz16-Oct-02 12:00 
GeneralRe: Callback and Assembly Pin
S van Leent16-Oct-02 20:57
S van Leent16-Oct-02 20:57 
GeneralShortcut making .ini behaving abnormally Pin
insanely42016-Oct-02 9:56
insanely42016-Oct-02 9:56 
Greetings...

My application createas .ini file to store some data. I have installer which creates a shortcuts to the .exe the Program Files directory and creates two icons in the start menu and in the desktop.

When I run the application through the desktop shortcut, the .ini file is getting created in the Program Files directory which is what I expect. But when I run the application from the Start menu shortcut, the .ini is getting created in the Start Menu diorectory which is causing the .ini file to be also shown in the Start Menu, which I dont want.

In my application I am using the following method which I belive is wrong -

CreateFile ( "Application.ini", ........ );

How can I make sure that the ini is created in the directory of the program and not anywhere ?

Thanks in advance.

Rgds
Ritesh
GeneralRe: Shortcut making .ini behaving abnormally Pin
Joaquín M López Muñoz16-Oct-02 11:27
Joaquín M López Muñoz16-Oct-02 11:27 
GeneralRe: Shortcut making .ini behaving abnormally Pin
Daniel Ferguson16-Oct-02 14:34
Daniel Ferguson16-Oct-02 14:34 
GeneralRe: Shortcut making .ini behaving abnormally Pin
insanely42016-Oct-02 22:59
insanely42016-Oct-02 22:59 
QuestionOpenDocumentFile() readonly?? Pin
brianwelsch16-Oct-02 9:46
brianwelsch16-Oct-02 9:46 
AnswerRe: OpenDocumentFile() readonly?? Pin
Anonymous16-Oct-02 12:06
Anonymous16-Oct-02 12:06 
GeneralRe: OpenDocumentFile() readonly?? Pin
brianwelsch17-Oct-02 2:41
brianwelsch17-Oct-02 2:41 
GeneralProblem Installer (c++.net) Pin
AnTri16-Oct-02 9:36
AnTri16-Oct-02 9:36 
GeneralRe: Problem Installer (c++.net) Pin
Chris Losinger16-Oct-02 10:41
professionalChris Losinger16-Oct-02 10:41 
GeneralRe: Problem Installer (c++.net) Pin
Stephane Rodriguez.16-Oct-02 10:54
Stephane Rodriguez.16-Oct-02 10:54 
QuestionHow can I set text color in a RichEditCtrl ? Pin
Cris16-Oct-02 9:31
Cris16-Oct-02 9:31 
AnswerRe: How can I set text color in a RichEditCtrl ? Pin
Anonymous16-Oct-02 12:13
Anonymous16-Oct-02 12:13 
GeneralRe: How can I set text color in a RichEditCtrl ? Pin
Cris17-Oct-02 1:41
Cris17-Oct-02 1:41 
Generalstring Pin
16-Oct-02 9:27
suss16-Oct-02 9:27 
GeneralRe: string Pin
Chris Losinger16-Oct-02 10:36
professionalChris Losinger16-Oct-02 10:36 
Generalfile's owner Pin
orcun colak16-Oct-02 8:28
orcun colak16-Oct-02 8:28 
GeneralRe: file's owner Pin
Qiang.Fu18-Oct-02 2:47
Qiang.Fu18-Oct-02 2:47 
Generalunix makefile --> VC++ project Pin
lucy16-Oct-02 8:19
lucy16-Oct-02 8:19 

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.