Step-By-Step: John Cody's eVB Mod
CAUTION: My
Mod requires modifications to the System
Registry. Thus, I would recommend that you backup your registry before
proceeding if you want to play it safe :)
Automated eVB
Mod Tool #1: If you want to save some
time and are installing eVB and the Pocket PC 2000 SDK in the default
directories for the first time, a very helpful reader, Sven Rutten,
has written a utility to perform the below steps automatically. It
basically imports a pre-written REG file that has the below registry
entries already in it, and also performs the non-registry steps 13-15.
Even though this utility was successfully used on a few different PC's,
I nor Sven give any guarantee or liability for it's use. Support for
this tool is provided by the author and can be
Found Here.
8/11/05 UPDATE -
Automated eVB Mod Tool #2: Another user (Ozeop)
created a new tool to automate the mod for you! This version
will implement my mod regardless if you installed the
eMbedded Visual Basic 3.0 and/or PocketPC 2000 SDK in a location other
then the default installation folders. You can
Download it Here. Support for
this Tool is located in
This Thread.
NOTE: My Mod basically 'tricks' eVB into thinking that that
Smartphone 2002 is a valid platform for eVB development. Even though
this mod is meant for the Smartphone 2002 platform, most apps written
for the Smartphone 2002 will run as-is on Smartphone 2003 devices. It's
just that this mod currently only supports connecting a Smartphone
2002 to eVB for development purposes (you can still use the emulator
for development if you do not have a 2002 device). Support for a
connected Smartphone 2003 device is coming soon.
John Cody's eVB Mod:

- After installing eVB with the Pocket PC 2000 SDK, run regedit and locate
the key:
HLM\Software\Microsoft\Windows CE Tools\Platform
Manager\{F384D888-F9AA-11D1-BB9E-00A0C9C9CCEE}
- Select the sub key {6D5C6210-E14B-11D2-B72A-0000F8026CEE} and
export the whole key (including all sub-keys) to a file called
"SP2002.Reg"
NOTE: My Mod can NOT coexist with the real Smartphone 2002 SDK.
The Smartphone 2002 SDK is only needed if you are doing eVC (embedded
visual C) programming for the Smartphone 2002. So, if you have the real SmartPhone 2002 SDK
installed, you should either uninstall it now (before proceeding) if
you don't need it, or simply export the EXISTING key
{CBD9AE1B-8223-407D-8EE1-DA9E8A33F722} to a file called
"SmartPhone2002SDK.reg" so you can re-import it at a later time
and undo
this eVB Mod.
- Open the file "SP2002.Reg" in Notepad and do a "Replace" of the
following string:
Replace all occurrences of the string:
{6D5C6210-E14B-11D2-B72A-0000F8026CEE}
with
{CBD9AE1B-8223-407D-8EE1-DA9E8A33F722}
and save the file.
- Double-click on the file "SP2002.Reg" and allow it to be imported
into the Registry.
- Using Regedit, navigate to the location:
HLM\Software\Microsoft\Windows CE Tools\Platform
Manager\{F384D888-F9AA-11D1-BB9E-00A0C9C9CCEE}\{CBD9AE1B-8223-407D-8EE1-DA9E8A33F722}
You will notice that the "(default value)" of this key is "Pocket PC".
Change this to "Smartphone 2002".
- Navigate to the location:
HLM\Software\Microsoft\Windows CE Tools\Platform
Manager\{F384D888-F9AA-11D1-BB9E-00A0C9C9CCEE}\{CBD9AE1B-8223-407D-8EE1-DA9E8A33F722}\{F384D88B-F9AA-11D1-BB9E-00A0C9C9CCEE}\{6CEF7361-4355-11D2-975C-00A0240918F0}
And change the Default value from "Pocket PC (Default Device)" to
"Smartphone 2002 (Default Device)".
- Navigate to the location:
HCR\TypeLib\{6D5C6210-E14B-11D2-B72A-0000F8026CEE}
Export this key (including all sub-keys) to a file called
"SP2002TypeLib.reg".
NOTE: A few readers have reported that they
can not find this key - if you are one of them, the below notes may
help:
 |
