![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
|
||||
|
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. |
|
|||
|
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. |
|
||||
|
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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 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 & Help Needed | 2 | 06-06-2008 05:59 AM |
| Windows CE per ARM | micro | Italian Forum | 12 | 05-24-2008 04:38 AM |
| Using rapi from desktop to copy file from device to desktop | sunnyboyj | Questions & Help Needed | 9 | 02-08-2008 11:40 AM |
| Redirection from desktop to B4PPC on compile | taximania | Chit Chat | 4 | 02-04-2008 07:05 PM |