473,399 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Write DLL

Hi, all,

I’m newbie in .net, does any expert help me on the following questions? Thanks

I have a DLL file wrote in Visual C++ 6.0 for sending message from one
server to the other server, and I would use asp.net to write the interface
for user. Looks I can’t use “Add reference” to add that DLL on my asp.net
page (I got a error message: "This is not a valid assembly or COM
component.Only assemblies with extension 'dll' and COM components can be
referenced. Please make sure that the file is accessible, and that it is a
valid assembly or COM component.").
If I need to re-write the DLL, which language(C# or C++) is a better
language to write that DLL?

Nov 19 '05 #1
2 1267
Google for Interop

"Angie" <An***@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hi, all,

I'm newbie in .net, does any expert help me on the following questions?
Thanks

I have a DLL file wrote in Visual C++ 6.0 for sending message from one
server to the other server, and I would use asp.net to write the interface
for user. Looks I can't use "Add reference" to add that DLL on my asp.net
page (I got a error message: "This is not a valid assembly or COM
component.Only assemblies with extension 'dll' and COM components can be
referenced. Please make sure that the file is accessible, and that it is a
valid assembly or COM component.").
If I need to re-write the DLL, which language(C# or C++) is a better
language to write that DLL?

Nov 19 '05 #2
You can create an Interop assembly that wraps the DLL, or you can re-write
the DLL. If you rewrite it, the language makes as much difference to the app
as the language that I'm speaking (English) means to you. IOW, the language
isn't important. It's what the language SAYS that is important. And, of
course, whether you can read/write it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Angie" <An***@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hi, all,

I'm newbie in .net, does any expert help me on the following questions?
Thanks

I have a DLL file wrote in Visual C++ 6.0 for sending message from one
server to the other server, and I would use asp.net to write the interface
for user. Looks I can't use "Add reference" to add that DLL on my asp.net
page (I got a error message: "This is not a valid assembly or COM
component.Only assemblies with extension 'dll' and COM components can be
referenced. Please make sure that the file is accessible, and that it is a
valid assembly or COM component.").
If I need to re-write the DLL, which language(C# or C++) is a better
language to write that DLL?

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: techy techno | last post by:
Hii Just wanted to know how can I decorate my texboxes and Listmenu which is called from a JS file using the following code below: document.write("<SELECT NAME='cur2' ONCHANGE='cconv1();'>");...
2
by: Brett Baisley | last post by:
Hello I have a block of html code that I want to run by calling a javascript function to print it. Its basically a table with menu items in it that is the same for many pages, and instead of...
0
by: hari krishna | last post by:
hi all, My requirement is to generate xl reports throu Asp.Net without installing xl on web server computer. i am using Response object and wrtifile method as below. i dont know whether it is...
4
by: Prowler | last post by:
In the application we are currently building, we need to write positioning code on-the-fly, based upon the screen offset of the element in the AS/400 application which drives the Web app. The 400,...
0
by: hari krishna | last post by:
hi all, My requirement is to generate xl reports throu Asp.Net without installing xl on web server computer. i am using Response object and wrtifile method as below. i dont know whether it is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.