PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Compiler Options  (Read 209 times)

paulDiagnos

  • Guest
Compiler Options
« on: February 23, 2005, 08:00:44 AM »

#Compile Exe "C:\DIAGNOS\Program1.EXE" '''

If i was using something like Ultra edit to compile my code, i would use the statement above.

how can i do this in fire fly as errors come up when trying to use it.

the reason i want this is so i can have options set so when compiling i can produce 2 versions of a program one to go in one dir and one the other.

thanks Paul
Logged

TechSupport

  • Guest
Compiler Options
« Reply #1 on: February 23, 2005, 08:55:56 AM »

I have been thinking about your problem. I think it can be accomplished by using the new FireFly User Tool facility. Basically, a user tool will be created to run during Post-Compile. The tool simply copies the EXE to a directory of your choosing. The tool would call a PB program that does the copying. For example:

Code:

' Program that simply copies the incoming filename to another directory.

Code: [Select]
       
Function PbMain() As Long

  cmd$ = Command$
 
  'Command$ should enter as a comma delimited string. The first
  'parse is the FromFile and the second parse is the ToFile.
 
  FromFile$ = Trim$(Parse$(cmd$, ",", 1))
  ToFile$   = Trim$(Parse$(cmd$, ",", 2))
 
  FileCopy FromFile$, ToFile$

   'Delete the EXE from the code output directory ????
   ' Kill FromFile$
End Function



Doesn't get any more basic than that. :)

In the User Tool you would set it up as follows (example):

Command Line: D:\FireFly\FileCopy.exe

Parameters: <O><E>,d:\temp\<E>

Action: Invoke during post compile.


The next version of FireFly will allow you to specify where to create code generation and where to place the resulting EXE. (i.e. FireFly will do the copying of the EXE to the other directory for you).
Logged

paulDiagnos

  • Guest
Compiler Options
« Reply #2 on: February 24, 2005, 07:06:10 AM »

So there is no way to do it the proper way???

I could have though of a bodge like that myself, but i thought fire fly may have a hidden open or someway for me to enter the code #Compile Exe "C:\DIAGNOS\Program1.EXE" '''  some place
Logged