This site is no longer active and is available for archival purposes only. Registration and login is disabled.

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


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

Postby Jay » Mar 30, 2001 @ 5:35am

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?
Jay
pm Member
 
Posts: 114
Joined: Mar 28, 2001 @ 7:17pm


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

Postby Dan East » Mar 30, 2001 @ 6:49am

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
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


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

Postby Jay » Mar 30, 2001 @ 6:50am

It makes a .vb file.  However, you can just click it and it will start like an applcation.
Jay
pm Member
 
Posts: 114
Joined: Mar 28, 2001 @ 7:17pm


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

Postby Dan East » Mar 30, 2001 @ 6:55am

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
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


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

Postby Jay » Mar 30, 2001 @ 6:56am

Thanks
Jay
pm Member
 
Posts: 114
Joined: Mar 28, 2001 @ 7:17pm


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

Postby Jay » Mar 30, 2001 @ 7:10am

It says cannot open program file.  I think it's trying to open it as an exe.
Jay
pm Member
 
Posts: 114
Joined: Mar 28, 2001 @ 7:17pm


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

Postby Dan East » Mar 30, 2001 @ 7:27am

You're passing the full path to the vb file, right?<br><br>Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


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

Postby Jay » Mar 30, 2001 @ 7:31am

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.
Jay
pm Member
 
Posts: 114
Joined: Mar 28, 2001 @ 7:17pm


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

Postby Dan East » Mar 30, 2001 @ 7:37am

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
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron