Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 19th, 2006, 01:12 PM
Registered User
 
Join Date: Apr 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to reference a .dll file?

Will someone show me how to reference a .dll file in my bin folder?

 
Old April 19th, 2006, 10:14 PM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

on reference click reight key of mouse ,add dll file, is ok!

 
Old April 20th, 2006, 07:51 AM
Registered User
 
Join Date: Apr 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the help. It seemed that it is referenced now, but how do I access the classes and properties of this .dll?

 
Old April 20th, 2006, 08:05 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Well you just declare a variable of the correct type and instantiate it. If you don't want to use the full name with its namespace add a using statement. If you tell us the names of the classes, with their namespaces, we'll show you an example.

--

Joe (Microsoft MVP - XML)
 
Old April 20th, 2006, 10:32 AM
Registered User
 
Join Date: Apr 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks! I think I got it working now.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Reference to VB6 DLL webnet .NET Framework 2.0 3 October 4th, 2007 11:41 AM
Reference to a DLL costaaa C# 0 August 5th, 2006 03:07 PM
Reference lib or .dll in application? MMahaney@wcinfo.com C# 1 February 11th, 2005 02:25 PM
DLL & Excel - keep having to reset DLL reference! James Diamond Pro VB 6 2 May 25th, 2004 03:37 AM
Can an ActiveX DLL reference a spreadsheet? james gold Excel VBA 0 October 2nd, 2003 10:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.