ComMÉDIA
for Windows CE HomeSource CodeApplication Icon ActiveX Controls



References


Windows CE
Web Community



[Prev] [Random] [Next]
[List Sites] [Next 5]

VBCE Icons Test.zip    (259k)

This example includes, on its "VBCE_Icons Module", the minimum number of functions necessary to build a VBCE application with 2 Forms having individual Icons on the Taskbar.

As you can check on the sources, the only two actions to perform are the following:

  1. Set the global name of the icon resource DLL when the application starts.
  2. Include a call to function "SetFormIcon" on each "Sub Form_Load()".

Three separate projects for H/PC, H/PC-Pro, and P/PC have been built using the same set of forms and module so that we can use the VBCE "Application Install Wizard " for each of those types of devices.

The tool "VBCE Icons Tool" available here, has been used, not only to build this icon DLL, but also to assign an icon to the program itself.

Please try the final result by running "Setup.exe" on the sub-directory for your device. After Installation, on the "Start => Programs ", you will see a small "smile" icon before the name "VBCE Icons" as any normal program. Call it and you also see, on the Taskbar, icons associated to the 2 forms included.

 

These are the actions required to build a "Setup sub-directory" and also to associate an icon to the application:

  1. Write the VBCE application (already done at the example)

  2. "Make" the "executable" (.vb script file: also done)

  3. Call VBCE "Application Install Wizard" - available as a separate program on the "CE Toolkit for VB 6.0" - and fill all the required fields.
     
    3.1- On Step 5, select the processors (targets) you wish to support (but be aware that the MIPS 3000 and MIPS 4000, both use the same id on the installation process being, therefore, indistinguishable. However, Microsoft says that MIPS 3000 binaries will run on both).

    3.2- On Step 7 , uncheck the "Include Device Runtime" in Cab file" (for VBCE) if you already have those files in your device.

    3.3- Finally, press "Create Install" on Step 9.

    3.4- Wait until the process finishes. On the directory specified on Step 4, you will see a number of sub-directories. If you run "Setup.exe" on the "CD1" sub-directory, the program will be installed with no icons.

  4. Call the "VBCE Icons Tool" tool. 

    4.1- Press "Add" and select the two .ico files provided with the example. Ensure that "Smile.ico" is the first on the list.

    4.2- Select "Options=>Create & Change VB6 Setup Files" on the menu. The build button will change its caption to "Build DLL (for Setup) ". Press this button.

    4.3- Then "VBCE Icons Tool" will ask you for the name of the output DLL:

    • should be "vbceIcons.dll" at the example (see source)
    • the directory should be the same specified on Step 4 of the "Application Install Wizard"

You may see some messages depending on whether this is the first time you run through this procedure and/or you are using an unregistered version of "VBCE Icons Tool".

After finishing, everything required to install the program will still be left at the "CD1" sub-directory. On the example, the setup directories have been copied from "CD1" outputs of the same procedure.

Enjoy,
ComMedia



[ Home ] [ Source Code ] [ Articles ] [ Download ] [ Support ]
[ VBCE Icons Tool ] [ ActiveX Controls ]

Copyright ComMedia 2000-2003. All rights reserved.
Microsoft, Windows CE, and Visual Basic are registered trademarks of Microsoft Corporation.

Windows CE ActiveX Controls specifically designed in ATL for eVB.

Date Time
Month Calendar
Progress Bar
Popup Menu
Tray Icon
Locale
Settings
RAS Dial
RAS Entries
RAS PPTP

>> Try them! <<


Icons Tool

The Evaluation version of the
VBCE Icons Tool
performs exactly as the registered version but draws all Icons over a grid with scrambled colors .

Check the details.

VBCE UDT's

"...to extend the intrinsic VB functionality with extra functions provided by the MS Windows Operating System..."

more...