Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating COM objects

Status
Not open for further replies.

everkleer

Programmer
Nov 6, 2002
25
US
I am trying to create a COM object that interacts with an existing OLEObject and I can get it to work under VB but I wan't to create it using PB and I can't get it. When I create it using PB, I know the existing object sees my object as being compatible and having the function that it wants but that my function isn't getting automatically called like it should.

I think the problem is this: When I created it in VB (which did work) I declare the function as having two variant type params. But in PB if I try to declare the function as having the equivalent params - two any's, the dll won't compile and will tell me that any is an invalid COM datatype.

Thanks in advance for any help
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top