Thread View: comp.os.msdos.programmer
3 messages
3 total messages
Started by John A. Dulleck
Thu, 02 Aug 1990 22:19
Turbo C++ 1.0 Help Question
Author: John A. Dulleck
Date: Thu, 02 Aug 1990 22:19
Date: Thu, 02 Aug 1990 22:19
23 lines
1347 bytes
1347 bytes
This concerns the TC 1.0 help system, and a help option that I've not been able to get to. The menu is Help/Contents. In that menu ther are several features listed, such as: Help On Help Menu Commands Keyboard Hot Keys C++ Language Header Files etc. etc. On my Mono monitor all of the above options appear highlighted, with the exception of "C++ Language", and I cannot select this option. Has anyone else seen this? I've not found anything in documentation that explains this, or why the option is not available. C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++ John A. Dulleck C I am the Way, the Truth, and the jdulleck@megatest.UUCP + Light, no one comes to the Father Std. Disclaimer + but by Me. - Jesus - John 14:6 C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
Help needed for sharing common data between programs
Author: Ken-Huang Lin
Date: Thu, 09 Aug 1990 04:22
Date: Thu, 09 Aug 1990 04:22
12 lines
985 bytes
985 bytes
I would like to have some "global variables" remain alive even after the
program ends so that the next program can access them. I tried to set
environment variables inside the program using
system("set v=...");
in Turbo C. Unfortunately, the effect is only local to that program. Is
there any way to set the global environment variables in a program? Or is
there a better way to serve the same purpose?
Thank you in advance,
Ken H. Lin
lin@uiwpl.ece.uiuc.edu
Re: Help needed for sharing common data between programs
Author: Jeff MUZZY
Date: Sat, 11 Aug 1990 01:29
Date: Sat, 11 Aug 1990 01:29
33 lines
1803 bytes
1803 bytes
>From: klg0582@uxa.cso.uiuc.edu (Ken-Huang Lin)
| I would like to have some "global variables" remain alive even after the
| program ends so that the next program can access them. I tried to set
| environment variables inside the program using
| system("set v=...");
| in Turbo C. Unfortunately, the effect is only local to that program. Is
| there any way to set the global environment variables in a program? Or is
| there a better way to serve the same purpose?
Here is how I would solve the problem. This is like our config files for
Windows and Lanman.
I would create a file called GLOBAL.INI which is pointed to by an
ENV variable called HOME or INIT. I would write generic routine to
read and write from the tags in the file. The structure of the file
would be like.
[Program-1]
var1=szTag
var2=1
var3=Color
Then when you run your program you can use your routine to access from
init file. If you ever port your software to windows or PM your code won't
have to change much. Look at the call GetProfileString() in a book
about windows program to give you an idea.
--
jeffmu@microsoft or uunet!microsoft!jeffmu MaBellNet: (206) 882-8080
<Insert your favorite disclaimer about opinions and companies here>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads