Hi,

I am now adding a custom command in the source insight 31. and I am now exhausted!
I want to add the command "compile" in the menu bar corresponding to a .bat file. for example:

command name: compile
run (command line) : d:\masm32\bin\bldall %f
......

Here bldall is the primary part of a batch filename (I means the whole filename without path is bldall.bat).
I run the command added, but the source insight tells me that is a wrong command. When I change the command line as below:

command line: d:\masm32\bin\bldall.bat

The Dos box comes out and this batch file runs without any parameter(be coz I do not transfer para to it :-) ).
Every one knows that if I send command --bldall %f,assuming %f is a whole .asm filename,--to DOS shell ,it is okay.

Why this question happens to Source Insight? And how can I add a command to run a batch file with parameters ?

thx in advance
ian
:o
Posted on 2002-11-05 01:55:33 by ian__woo
Hi,look here,it's no problem.(Default ,.exe or .com should put in command line)
Posted on 2002-11-05 07:48:17 by jingulong
Hi,Jingulong

Thank u very much.
I finished it la, and now I am using this editor. It is very wonderful



ian
Nov. 7
Posted on 2002-11-05 21:05:36 by ian__woo
Hi,ian__woo
You can use Make.exe insted of .bat
Posted on 2002-11-05 23:32:47 by jingulong
Hi,Jingulong

Thank u very much once again.
I appreciate ur help , and I will try to use a make.exe instead of the .bat file there.
I will post a messenge here if I succeed .


Best Regards,
ian
Nov.,7
Posted on 2002-11-05 23:42:16 by ian__woo
Hi, Jingulong,

There are 2 questions when I use a make.exe instead of the .bat file .

1) I have no make.exe in /masm32/bin or other directories in my pc, so I copied one nmake.exe from vc60 and use it as a make.exe file u refered to. Is nmake.exe can be used here?
2) I do not know how to put a .mak file with the namke.exe file together in the command text box. I think it will never work properly since I used this command line in the dos shell and it failed

in the dos shell
nmake file.mak /*assume the file.mak is the makefile */

in the custom define command text box of the source insight
nmake %d/%b.mak /*%d gives the directory of the file being edited, and %b
gives the name only of the file, so %d/%b gives a file name
such as : d:/mydirctory/myfile (no extensionName)
*/

Those 2 approaches above all failed. but It works properly when I move my ml.exe , link.exe and rc.exe in the directory of my sourceinsight and put the following string in the command text box of the source insight:

nmake %d/%b.exe

It suggests that I can not use a .mak file when I use the nmake.exe file here in stead of the .bat file !

:confused: Where can I get a make.exe file for my masm32? and How to use it with a .mak file in my source insight editor..


Best Regards,
ian
Nov. 8
Posted on 2002-11-06 09:21:33 by ian__woo
You can use the "Make.exe" of Borland's tasm package.
Posted on 2002-11-06 21:49:17 by jingulong
Hi, Jingulong,

I need ur help again.
I have downloaded the Tasm5 and installed it. I configured my source insight custom command compileAll as bellow:

command: compileAll
run: d:\tasm\bin\make.exe -r %d/%b.exe
dir : %d
The .mak file is as bellow:

NAME=connect
$(NAME).exe: $(NAME).obj $(NAME).res
d:\masm32\bin\Link /SUBSYSTEM:WINDOWS /LIBPATH:\MASM32\lib $(NAME).obj $(NAME).res
$(NAME).obj: $(NAME).asm
d:\masm32\bin\ml /c /coff /Cp $(NAME).asm
$(NAME).res: $(NAME).rc
d:\masm32\bin\rc $(NAME)
Clean:
Erase $(NAME).obj

but it seems not work and it shows me no information of the command's running result.
Is there something wrong? and How to ..?


thx in advance and best regards,
ian
Nov.,7
Posted on 2002-11-07 01:29:07 by ian__woo
Hi,ian__woo, u can do it just as:

run: d:\tasm\bin\make.exe
dir :

The .mak file is as bellow:

NAME=connect
$(NAME).exe: $(NAME).obj $(NAME).res
d:\masm32\bin\Link /SUBSYSTEM:WINDOWS /LIBPATH:\MASM32\lib $(NAME).obj $(NAME).res
$(NAME).obj: $(NAME).asm
d:\masm32\bin\ml /c /coff /Cp $(NAME).asm
$(NAME).res: $(NAME).rc
d:\masm32\bin\rc $(NAME)
Posted on 2002-11-07 07:15:54 by jingulong
Hi, Jingulong,

Thank u very much, I get it la.


Regards,
ian
Nov.,7:alright:
Posted on 2002-11-07 08:03:32 by ian__woo