Microsoft KB Archive/235707

= Frequently Asked Questions (FAQ) About VBCE 6.0 =

Article ID: 235707

Article Last Modified on 8/19/2005

-

APPLIES TO


 * Microsoft Windows CE Toolkit for Visual Basic 6.0

-



This article was previously published under Q235707



SUMMARY
This article covers some of the most frequently asked questions (FAQs) about the Windows CE Toolkit for Visual Basic 6.0 (VBCE 6.0).



MORE INFORMATION
The following questions are answered in this FAQ:


 * 1) Where can I find technical information about VBCE?
 * 2) What other products do I need in order to use VBCE 6.0?
 * 3) Does VBCE provide database programmability?
 * 4) Where can I find technical information about ADOCE?
 * 5) Does ADOCE work in the emulation environment?
 * 6) Can I develop VBCE applications for Palm-size PCs?
 * 7) For which Windows CE platforms can I develop VBCE applications?
 * 8) Are ActiveX controls supported in VBCE? Where can I get them?
 * 9) Are the same Visual Basic controls supported in VBCE?
 * 10) Can I use Windows 95, Windows 98, or Windows Me to develop VBCE applications?
 * 11) Can existing Visual Basic applications be ported to VBCE?
 * 12) How do I debug VBCE applications?
 * 13) How do I distribute my VBCE application?
 * 14) Can I access Pocket Outlook contacts, tasks, etc. from VBCE?
 * 15) Can I call APIs in VBCE applications?
 * 16) Do I need a Windows CE device to run VBCE?
 * 17) I'm confused. Which devices and platforms will VBCE 6.0 and ADOCE run on?

Questions and Answers
 Q: Where can I find technical information about VBCE? A: There are a number of places to look for documentation on VBCE. In addition to the Windows CE Toolkit online help available from the Visual Basic Help menu, you can also check the following resources:

 The Microsoft Knowledge Base contains many articles discussing topics related to VBCE. To search for them, navigate to the following Microsoft Web site, enter the search phrase VBCE and include Knowledge Base in the selected scope:

MSDN Online

 The VBCE Release Notes contain lots of information on known issues. Many commonly-asked questions about specific behavior can be found in this document. In addition to the file installed with VBCE, the release notes can be found in the following Microsoft Knowledge Base article:

217375 INFO: Windows CE Toolkit for Visual Basic 6.0 Release Notes

  The MSDN Online Library now has a number of areas with technical articles, presentations, downloads and online special interest groups related to VBCE:

MSDN Library Online

See: \Windows CE Documentation \Visual Development Environment \Windows CE Toolkit for Visual Basic 6.0

Microsoft Windows CE Toolkits Home Page

 Scott Lewis' VBCE.COM is also a very good source for information. Scott also has a mailing list set up for peer-to-peer support available from this site. NOTE: VBCE.COM is not affiliated with Microsoft other than it refers to a Microsoft product:

VBCE.COM

 Larry Roof's "Visual Basic Windows CE Programming" by Wrox Press, although written for the first version of VBCE, is still a great resource. Additionally, I believe that Larry Roof and Scott Lewis will be teaming up for some technical content as outlined on VBCE.COM.

</li></ul>

</li> Q: What other products do I need in order to use VBCE 6.0? A: In order to use VBCE 6.0, you'll need the following:

<ul> Microsoft Windows 95 or later or Windows NT 4.0 with Service Pack 3 or later.</li> Microsoft Visual Basic 6.0 Professional or Enterprise Edition.</li></ul>

Note that Windows NT or Windows 2000 is required for emulation.

</li> Q: Does VBCE provide database programmability? A: VBCE is able to provide database programmability via the ActiveX Data Objects control for the Microsoft Windows CE operating system (ADOCE), which provides a subset of ADO for Windows CE. The setup program for ADOCE is included on the VBCE 6.0 CD in the ADOCE directory.

Here are some important notes regarding the two current versions of ADOCE:

<ul> ADOCE 2.0 only works on an H/PC 2.0 device that runs Windows CE 2.0.</li> ADOCE 2.0 does not support automatic Database Table Synchronization between the database tables on the desktop and the device.</li> ADOCE 2.1 only works on H/PC Pro 3.0 devices (running Windows CE 2.11), Palm-size PC 1.2 devices (running Windows CE 2.11 and with the Palm-size PC 1.2 SDK installed), and the H/PC devices with ROM upgrades (that is, running Windows CE 2.11).</li> ADOCE 2.1 supports automatic Database Table Synchronization.</li></ul>

