Spotnick2
August 3rd, 1999, 10:43 AM
By curiousity, if I create an ActiveX DLL, how can I make one of the function "available" to other application.. if I try to show dependencies, no functions are available.
Thank you.
Thank you.
|
Click to See Complete Forum and Search --> : How to make a funciton available Spotnick2 August 3rd, 1999, 10:43 AM By curiousity, if I create an ActiveX DLL, how can I make one of the function "available" to other application.. if I try to show dependencies, no functions are available. Thank you. Mikesc August 3rd, 1999, 11:09 AM Set the instancing property to GlobalMultiUse. The second part of your post about dependencies I don't understand though... Spotnick2 August 3rd, 1999, 11:16 AM And how to I set this? sorry, no VB expert..! As for the dependencies.. I mean using the Visual Studio tools, I can see the ordinals and the functions in the DLL... Mikesc August 3rd, 1999, 09:23 PM In VB start an ActiveX DLL project. When it comes up there should be a class module attached to it (look in the upper right portion of the coding window at the Project Explorer window) Double click on the class module if it is not already highlighted then look below the Project Explorer window and you will see the Properties Window. Here in the Properties Window for the class you will see the Instancing Property, click on it to set it. If you have any trouble, look in the VB help files. Spotnick2 August 4th, 1999, 08:35 AM Ok, so it's set now to GlobalMultiUse, now how do I make my function "available" from the outside world? Mikesc August 4th, 1999, 09:54 AM Now just compile the DLL, start another project, select the Project menu choose Components and click on your DLL name so that it is checked, then click OK and you're ready to go... Or if you want to test your DLL you can add a project to your DLL project and test/debug the DLL, just select the File menu and click Add Project. Then call the DLL functions from the new project the way you would normally. Don't forget though to change the startup option in Project/Properties to the new form. All this stuff is in the VB help files, very easy to understand, and theres even a step by step guide to building an example project. Good Luck. Spotnick2 August 4th, 1999, 09:59 AM I know that, what I'm trying to do is to use this DLL inside Visual C++.. If I use the Dependency Walker, I still don't see any of the functions I put in the DLL, so I must do something wrong.. Mikesc August 5th, 1999, 09:42 AM Sorry, I can't help you there. I know nothing about C++ or its IDE. According to Microsoft though it should work no problem. Did you try registering the DLL after you compiled it? You might want to repost your question. Sorry I couldn't be of more help. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |