PDA

View Full Version : Windows API Database for VDF



Greg Sergeant
11-Oct-2005, 08:30 AM
I finally got around to updating my Windows API tool and giving the new
version to Curtis at Database Managers for posting. Thanks Curtis!

The new version has a few more database entries. It also does VB type
conversions to either VDF types or VDF structs.

Also, it can now do instant syntax conversions. Just paste in a VB
function, type or constant declaration and it will convert it to VDF
syntax for you. It does NOT convert VB code to VDF, only declarations.

It can be downloaded from the Database Managers website below. I hope
someone finds it useful.

http://www.decompile.com/dataflex/tips/winapi.htm

Garret Mott
11-Oct-2005, 02:07 PM
Thanks Greg!

I know I'll find it useful.

Best,

Garret

"Greg Sergeant" <gsergeant@specialservicesystems.com> wrote in message
news:oxhUAcmzFHA.3612@dacmail.dataaccess.com...
>I finally got around to updating my Windows API tool and giving the new
>version to Curtis at Database Managers for posting. Thanks Curtis!
>
> The new version has a few more database entries. It also does VB type
> conversions to either VDF types or VDF structs.
>
> Also, it can now do instant syntax conversions. Just paste in a VB
> function, type or constant declaration and it will convert it to VDF
> syntax for you. It does NOT convert VB code to VDF, only declarations.
>
> It can be downloaded from the Database Managers website below. I hope
> someone finds it useful.
>
> http://www.decompile.com/dataflex/tips/winapi.htm

Ditte
11-Oct-2005, 04:41 PM
Hallo,
itīs really great,
but I canīt test the data aware sample.
I think it canīt open the error files.
When I like to open it by database builder it donīt start.
What can I do?
Dittmar

Marco
11-Oct-2005, 07:06 PM
This is great!!!

I always (well since vdf 11), wanted to write such a thing....

Thanks heaps.

Just a couple of minor things;
eg the VB function:
Private Declare Function DeviceCapabilities Lib "winspool.drv" _
Alias "DeviceCapabilitiesA" (ByVal lpDeviceName As String, _
ByVal lpPort As String, ByVal iIndex As Long, lpOutput As Any, _
ByVal dev As Long) As Long

When copied into the convert VB code dialog, the following things happen:
1- If the word 'Private' is not removed it does not work
2- Assuming the VB '_' is our ';' is not interpreted, in that the
conversion stops after the first line.

Offcourse these are simple changes, and as you provide the source code
and can do this easily myself, but just thought you might wanted to know.


Thanks heaps for this very usefull tool!!!

Cheers,
Marco



Greg Sergeant wrote:
> I finally got around to updating my Windows API tool and giving the new
> version to Curtis at Database Managers for posting. Thanks Curtis!
>
> The new version has a few more database entries. It also does VB type
> conversions to either VDF types or VDF structs.
>
> Also, it can now do instant syntax conversions. Just paste in a VB
> function, type or constant declaration and it will convert it to VDF
> syntax for you. It does NOT convert VB code to VDF, only declarations.
>
> It can be downloaded from the Database Managers website below. I hope
> someone finds it useful.
>
> http://www.decompile.com/dataflex/tips/winapi.htm

Greg Sergeant
12-Oct-2005, 08:20 AM
You are correct. Those are two things I missed in the code. Handling
the 'Private' part is easy. Find this line in the
Syntax_Conversion_Dialog.dg file...

Move (Trim(Replace("Public",sBuffer,""))) To sBuffer

and add this line right after it...

Move (Trim(Replace("Private",sBuffer,""))) To sBuffer

That should do it.

The other problem would take a bit more thought. It may be easier just
to edit the example in the input box before trying to convert it so that
the declaration is all one line. Then it should handle it fine.

Greg



Marco Kuipers wrote:
> This is great!!!
>
> I always (well since vdf 11), wanted to write such a thing....
>
> Thanks heaps.
>
> Just a couple of minor things;
> eg the VB function:
> Private Declare Function DeviceCapabilities Lib "winspool.drv" _
> Alias "DeviceCapabilitiesA" (ByVal lpDeviceName As String, _
> ByVal lpPort As String, ByVal iIndex As Long, lpOutput As Any, _
> ByVal dev As Long) As Long
>
> When copied into the convert VB code dialog, the following things happen:
> 1- If the word 'Private' is not removed it does not work
> 2- Assuming the VB '_' is our ';' is not interpreted, in that the
> conversion stops after the first line.
>
> Offcourse these are simple changes, and as you provide the source code
> and can do this easily myself, but just thought you might wanted to know.
>
>
> Thanks heaps for this very usefull tool!!!
>
> Cheers,
> Marco
>
>
>
> Greg Sergeant wrote:
>
>> I finally got around to updating my Windows API tool and giving the
>> new version to Curtis at Database Managers for posting. Thanks Curtis!
>>
>> The new version has a few more database entries. It also does VB type
>> conversions to either VDF types or VDF structs.
>>
>> Also, it can now do instant syntax conversions. Just paste in a VB
>> function, type or constant declaration and it will convert it to VDF
>> syntax for you. It does NOT convert VB code to VDF, only declarations.
>>
>> It can be downloaded from the Database Managers website below. I hope
>> someone finds it useful.
>>
>> http://www.decompile.com/dataflex/tips/winapi.htm