Calling a COM object from Perl

T

Topman

We have a commercial product developed in VB 6 and they have­ dll's
that I would like to access from Perl. I have tried the perl exte­nded
route without success. I do not have access to the source code. Here
­is a sample
code:
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include <stdio.h>
int Login( char *, char *);
MODULE = Mtest PACKAGE = Mtest
char *
ffcbtest()
CODE:
HINSTANCE hLib=LoadLibrary("mydll.dll");
printf ("Attempted to Load Library \n");
if(hLib==NULL) {
printf("Unable to load library!\n");
getch();
return;


}


Login( "usr", "passwd" );
getch();
OUTPUT:
RETVAL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top