Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-17-2009, 05:04 AM
Junior Member
 
Join Date: Jan 2009
Posts: 4
Default Can't get simple ActiveX DLL to work

Hi,

I know I have to be doing something wrong, but I just can't figure it out. I am trying to include an ActiveX DLL created in VB6. The DLL has one function that is public that does nothing except return a string. (mainly testing to make sure I can pass it in before I start coding anything heavier).

I have the following on my init script in SWFKit:

ActiveXObject.addObjectInfo(getAdditionalFile("Tes ting.dll"), "Testing.MainFunctions",
"{D18D158E-C1D1-4CB1-BCA7-555EFFACDCFC}",
"{E3B6E19F-81E2-4E01-91E7-B565C7661195}");

var lc = new ActiveXObject("Testing.MainFunctions");
Dialogs.msgBox("hello " + lc.Hi());

The lc.Hi() returns as undefined even though there's a hard coded string being returned. If I trace the addObjectInfo line it returns false. I can email the DLL if necessary. Just trying to get to a point where I'm not beating my head against the wall.

Thanks for your help in advance.
Reply With Quote
  #2 (permalink)  
Old 01-18-2009, 01:09 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

Are you sure that when the "new ActiveXObject" clause returns, lc holds an activex component instance? If you cannot solve the problem, please send the dll to support@swfkit.com. Thanks.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

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 On



All times are GMT. The time now is 05:35 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.