Using vbc to compile

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have serveral library files , eg a.dll, b.dl
and main program hello.v

I compile by using vb

vbc /verbose /debug- /optimize+ /target:winexe /out:hello.exe Hello.vb /r:System.Dll /r:b.dll /r:a.dl

It generated the hello.exe file and work fin
but I move the exe file to other directory, it fail and ask for the location of library

The question is that
How can I generate the exe file without placing the library file to same directory
Thank Yo
 
* "=?Utf-8?B?RmF0Ym95Q2FudGVlbg==?= said:
I have serveral library files , eg a.dll, b.dll
and main program hello.vb

I compile by using vbc

vbc /verbose /debug- /optimize+ /target:winexe /out:hello.exe Hello.vb /r:System.Dll /r:b.dll /r:a.dll

It generated the hello.exe file and work fine
but I move the exe file to other directory, it fail and ask for the location of library.

The question is that
How can I generate the exe file without placing the library file to same directory!

Did you try to use relative paths: "... /r:.\..\Foo.dll ..."?
 
Back
Top