Page 1 of 1

How do I make a VC++ wrapper for a EVB app?

PostPosted: Mar 30, 2001 @ 5:35am
by Jay
DOes anyone know how to make a VC++ wrapper for an EVB app so I can change the icon and start it like a normal program?

Re: How do I make a VC++ wrapper for a EVB app?

PostPosted: Mar 30, 2001 @ 6:49am
by Dan East
I've never created a EVB app. Does it produce an EXE, or some other type of file? If it's not an executable, can you click on the file in File Manager and CE will start it automatically?<br><br>Dan East

Re: How do I make a VC++ wrapper for a EVB app?

PostPosted: Mar 30, 2001 @ 6:50am
by Jay
It makes a .vb file.  However, you can just click it and it will start like an applcation.

Re: How do I make a VC++ wrapper for a EVB app?

PostPosted: Mar 30, 2001 @ 6:55am
by Dan East
Then use the following in a EVC app:<br><br>SHELLEXECUTEINFO sei;<br>memset(&sei, 0, sizeof(sei));<br>sei.cbSize=sizeof(sei);<br>sei.fMask=SEE_MASK_NOCLOSEPROCESS;<br>sei.lpVerb=_T("open" ) ;<br>sei.lpFile=_T("MyVisualBasicAppToLaunch.vb" ) ;<br>sei.nShow=SW_SHOW;<br>ShellExecuteEx(&sei);<br><br>Dan East<br><br><br>Last modification: Dan East - 03/30/01 at 03:55:29

Re: How do I make a VC++ wrapper for a EVB app?

PostPosted: Mar 30, 2001 @ 6:56am
by Jay
Thanks

Re: How do I make a VC++ wrapper for a EVB app?

PostPosted: Mar 30, 2001 @ 7:10am
by Jay
It says cannot open program file.  I think it's trying to open it as an exe.

Re: How do I make a VC++ wrapper for a EVB app?

PostPosted: Mar 30, 2001 @ 7:27am
by Dan East
You're passing the full path to the vb file, right?<br><br>Dan East

Re: How do I make a VC++ wrapper for a EVB app?

PostPosted: Mar 30, 2001 @ 7:31am
by Jay
I don't need to, it's in the same directory.  However, it's finding the file, it just can't open it.  It's trying to open it as a program.

Re: How do I make a VC++ wrapper for a EVB app?

PostPosted: Mar 30, 2001 @ 7:37am
by Dan East
ShellExecuteEx uses the file associations in the registry to determine what program to use to open non .exe files. Are you sure you can tap on a *.vb file in the File Explorer to launch it? If you can send me a test .vb file of some kind I can try it on my iPaq.<br><br>Dan East