October 30, 2025, 01:06:01 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Question about .OPTS files

Started by billhsln, September 15, 2008, 05:22:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

billhsln

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
When all else fails, get a bigger hammer.

Ionic Wind Support Team

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.
Ionic Wind Support Team

billhsln

How is MAX_PATH defined?  260?

Thanks,
Bill
When all else fails, get a bigger hammer.

Ionic Wind Support Team

Bill,
Yes, for that version of VC++ it is defined as 260
Ionic Wind Support Team