Can SaveCompiledState create a stand-alone EXE? -
06-18-2004
, 10:27 AM
When I use SaveCompiledState of a VisualBasic.Vsa.VsaEngine to save an
EXE to disk, I get an assembly that can be read by ILDASM.exe.
However, when I run the exe, I get the message:
"MyScript.exe is not a valid Win32 application."
Is it possible to write a script that has an entry point that can be
used in this fashion? Note that I did declare a Public Sub Main ()
within a Module statement. However, the /Main:moduleName compiler
switch is probably not being used by VsaEngine.Compile () because a
script method has to be invoked explicitly...
Thanks in advance,
- Ashok Thirumurthi |