PC Review


Reply
Thread Tools Rate Thread

How to call this DLL?

 
 
Paul Lenz
Guest
Posts: n/a
 
      9th Sep 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call a javascript when i call an aspx page with a form html not running on server Fabio Mastria Microsoft ASP .NET 4 28th Jan 2008 09:05 AM
Warning 1684 CA2214 : Microsoft.Usage : 'RandomShade..ctor(Int32, Int32, Int32, Int32, Int32)' contains a call chain that results in a call to a virtual method defined by the class. Review the following call stack for unintended consequences: steve bull Microsoft C# .NET 4 7th Jul 2005 05:54 PM
Are we new users supposed to call this number? I have auto dial on my XP in the dialer but am I required to call? Windows XP New Users 12 26th May 2005 03:47 PM
An outgoing call cannot be made since the application is dispatching an input-synchronous call Sagaert Johan Microsoft C# .NET 4 6th Apr 2005 12:12 AM
Re: Please help - How to call functions that exists in the main application. The call should be initiated from one of the components. Baavgai Microsoft C# .NET 0 4th Sep 2004 05:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:59 PM.