|
| Hi all,
Can I develop an application using Embedded Visual Basic 3.0 to run under WinCE 5.0?
Regards
Luis |
|
|
|
Administrator H/PC Oracle Posts: | 17,991 |
Location: | United Kingdom | Status: | |
| Yes you can, you have to provide CE5 with the VB runtime libraries (and register them) for its CPU as it will not have them. |
|
|
|
Global Moderator H/PC Guru Posts: | 7,188 |
Location: | USA | Status: | |
| How do you register them, what are the proper entries in the registry? |
|
|
|
Administrator H/PC Oracle Posts: | 17,991 |
Location: | United Kingdom | Status: | |
| Rich,
Short answer:
Just download the "Visual Basic CE Runtime (Full | Host)" from H/PC:Update (HPC:Factor updates section) for a CE4 device, I created an x86 installer in there when I built it.
Long answer:
HKCR,".vb","",0x00000000,"VBCE.ProjectRun"
HKCR,"VBCE.ProjectRun\DefaultIcon","",0x00000000,"\Windows\PVBHOST2.DLL,-2"
HKCR,"VBCE.ProjectRun\Shell\Open\command","",0x00000000,"\Windows\pvbload.exe %1" |
|
|
|
Global Moderator H/PC Guru Posts: | 7,188 |
Location: | USA | Status: | |
| Okay, did the install (manually) since the cab file wouldn't install on the 50x15. Now when I go to look at my VB program, the icon displays properly, but when I go to run it I get an error: Cannot find extention file Forms Data. What did I do wrong? |
|
|
|
Administrator H/PC Oracle Posts: | 17,991 |
Location: | United Kingdom | Status: | |
| Did you download the global redist from the developer site like I suggested in the other thread? Try merging the developer libray version into \windows from HPC2000 full x86. |
|
|
|
Global Moderator H/PC Guru Posts: | 7,188 |
Location: | USA | Status: | |
| I did, and I tried merging files as well, nothing seems to work. I double-checked all my registry entries, they are all correct. This CE5 thing is perplexing to me. Also, I notice there are some VBScript files in the Windows folder, but don't understand the differences between VBScript and EVB...
Rich |
|
|
|
Administrator H/PC Oracle Posts: | 17,991 |
Location: | United Kingdom | Status: | |
| VBS is a run-time scripting langauge that extends client side web processing functionality and also acts as Windows' shell scripting language. VB/eVB is a G4, run-time based procedural programming langauge that is event orientated.
If you install the same H/PC:Update files on a vanilla MP900 does it run? |
|
|
|
Global Moderator H/PC Oracle Posts: | 12,670 |
Location: | Southern California | Status: | |
| Isn't that a pvbform2.dll error?
Also, when C:Amie means register the runtime files, that doesn't just mean creating the registry keys. You have to server register them using a utility like regsvrce.exe or regsvr2.exe, no? Edited by CE Geek 2008-11-21 4:57 AM
|
|
|
|
Administrator H/PC Oracle Posts: | 17,991 |
Location: | United Kingdom | Status: | |
| If Rich has copied the dll's over then it should have installed forms2.
My H/PC:Update installer was setup to self-register the dll's, so unless the x86 wceload can't do it, they should be registered. |
|
|
|
Global Moderator H/PC Oracle Posts: | 12,670 |
Location: | Southern California | Status: | |
| Except that Rich copied them over manually cuz the CAB file wouldn't execute. |
|
|
|
Global Moderator H/PC Guru Posts: | 7,188 |
Location: | USA | Status: | |
| None of the cab files would install. So I manually deleted each of the files in the cab, leaving it empty and tried to install the cab by itself hoping the registry entries would install. They didn't. So I made the registry entries manually. That is when I get the error. But some progress was made as the .vb file now displays the proper icon image.
This 50x15 is atypical anyway. They purposefully designed it to prevent installation of other software. There is no aygshell.dll, but there is an amdshell.dll which is smaller. Wish I could find an CE5 x86 aygshell...but that is near impossible too.
There are a bunch of files that start with GAC_................... I wonder if those are the CF net files or something....
Rich |
|
|
|
Global Moderator H/PC Oracle Posts: | 12,670 |
Location: | Southern California | Status: | |
| Yeah, those are .NET CF files, and yeah, the above DefaultIcon registry key generates the PVB icon.
If you can extract the CAB file using an archive extractor, you can rename the resulting files to their correct names and copy them over manually - but, again, you'll then have to server register them as I mentioned above. I've done this lots of times myself. ('Cept now that I've upgraded my hard drive and reinstalled XP on my notebook PC, I no longer seem to have that available through XP's native extraction utility. ) |
|
|
|
Global Moderator H/PC Oracle Posts: | 12,670 |
Location: | Southern California | Status: | |
| BTW, Rich, are you sure the 50x15 has wceload.exe in ROM? If it's missing, that would certainly explain why the CAB files won't install. |
|
|
|
Global Moderator H/PC Guru Posts: | 7,188 |
Location: | USA | Status: | |
| It does have the wceload.exe present. And if I try to run it by itselt, I get the appropriate "tap on the cab file to install" message. |
|
|