473,487 Members | 2,461 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Advice on Web Project for interface to another DLL

Hi

I'm kind of lost here.

I'm creating a ASP.NET page using C# as my code behind. I'm getting
information from the user from the ASP.NET page after the submit. The
part that I'm lost is that I want to feed this info to a DLL to run
some particular service. I'm not sure how to do that with C# ???

Also, would this scenario be handled the same way if instead of a DLL
it was another C# program?
I'm appreciate any advice. Thanks.

Danny
Nov 16 '05 #1
4 946
da***********@pacbell.net (Danny) wrote in news:168fc747.0405182038.69beb879
@posting.google.com:
information from the user from the ASP.NET page after the submit. The
part that I'm lost is that I want to feed this info to a DLL to run
some particular service. I'm not sure how to do that with C# ???


What kind of DLL is it? Is it a managed assembly or an old unmanaged type?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
Nov 16 '05 #2
> What kind of DLL is it? Is it a managed assembly or an old unmanaged type?

It is the old unmanage type DLL. Thanks for the help

Danny
Nov 16 '05 #3
> What kind of DLL is it? Is it a managed assembly or an old unmanaged type?

It is the old unmanaged type DLL. Thanks for the help.

Danny
Nov 16 '05 #4
"Danny" wrote :
What kind of DLL is it? Is it a managed assembly or an old unmanaged
type?
It is the old unmanage type DLL. Thanks for the help


Hello,

It is possible to call functions from unmanage type DLLs using PInvoke. The
idea
is to provide C# enough information on the function (ie parameters, return
types...)

To call a simple fonction with this prototype located in test.dll

int print(int x, int y, char *name, int *error_code);

you will write :

[DllImport("test.dll")]
static extern int print(int x, int y, String name, out int error_code);

Well, this is the basic idea. It can get more complicated depending on the
function prototype :)

--
Francois Beaussier
Fr******@3ie.org.remove
Nov 16 '05 #5

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

Similar topics

3
1370
by: John French | last post by:
I've been interested in Python for a while now but haven't had an opportunity to use / learn it. I'm tasked now with a project at work that might be my first opportunity. I have to write a ~75...
2
1545
by: Andrew | last post by:
I am starting my first C# project and have a design issue which I would appreciate some advice about. I am wondering whether to use dataset to pass information between components or if I should...
1
10904
by: Steven T. Hatton | last post by:
I think Danny was one cup of coffee shy of full consciousness when he wrote this, but the gist of it makes sens to me: "C++ Project Organization Guidelines Last updated May 26, 2005....
11
2053
by: Mark | last post by:
Hi, For the last 2 years I've been developing vehicle tracking/telemetric software for a company as a self employed individual. The project is quiet big, and is going to be there flagship...
9
2643
by: Laban | last post by:
Hi, I find myself using static methods more than I probably should, so I am looking for some advice on a better approach. For example, I am writing an app that involves quite a bit of database...
5
1694
by: Steve | last post by:
Hi, I am sitting down to design our next set of internal apps. I would like to approach this in a way that would allow me to break logical parts of the application that handle specific tasks...
1
9581
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
4
2221
by: | last post by:
I am a recent college graduate and am looking for some advice on how to be a skilled C++ developer. My educational background is from a quite mediocre campus. Can anybody please explain what is...
4
1109
by: Peted | last post by:
Hello Im writing a app that is designed to test and interrogate serial devices. I can do the serial comunication ok My problem is i have a mdi parent form and i want the interface for the...
0
7108
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
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7142
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
7181
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...
1
4875
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...
0
3078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
272
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.