Jump to content

DLLCall help needed


Recommended Posts

Never used DllCall before and I need some help

1st I need to get a referece to an object

Dim tw As New TwitterVB2.TwitterAPI

when I need to call GetAuthorizationLink function

Dim Url as String = tw.GetAuthorizationLink(ConsumerKey,ConsumerKeySecret)

How do I get a reference ot an object? dllCall($Dll,"handle","TwitterVB2.TwitterAPI") returns 0

Thanks

Global $Tw;
Global $ConsumerKey="xxxx";
Global $ConsumerKeySecret="xxxxx";

$Dll=DllOpen("TwitterVB.dll");

$Tw=dllCall($Dll,"handle","TwitterVB2.TwitterAPI");

$sURL=$Tw.GetAuthorizationLink($ConsumerKey,$ConsumerKeySecret)
;$Tw=dllCall($Dll,"str","GetAuthorizationLink","str",$ConsumerKey,"str",$ConsumerKeySecret);
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...