Camaro Z28 Posted May 15, 2003 Posted May 15, 2003 I already tried checking the checkbox - Register for Com Interopt in the build settings of the class. Whenever I try to get VB 6.0 to reference it, it says "Can't add a reference to the specified file.". Anyone know what I did wrong or didn't do? Thanks for any info. Jason Quote Visual Basic Code Source FREE Visual Basic Source Code
Guest Deleted member 22320 Posted May 15, 2003 Posted May 15, 2003 Hmm.. I'm not sure but i dont think it work in that direction Quote
Administrators PlausiblyDamp Posted May 15, 2003 Administrators Posted May 15, 2003 Just created a VB class library project, Deleted the class1.vb file and added a new item and selected 'COM Class' from the list of options, added a single function that returned a string and built the dll. Created a new VB6 project tried to add the .TLB file as a reference and it worked just fine. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Camaro Z28 Posted May 16, 2003 Author Posted May 16, 2003 Thanks for the replys. I tried your suggestion and I keep getting a runtime error. I know there is someway to get it to work with the classic versions of VB and .Net. Hmmm..... Jason Quote Visual Basic Code Source FREE Visual Basic Source Code
XAshot Posted May 19, 2003 Posted May 19, 2003 You must check Register for Com Interopt checkbox, build your project, then add reference from VB6 to .tlb file. Quote
Camaro Z28 Posted May 22, 2003 Author Posted May 22, 2003 (edited) Thanks for your reply. I finally got it to work halfway. I can get a reference to it but I can't get access to anything. Ex: I have a public function name opendrive If my class object is named newMod If I try newMod.opendrive It doesn't show anything when I type newMod. It doesn't show my functions. I am still trying to figure that out. Jason Edited May 22, 2003 by Camaro Z28 Quote Visual Basic Code Source FREE Visual Basic Source Code
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.