Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralBeginner C# & VB developer Pin
Mahmoud Alyan9-Dec-07 1:43
Mahmoud Alyan9-Dec-07 1:43 
GeneralRe: Beginner C# & VB developer Pin
mav.northwind9-Dec-07 4:36
mav.northwind9-Dec-07 4:36 
GeneralRe: Beginner C# & VB developer Pin
Paul Conrad9-Dec-07 5:28
professionalPaul Conrad9-Dec-07 5:28 
GeneralRe: Beginner C# & VB developer Pin
AlexSharp9-Dec-07 6:01
AlexSharp9-Dec-07 6:01 
GeneralRe: Beginner C# & VB developer Pin
GuyThiebaut9-Dec-07 9:35
professionalGuyThiebaut9-Dec-07 9:35 
GeneralRe: Beginner C# & VB developer Pin
Rain Coder11-Jul-08 8:04
Rain Coder11-Jul-08 8:04 
GeneralSupport multiple assembly versions Pin
Joseph LeBlanc9-Dec-07 1:42
Joseph LeBlanc9-Dec-07 1:42 
GeneralRe: Support multiple assembly versions Pin
mav.northwind9-Dec-07 4:43
mav.northwind9-Dec-07 4:43 
Hi!
I guess ehRecObj.dll is hosting a COM type library, right?
In order to support different versions I think the best way (at least the one I use) is to take the dll with the lowest version (that's still supporting the functionality you need) and create an interop assembly "by hand".
There's a tool named "tlbimp" included in the .NET SDK that can create such interop assemblies. In your .NET application you only reference the interop assembly (instead of adding a reference to the COM type library).
At runtime, the calls to your interop assembly's classes are marshaled to calls to the actual COM objects installed on the target system.

Regards,
mav

--
Black holes are the places where God divided by 0...

GeneralRe: Support multiple assembly versions Pin
Joseph LeBlanc9-Dec-07 10:30
Joseph LeBlanc9-Dec-07 10:30 
GeneralRe: Support multiple assembly versions Pin
mav.northwind9-Dec-07 19:07
mav.northwind9-Dec-07 19:07 
GeneralRe: Support multiple assembly versions Pin
Joseph LeBlanc9-Dec-07 19:11
Joseph LeBlanc9-Dec-07 19:11 
GeneralRe: Support multiple assembly versions Pin
mav.northwind9-Dec-07 19:35
mav.northwind9-Dec-07 19:35 
Generalstring matching(Please Help) Pin
mshahrouri9-Dec-07 1:27
mshahrouri9-Dec-07 1:27 
GeneralRe: string matching(Please Help) Pin
Xmen Real 9-Dec-07 2:03
professional Xmen Real 9-Dec-07 2:03 
GeneralRe: string matching(Please Help) Pin
Adeel Chaudhry9-Dec-07 5:11
Adeel Chaudhry9-Dec-07 5:11 
GeneralRe: string matching(Please Help) Pin
mshahrouri9-Dec-07 20:39
mshahrouri9-Dec-07 20:39 
GeneralRe: string matching(Please Help) [modified] Pin
Jimmanuel9-Dec-07 9:01
Jimmanuel9-Dec-07 9:01 
GeneralRe: string matching(Please Help) Pin
mycsharpcorner10-Dec-07 4:24
mycsharpcorner10-Dec-07 4:24 
Generalcustimizing repeater controls Pin
Imran Adam9-Dec-07 1:08
Imran Adam9-Dec-07 1:08 
GeneralTCP/IP (Listener, Client and Raw Sockets) Pin
half-life8-Dec-07 22:29
half-life8-Dec-07 22:29 
GeneralRe: TCP/IP (Listener, Client and Raw Sockets) Pin
Anthony Mushrow9-Dec-07 0:00
professionalAnthony Mushrow9-Dec-07 0:00 
GeneralRe: TCP/IP (Listener, Client and Raw Sockets) Pin
half-life9-Dec-07 0:11
half-life9-Dec-07 0:11 
GeneralDataGridView Maximum Number of Rows Pin
Shaahinm8-Dec-07 22:14
Shaahinm8-Dec-07 22:14 
GeneralRe: DataGridView Maximum Number of Rows Pin
Xmen Real 9-Dec-07 1:56
professional Xmen Real 9-Dec-07 1:56 
QuestionHow to open a file in .dll Pin
Strategic_Thinker8-Dec-07 21:41
Strategic_Thinker8-Dec-07 21:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.