Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to call this DLL?

I want to use a DLL in a VBA program.

The programmer of the DLL provided these infos:

| PWDBCEGetInfo
| Query ActiveSync to retrieve information about PathAway
| on the device.
|
| PWInt32
| PWDBCEGetInfo(
| PWUInt32 flags,
| PWUInt32 *pState,
| char *pData
| );
|
| Parameters:
| flags - [in] flags specifying the type of information to be
| returned.
| pState - [out] returns status result state based on flags
| settings
| pData - [out] returns pointer to data based on the the flags
| settings
| char * String
| If pData is not NULL, then the program path is returned.
| Pdata must be previously allocated to hold 256 characters.
|
| Return Values
| 0 indicates success. Otherwise a negative number indicating
| failure.
|
| Examples
|
| To determine if PathAway is installed:
| PWDBCEGetInfo(PROGRAMINFO_FLAG_GETSTATE, &dwState, pPath);

I can not find out how to code this in VBA. Either I get an errror
message about wrong calling of the DLL, or Excel crashes.

I suppose the problem is the 256 char string, but I have no idea how
to handle it correctly. How must I declare the function and how must
I call it?

Thanks for any help.

Paul Lenz

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call Center Management: How to calculate 'cost per call' Denniso6 Excel Discussion (Misc queries) 2 June 25th 06 05:01 PM
Don't know what to call what I need? chanwando Excel Worksheet Functions 5 September 9th 05 10:01 PM
call sub mike allen[_2_] Excel Programming 3 October 15th 04 04:54 PM
How do you call one Sub from another Sub ? lothario[_30_] Excel Programming 2 October 17th 03 01:47 PM
DLL Call No Name Excel Programming 1 October 16th 03 01:34 PM


All times are GMT +1. The time now is 05:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"