Thread: C++ queries
View Single Post
Old 02-04-2001, 04:16 AM   #2
RJ
Member (14 bit)
 
Join Date: Feb 2000
Location: Offenbach/Main (Germany)
Posts: 8,485
Send a message via ICQ to RJ
Smile

Hello,

3 things I can answer:

1. Depends for what OS you write. If you write a Win2K program, it will run under Win2K. If you write a Linux program, you'll get problems getting it to run under Win2K.

4. If I understood you right, you want your program starting up every time windows is started, right ?
The easiest way is to create a shortcut to your program in autostart folder.
If you want the program to install itself, or write a setup routine, then write your program into the windows registry to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
Just write there the path to your program.

5. In C++ you also can use malloc and free, but if you want to use the new ones, they're called NEW and DELETE
example:

int *pointer = new int;

delete pointer;

Hope this helps.

RJ
RJ is offline   Reply With Quote