DEVBUZZ Homepage IDSSAPI Part 1 of 3 - A useful set of API wrappers for eVB developers
 
Web www.devbuzz.com
  HOME PAGE
  All Articles
  Advertise
  Consulting

 Development
  Discuss - Forums
  Still in the box?
  .Compact Framework
  Code Snippets
  SQL Server CE
  Database
  MS Resources
 Stores
  Developer Controls
  Pocket PC Hardware
  Pocket PC Software
  Pocket PC Books
  .NET CF Books
  Book Reviews
  SPB SW Discounts
  RESCO SW Discounts
 DEVBUZZ Info
  About Us
  Help
  Join our email list
  Links & Ratings
  Press & Comments
  Pocket PC version
  Software Reviews
  Hardware Reviews
 Authors
  Authors
  Article Guide
  Competitions
 Resources
  Developers
  Register
  Login

  SPB Discounts!
 Columnists
  Rick Winscot
 Past Blast
  Personal Media Ctr
  Gizmobility
  eVB Legacy
  Old news
  Hosted Software
  Wireless
  Newsletters
  Carl Davis
  Upton Au

 Pocket PC Registry
  Join the registry
  View current list
 Current Poll
Are you converting to .NET Compact Framework?
Yes, it has changed my life!
No, I'm sticking with eVB
.NET CF what's that`?

Current results
3431 votes so far
 Recent Forum Threads [goto forums]

Get Computername
read... (67 hits)


Great aid to development productivity
read... (82 hits)


ThreadingTimer sample code
read... (143 hits)


Multithreading with .NET CF
read... (194 hits)


Moving from eMbedded Visual Basic to Visual Basic .NET
read... (166 hits)


.NET Compact Framework 2.0 Service Pack 2
read... (226 hits)


Transfer Data from SQL Server 2000 to SQL Server Compact Edition
read... (298 hits)


This protocol version is not supported
read... (236 hits)


Converting Lowercase to uppercase wont work
read... (203 hits)


Direct access to MS SQL Server 2000
read... (374 hits)


Creating SDF file in Desktop
read... (513 hits)


Winsock in CF.NET
read... (316 hits)


Using Pocket Outlook to submit HTML page form with MAILTO action
read... (420 hits)


Missing file "System.Data.PocketPC.asmmeta.dll"
read... (268 hits)


HP iPAQ hw6915 Serial Port Issue
read... (309 hits)


Info on the recent forum changes
read... (341 hits)


SqlServer tools from Redgate
read... (383 hits)


Arrow keys and Hardware navigation button
read... (393 hits)


O2 XDA lls pin sync cable to comport
read... (322 hits)


Creating dynamic folders on Pocket PC OS
read... (299 hits)

Custom Windows Mobile software development.
LBS Challenge 2007
LBS Challenge Eight previous NAVTEQ Global LBS Challenge® participants have received venture capital funding and nine past LBS Challenge winners have launched commercial applications on major wireless carriers. Register your non-commercial LBS application in the 2007 NAVTEQ Global LBS Challenge in one of three regions: Americas, Europe-Middle East-Africa (EMEA) or Asia-Pacific(APAC). You could win a share of $2 million in prizes. This could be your year.
Dream. Develop. Win.

Development | Starting Out

IDSSAPI Part 1 of 3 - A useful set of API wrappers for eVB developers
Written by Robert Levy  [author's bio]  [read 38492 times]
Edited by Derek

Discuss this article   eVB Ver 3.0   

Page 1  Page 2  Page 3 

Any seasoned Visual Basic 6 programmer who has picked up a Pocket PC and spent any more than 15 minutes playing with embedded Visual Basic will be quite vocal in pointing out that eVB just doesn't want to do what you want to do. Innovative Decision Support Systems (IDSS) has come to our rescue with IDSSAAPPII, a library of functions guaranteed to solve the most common problems VB6 programmers find when transitioning to eVB.

Among the long list of capabilities that IDSSAPI provides are playing sound files, running other programs, getting and setting the system time, pausing code execution, run other programs, perform a soft reset, enhancing the functionality of list boxes, examining and manipulating memory allocation, accessing battery power statistics, getting and setting registry values, removing screen elements (such as the Start button, SIP menu, and task bar), and responding to hardware keys. For a complete and up to date list of features, you will want to take a look at the IDSSAPI web site [http://www.innovativedss.com/idssapi.asp]. Later in this article we will see how to explore the innards of this library by using the Object Browser Tool.

IDSSAPI is essentially a "wrapper" for the Windows CE Application Programming Interface (API), giving eVB developers access to advanced functionality that could otherwise only be achieved by learning eVC++ or using sophisticated routines and "hacks" to access the WinCE API directly from eVB. The purpose of a "wrapper" (be it IDSSAPI or any other wrapper for any other language) is to provide simplified ways of performing certain tasks that would otherwise be relatively difficult. The inherent problem thus associated with wrappers is that by simplifying a task, they must sacrifice the flexibility that could be achieved by taking the more complex direct approach. IDSSAPI is, by definition, a victim of this law of nature.

One example of this is IDSSAPI's PlaySound method which takes a single parameter: the filename of an sound file to play. This is very straightforward and common sense would dictate that it is sufficient. Meanwhile, the WinCE API's equivalent function is significantly more difficult to use but this is due in part to the added options it provides such as the ability to choose whether or not to play the sound synchronously, asynchronously, looped, etc. [Note that you can see this for yourself by looking at lines #238-243 of the "mmsystem.h" file that comes with Microsoft's Embedded Visual Tools.]

If your needs require advanced functionality and tighter control over the program, directly accessing the WinCE API remains to be the only way to go. If you're looking for a low cost method to perform tasks that would otherwise be involve complex interaction with the WinCE API, then IDSSAPI is an excellent solution which supports the key selling points of VB as a language (simplified coding syntax/style and fast development cycles).

Once you've decided that IDSSAPI is something you want to use and have installed it on your desktop, you will need to create a reference to it in your eVB.

To do this, select "References." from the eVB's "Project" menu. Note that if IDSSAPI does not appear in the list of references to choose from, you will need to click the "Browse." button and manually find the idssapi.tlb file, ignoring the message box saying that IDSSAPI was not designed for your platform. Now, check the box labeled "IDSS Windows CE API Wrapper Function Library" and you're good to go.

Next Page 

Back to Starting Out | [Article Index]

 

Back to the top of the page.
Chris De Herrera's Windows CE Website Windows CE News & Information Source
Copyright ©2000-2007 by DEVBUZZ.COM, Inc., NJ. USA.MSDEVELOP