For additional information about ADOCE, click the article numbers below to view the articles in the Microsoft Knowledge Base:

238947 FILE: Msadoce2.exe Installs ADO for Windows CE SDK

196034 HOWTO: Use ADOFILTR.DLL to Transfer Database Tables

</li> Q: Where can I find technical information about ADOCE? A: There are a number of places to look for documentation on ADOCE. In addition to the Windows CE Toolkit online help available from the Visual Basic Help menu, you can also check the following resources:

<ul> The Microsoft Knowledge Base contains many articles discussing topics related to ADOCE. To search for them, navigate to the following Microsoft Web site, enter the search phrase ADOCE and include Knowledge Base in the selected scope:

MSDN Online

</li>  The MSDN Online Library now has a number of areas with technical articles, presentations, downloads, and online special interest groups related to ADOCE:

MSDN Library Online

<pre class="fixed_text">See: \Windows CE Documentation \Visual Development Environment \ADO for Windows CE

Microsoft Windows CE Toolkits Home Page

</li> Scott Lewis' VBCE.COM is also a very good source for information. Scott has also got a mailing list set up for peer-to-peer support available from this site. NOTE: VBCE.COM is not affiliated with Microsoft other than it refers to a Microsoft product:

VBCE.COM

</li></ul> </li>  Q: Does ADOCE work in the emulation environment? ADOCE does work in the emulation environment. You'll need to ensure that you install the emulation components as a part of the ADOCE SDK installation from the VBCE 6.0 CD-ROM. You'll also need to ensure that you have copied your database tables to the emulation environment by using the EmpFile utility. For an illustration of how to do this, please see the EmulDB sample that ships with the ADOCE SDK. This sample is located, by default, in the following location: <pre class="fixed_text">  C:\Program Files\Microsoft Visual Studio\Common\ADOCE\Samples\VB For additional information about the EmpFile utility, click the article number below to view the article in the Microsoft Knowledge Base:

212884 INFO: VBCE: How to Use the EmpFile Utility

</li> Q: Can I develop VBCE applications for Palm-size PCs? A: Palm-size PCs can be targeted with VBCE 6.0. The target Palm-size PCs must be running at least the Windows CE operating system version 2.11. Please note that the implementation of the Windows CE operating system on the Palm-size PC devices running the Windows CE operating system version 2.0 does not include sufficient COM support for VBCE applications.

In order to target Palm-size PCs, the associated Windows CE Palm-size PC Platform SDK is required:

Palm-size PC 1.2 SDK Download (English)

For additional information about the Palm-size PC's support for VBCE applications, click the article number below to view the article in the Microsoft Knowledge Base:

191478 INFO: Palm-size PC Does Not Support VBCE Applications

</li> Q: For which Windows CE platforms can I develop VBCE applications? A: VBCE 6.0 can currently target the following Windows CE platforms using the Platform SDKs provided by Microsoft:

<ul> Handheld PC version 2.0 (H/PC)</li> <li>Handheld PC version 3.0 (H/PC Pro)</li> <li>Palm-size PC version 1.2 (PsPC)</li></ul>

For additional information, please see the following Microsoft Web site:

Hardware Devices, Software Development Kits (SDKs)

Also, please note that VBCE 5.0 applications can only be created for H/PC devices.

</li> <li>Q: Are ActiveX controls supported in VBCE? Where can I get them? A: Yes. ActiveX is supported in Windows CE and you can use ActiveX controls in your VBCE applications. Currently, however, you cannot develop ActiveX controls using VBCE. Instead, you must use the Windows CE Toolkit for Visual C++ (VCCE) for ActiveX control development.

Additionally, there are a growing number of third-party companies that are either developing or looking into developing ActiveX controls for use in VBCE. See one of Microsoft's Windows CE Web sites for the most current information:

Microsoft Windows CE Home Page

Microsoft Windows CE Toolkits