A
reader, Mike, said that the key became visible by first
running eVB (and selecting "Create a Pocket PC 2000
project") after installing it, then exiting eVB and
performing this mod. |
 |
A reader, Marco, reported that the key became visible after
installing the Pocket PC 2002 SDK. So, you may want to first try also
installing the
Pocket PC 2002 SDK (in addition to the PPC 2000 SDK), then try to
find this key again. Another user, abs, said by doing a "repair" of
his PPC 2002 SDK, the key then became visible. |
 |
Next, before proceeding any further, start eVB and try to create a
new Pocket PC "2000" project (not 2002). If you get an error similiar
to "Object not loaded", then something of either the eVB 3.0 or the
Pocket PC 2000 SDK was not installed correctly. I would try
re-installing both products, then try again to find the above TypeLib
reference to "vb6pps.olb". |
 |
Next, please navigate to the registry location mentioned in step
#10 below. You should see an entry named "FormsOLB". Please
contact me and tell me what the value of
this key is (normally it will be "VB6PPC.OLB") |
 |
Next, please do a keyword search in the registry for that value
(i.e. search for "VB6PPC.OLB"). You should get a 'hit' in the HCR\TypeLib
section of the registry, and that hit should be the above CLSID. |
 |
If you still can't find the TypeLib reference to that file,
please search your hard disk for that file and
contact me with the location of that file. |
 |
You can also just try skipping steps #7,8,9 of this mod,
and then see if you can create a new "Smartphone 2002"
project without getting a "Object not loaded" error
message.
|
|
- Edit the file "SP2002TypeLib.reg" to replace all
occurrences of:
{6D5C6210-E14B-11D2-B72A-0000F8026CEE}
with
{CBD9AE1B-8223-407D-8EE1-DA9E8A33F722}
and save the file.
- Double-click on the file "SP2002TypeLib.reg" and allow it to be
imported into the Registry.
- Navigate to the location:
HLM\Software\Microsoft\Windows CE Tools\Platform
Manager\{F384D888-F9AA-11D1-BB9E-00A0C9C9CCEE}\{CBD9AE1B-8223-407D-8EE1-DA9E8A33F722}\{F384D894-F9AA-11D1-BB9E-00A0C9C9CCEE}\{7AF7AAC2-2A8A-11D3-B657-0000F807F349}
Modify the value "DefaultFormHeight" to "204"
Modify the value "DefaultFormWidth" to "176"
- You will notice that the value for the "Templates" key will be
similar to:
C:\Windows CE Tools\wce300\MS Pocket PC\Templates
Change this value, by appending "\Smartphone 2002" to it:
C:\Windows CE Tools\wce300\MS Pocket PC\Templates\Smartphone
2002
- Also modify the value for the key "FormsModel" to also add
"\Smartphone 2002" to it, so it will look like:
C:\Windows CE Tools\wce300\MS Pocket PC\Templates\Smartphone 2002\frmppc.tlb
- Now, since we just modified the registry to point to a new template
sub-folder for new Smartphone 2002 projects, we must now create that
directory on your hard disk and place the template files into it.
Using File Explorer, navigate to the above template directory for
Pocket PC 2000 projects.
Create a new sub-directory to it, and name it "\Smartphone 2002".
Extract the files from this ZIP file
Smartphone 2002 Template Project and place the extracted
files into the new directory you just created.
- Also, copy the file "frmppc.tlb" file from the parent
(\MS Pocket PC\Templates)
folder to this new folder.
- Locate the file "VBCE.INI" in your windows directory (typically
C:\Windows).
Add the following two lines to it:
[{CBD9AE1B-8223-407D-8EE1-DA9E8A33F722}]
Arm 1100 (4K) v3.00=5,4,3,0,4096,2577
- That's it! --
Now, when you select "New Project", you will be presented
with a screen like this...
[ About Mod | STEP-BY-STEP | Screen Shots | Downloads | eVB App List ]
|