Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Using Windows API (Desktop) with b4ppc?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-27-2007, 05:26 PM
Junior Member
 
Join Date: Jul 2007
Posts: 37
Question Using Windows API (Desktop) with b4ppc?

Hi everyone,

Is it possible to call a Win API 32 funcion from the Desktop?

I'd like to be able to read the Serial Number of a Drive. The Api function GetVolumeInformation, in kernel32.exe, do it, as I have tested in VB6. But I find myself much more confortable working with b4ppc.

I also would like to print some kind of report from the Desktop. The DesktopOnly library just support plain text, but if the next version arrives soon (please..), I could do with b4ppc instead of recode the application to VB. I now b4ppc is intended to works with PPC, and it's just fine for me, but if it increases the support for Desktop, it would be the top!

I wish there was something like the Hardware library, which works fine for the PPC, that also works fine for the Desktop. Maybe the WIN 32 API support do the job (if it's possible).

Thanks.
Reply With Quote
  #2 (permalink)  
Old 08-27-2007, 05:43 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I thought I was alone in this line of thinking....
But imagine a software developing platform designed for PPC's but powerfull enough to deploy WIn32 apps....
Maybe one day, maybe one day...

PS.- In my way of seeing these things, there are not too much lacking in b4ppc for a good desktop enviroment, exception made to the printing ability....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #3 (permalink)  
Old 08-27-2007, 06:16 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by jesb4ppc View Post
Is it possible to call a Win API 32 funcion from the Desktop?
Unfortunately no, at least not without writing a new library for B4PPC to do it for you (which is actually quite simple to do).

If you are only interested in the desktop then you could use the free Express edition of VB.NET or C# to write a simple dll that would give you access to the Win32 APIs you want but they cannot make device applications or device libraries so you would be restricted to the desktop.
Reply With Quote
  #4 (permalink)  
Old 08-27-2007, 06:31 PM
Junior Member
 
Join Date: Jul 2007
Posts: 37
Unhappy

Hi CableGuy,

Of course, I agree. B4ppc is a fantastic developement platform, but, you know, when you like something you expect more and more of it. I think this kind of improvements will make it even better.

About my needs, I'm thinking in how could I pass the result of the application developed in VB to my b4ppc application, in a safe way. Maybe with an intermediate file.... Any ideas?

Thanks for the answer.
Reply With Quote
  #5 (permalink)  
Old 08-27-2007, 06:42 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I don't know what format yout data is in but investigate the B4PPC Table control. It can read and parse CSV files and also write its' contents back out. It may help in getting your data in to B4PPC.

Also B4PPC does support arguments so if you really wanted to you could Shell your B4PPC app from VB6 giving it the datafile name as a parameter.
Reply With Quote
  #6 (permalink)  
Old 08-27-2007, 07:51 PM
Junior Member
 
Join Date: Jul 2007
Posts: 37
Default

Hi agraham,

Good idea. What I want is to get the VB result to b4ppc, but if if works one direction, maybe it will works in the other one. I'll take that way, to see what I find.

Thanks.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions (Windows Mobile) 19 10-27-2010 01:08 PM
Build proper desktop apps in B4PPC with this awesome Forms library agraham Additional Libraries 25 07-30-2008 04:19 PM
Problem with B4PPC itself, on desktop mjcoon Questions (Windows Mobile) 2 06-06-2008 05:59 AM
Windows CE5 ? DeeCee Questions (Windows Mobile) 1 03-12-2008 07:21 AM
Redirection from desktop to B4PPC on compile taximania Chit Chat 4 02-04-2008 07:05 PM


All times are GMT. The time now is 11:05 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0