</li> <li>Q: Are the same Visual Basic controls supported in VBCE? A: Most Visual Basic intrinsic controls (such as CheckBoxes, TextBoxes, CommandButtons) are supported in VBCE. There are some differences in control appearance and behavior corresponding to differences in the Windows CE user interface model, however, and there are also differences in the Visual Basic built-in functions corresponding to differences in operating system features. For the most part, you will find that creating VBCE applications is very similar to creating Visual Basic applications on Windows 95, Windows 98, or Windows NT.

</li> <li>Q: Can I use Windows 95, Windows 98, or Windows Me to develop VBCE applications? Yes. The Windows CE Toolkit for Visual Basic 6.0 can be installed on Windows 95, Windows 98, or Windows Me to develop Windows CE applications. The emulation environment, however, is available only under Windows NT or Windows 2000. Additionally, it is important to note that Windows CE Toolkit for Visual Basic 5.0 cannot be installed on a Windows 95, Windows 98, or Windows Me machine.

</li> <li>Q: Can existing Visual Basic applications be ported to VBCE? A: You cannot directly port an existing Visual Basic application into VBCE due to some limitations and unsupported features in VBCE. The amount of work required to "port" an existing Visual Basic desktop application to VBCE will depend on many factors, including the complexity of the application and whether it uses features not supported in VBCE. It may be significantly easier to create a VBCE application from scratch than to port an existing Visual Basic application.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

186266 INFO: What Is Handled Differently in Windows CE and VBCE

184650 INFO: What Does Visual Basic Have That VBCE Doesn't Have?

189478 INFO: What Does VBCE Have That Visual Basic 5 Doesn't Have?

192459 INFO: Unsupported Controls, Properties, Methods and Events

</li> <li>Q: How do I debug VBCE applications? A: There are two methods of debugging available for VBCE users. The first is to use the emulation environment to debug your application right on your Windows NT development workstation. The second is to use the remote debugging tools provided with the Toolkit. These tools let you execute your VBCE application remotely on your Windows CE device, while at the same time monitoring and controlling its execution from your Windows NT or Windows 2000 development workstation.

For additional information about Debugging VBCE applications and differences between emulation and the remote device, click the article numbers below to view the articles in the Microsoft Knowledge Base:

192549 INFO: VBCE: Overview of Debugging VBCE Applications

192998 INFO: VBCE: Differences Between Emulation and the Remote Device

</li> <li>Q: How do I distribute my VBCE application? A: Distribution of VBCE applications can be accomplished using the Application Install Wizard supplied with VBCE.

For additional information about distributing VBCE applications, click the article number below to view the article in the Microsoft Knowledge Base:

194837 HOWTO: Distribute a Visual Basic Windows CE Application

</li> <li>Q: Can I access Pocket Outlook contacts, tasks, and so forth from VBCE? A: Using the new Pocket Outlook Object Model (POOM) you can now read, create, and modify items used by the Pocket Outlook's Calendar, Tasks, and Contacts, as well as accessing and creating cities used by the World Clock.

In order to access Pocket Outlook objects, the Pocket Outlook Object Model (POOM) SDK is required:

Pocket Outlook Object Model (POOM) SDK

For additional information about using the POOM from VBCE, click the article number below to view the article in the Microsoft Knowledge Base:

208568 HOWTO: Access Pocket Outlook Objects from VBCE

</li> <li>Q: Can I call APIs in VBCE applications? A: The current version of VBCE allows you to call many Windows CE API functions directly. You can use the existing Visual Basic API Text Viewer to view the API information from the winceapi.txt file. In certain circumstances, because VBCE does not support structure data type, you may still need to use the Windows CE Toolkit for Visual C++ (VCCE) to create an ActiveX control to wrap the appropriate API calls and then host the control in VBCE.

Please note that API calls could not be made from VBCE 5.0 applications.

</li> <li>Q: Do I need a Windows CE device to run VBCE? A: You do not need a device to begin developing VBCE applications. You can create and debug Windows CE-based applications from your desktop. Built-in emulation technology provides the look and function of a device, right on your PC.

It should be noted that in order to install ADOCE, Windows CE Services is required. Windows CE Services only ships with the devices. So although ADOCE will work in the emulation environment, currently it cannot be installed without the presence of Windows CE Services.

</li> <li>I'm confused. Which devices and platforms will VBCE 6.0 and ADOCE run on? A: The following table lists what is supported and what is not:

</li></ol>

<div class="references_section">