简体   繁体   中英

Call a DLL from another DLL

I'm fairly new to C# (coming from java, although the syntax is almost identical), and i'm having trouble referencing a DLL.

Im trying to reference it / call it from another DLL, in which is called from a VB interface. I can reference the DLL within the other DLL just fine, but when I try to compile it, its asking if im missing a namespace or reference. So my questions are:

A. Can I actually reference and use DLL from another DLL (And have it compile obviously)

B. How?

Note: Using visual studio 2010. To compile I use:

csc /target:library /out:<dll name>.DLL <Source1.cs> <Source2>.cs 

ect.

Thank you all in advance,

~Mitch

Right click project that you wish to reference dll from. Select 'Add reference' option. Building can be achieved from the menu at the top under 'Build'. I know this was answered above, but I thought it would be useful to mark the question as answered.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM