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?
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?
Dan East
It makes a .vb file. However, you can just click it and it will start like an applcation.
Then use the following in a EVC app:
SHELLEXECUTEINFO sei;
memset(&sei, 0, sizeof(sei));
sei.cbSize=sizeof(sei);
sei.fMask=SEE_MASK_NOCLOSEPROCESS;
sei.lpVerb=_T("open" ) ;
sei.lpFile=_T("MyVisualBasicAppToLaunch.vb" ) ;
sei.nShow=SW_SHOW;
ShellExecuteEx(&sei);
Dan East
Last modification: Dan East - 03/30/01 at 03:55:29
It says cannot open program file. I think it's trying to open it as an exe.
You're passing the full path to the vb file, right?
Dan East
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.
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.
Dan East