|
 |
aspx thread: Invoke COM Component in C#
Message #1 by "Rajesh Bhaskaran" <rajesh@r...> on Tue, 15 Oct 2002 18:51:33
|
|
Hi,
I have installed .NET Framework SDK and its working fine. I use notepad.
How can instantiate a COM (old one) in C# class?
any change in the @Page directive?
server.createobject give me error
Thanks
Rajesh
Message #2 by Armand Du Plessis <ArmandDP@c...> on Wed, 16 Oct 2002 07:37:59 +0200
|
|
Have a look at the tlbimp utility that comes with the framework sdk. Import
your com object with the utility and
you should be able to use it almost like a normal .net assembly.
From msdn :
The Type Library Importer converts the type definitions found within a COM
type library into equivalent definitions in a common language runtime
assembly. The output of Tlbimp.exe is a binary file (an assembly) that
contains runtime metadata for the types defined within the original type
library.
-----Original Message-----
From: Rajesh Bhaskaran [mailto:rajesh@r...]
Sent: 15 October 2002 08:52 PM
To: ASP+
Subject: [aspx] Invoke COM Component in C#
Hi,
I have installed .NET Framework SDK and its working fine. I use notepad.
How can instantiate a COM (old one) in C# class?
any change in the @Page directive?
server.createobject give me error
Thanks
Rajesh
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
|
|
 |