loyal Posted August 12, 2003 Posted August 12, 2003 Hi all I made a shared Assembly that contain a class library called myClass And a sub called myMethod it has a Msg.box("whatever") After registered it I have a project called calling my Class Now how can I call myClass Assembly and use myMethod in calling my Class project ? Quote Gary Says: To be a good programmer, you must be good at debugging
Moderators Robby Posted August 12, 2003 Moderators Posted August 12, 2003 Import the myClass then declare a var as MyClass, then do var.myMethod Quote Visit...Bassic Software
loyal Posted August 14, 2003 Author Posted August 14, 2003 hi it's not defined when I use the Imports keyword it does not appear with system and microsoft and etc namesapces look I genrate a strong name for assembly and register that key into AssimblyInfo like this <Assembly: AssemblyKeyFile("C:/gacClass.snk")> but I left the version at it was <Assembly: AssemblyVersion("1.0.*")> then I used the gacutil to Install it into GAC and I found it there is this correct ? Quote Gary Says: To be a good programmer, you must be good at debugging
Administrators PlausiblyDamp Posted August 15, 2003 Administrators Posted August 15, 2003 You will also need to set a reference to the DLL (Project menu->references) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
loyal Posted August 16, 2003 Author Posted August 16, 2003 In fact I tried to reference it but it coudn't found by add Reference and I found it into the Assembly Folder anyway thanks in advance Quote Gary Says: To be a good programmer, you must be good at debugging
*Experts* mutant Posted August 16, 2003 *Experts* Posted August 16, 2003 Go to Add Reference and then press the Browse button on the top right and just find your DLL in the dialog that pops up. Quote
loyal Posted August 18, 2003 Author Posted August 18, 2003 thanks work has done successfuly :p but I added it from bin folder not from Assembly folder is this correct ? :rolleyes: Quote Gary Says: To be a good programmer, you must be good at debugging
loyal Posted August 20, 2003 Author Posted August 20, 2003 is this correct ? Quote Gary Says: To be a good programmer, you must be good at debugging
Administrators PlausiblyDamp Posted August 20, 2003 Administrators Posted August 20, 2003 sounds correct, does it work? If so I'd class it as correct ;) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
loyal Posted August 21, 2003 Author Posted August 21, 2003 yeah Thanks PD Quote Gary Says: To be a good programmer, you must be good at debugging
Alka Posted August 21, 2003 Posted August 21, 2003 As suggested in this thread, if you need to include reference to your shared dll from the bin directory , what is the idea of registering it in the GAC. If some other application needs to use this dll , from where it would reference. Quote
mvargas Posted November 5, 2003 Posted November 5, 2003 I found this thread from a Google search -- I'm having this exact same problem and I can't figure out what's going on. I signed and added an Assembly to the GAC as instructed, and I see it in C:\Windows\assembly, but for some reason it doesn't show up in the .NET tab of the Add Reference window in Visual Studio. How do I get it to show up there? I want to be able to reference it from other projects without having to browse to its actual location -- otherwise, I have no reason to even make it shared. Quote
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.