SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-HELP Mailing List Archives

Return to [ 11 | November | 2007 ]

<< Previous Message << >> Next Message >>


Date: Sun, 11 Nov 2007 16:22:08 -0800
From: "Harry Motin" <hmotin@sbcglobal.net >
Reply-To: scoug-help@scoug.com
To: "SCOUG Help" <scoug-help@scoug.com >
Subject: SCOUG-Help: Window Programming Help

Content Type: text/plain

Hello Everyone,
I need some help, some advise, on programming an application in C. My (current) objective is to have the
application read from and write to an *.INI file. The *.INI file will be stored in the same directory as the
application executable.

My problem is that I want to code the window so that it can find the path to the directory where it, the
executable, resides. At that point I can then read from/write to the *.INI. I cannot figure out how to code the
window to find the path.

DosQueryCurrentDir does not work, if you run the executable from a Windowed command prompt, that is
open to some other directory than the directory containing the executable. Similarly, if I use a program
object and the working directory of the program object is different than the executable,
DosQueryCurrentDir does not work under that situation.

Any and all suggestions are greatly appreciated. Thank you.
HCM

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".

For problems, contact the list owner at
"postmaster@scoug.com".

=====================================================


<< Previous Message << >> Next Message >>

Return to [ 11 | November | 2007 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.