Are the OPTS files the only ones that keep track of address's or does the .RES files have something in them?
I have found at x190 (400 decimal) the directory the program is in and x294 (660 decimal) has the fully qualified path with program name (.EXE).
The reason I need this is that I use EBasic on multiple machines. Which happen to have different default user ids that I log on with. I would like to be able to compile my programs on either machine and then just sync the files up. If all I need to do is change what is in the .OPTS files, I can write a program that will correct the address's where needed.
Just want to make sure that is all I need to do.
Thanks,
Bill
Use a project and the IDE will sync them up automatically. When you first load a project (from the file menu) the IDE checks to see if the source and resource files have moved directories and gives you a chance to update them.
However if you want to experiment here is the C stucture used to read/write the .opts file:
struct SingleHeader {
int nVersion;
int nTarget;
int nRunExe;
int nIconIndex;
char compiler_opts[128];
char assembler_opts[128];
char linker_opts[128];
char outpath[MAX_PATH];
char outname[MAX_PATH];
char iconname[MAX_PATH];
};
It has 1 byte packing.
Paul.
How is MAX_PATH defined? 260?
Thanks,
Bill
Bill,
Yes, for that version of VC++ it is defined as 260