473,396 Members | 1,784 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,396 software developers and data experts.

i need good advise

its go like this.
i have some hardware that came with dll to access his resources and manage
them.
(there is nice api).
my target:
i want to create a class for each resource ,and able to manage him in the
O.O way.
(and not in the c/procedural way).

this dll will be accessed from mulithread application.

the question his, can i create my component,with all my requirments, WITHOUT
USING COM.(atl for example).

what are my options to do my thing ?

hope im clear.
have a nice day.
Nov 16 '05 #1
2 948
You can use platform invoke to access the api stored in dll

"Daylor" <Da****@012.net.il> wrote in message
news:3f******@news.012.net.il...
its go like this.
i have some hardware that came with dll to access his resources and manage
them.
(there is nice api).
my target:
i want to create a class for each resource ,and able to manage him in the
O.O way.
(and not in the c/procedural way).

this dll will be accessed from mulithread application.

the question his, can i create my component,with all my requirments, WITHOUT USING COM.(atl for example).

what are my options to do my thing ?

hope im clear.
have a nice day.

Nov 16 '05 #2
Daylor wrote:
its go like this.
i have some hardware that came with dll to access his resources and
manage them. (there is nice api).
the question his, can i create my component,with all my requirments,
WITHOUT USING COM.(atl for example).


If the DLL exposes some functions, then you can simply call it from C# via
P-Invoke.
You can also use (managed) C++.

See DllImportAttribute
http://msdn.microsoft.com/library/en-
us/cpref/html/frlrfSystemRuntimeInteropServicesDllImportAttribut eClassTopic
..asp

--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/useritems/leakfinder.asp
Nov 16 '05 #3

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

Similar topics

7
by: jodocus | last post by:
hi, I am new to python (but not to programming - have programmed in many other languages like C++/lisp/perl etc.) and I would like to buy a good book. The local bookstore has no books about...
10
by: Jeff Wagner | last post by:
I am in the process of learning Python (obsessively so). I've been through a few tutorials and read a Python book that was lent to me. I am now trying to put what I've learned to use by rewriting...
1
by: GM | last post by:
Hello... Please advise me where can I post a message about job seeking for the small developers team (ASP, XML/XSLT, *script skills)? Thanks a lot ahead. Please, advise me to:...
2
by: DD | last post by:
I have developed a a nice little software package(Packaged with Wise and SageKey) My product works great in a clean enviroment on Win98 and Win2k and XP As soon as i introduce Office 2000 Pro onto...
4
by: Nip | last post by:
I am trying to make a database for my test participants. I have 10 participants and have a table with them called participants which includes an auto number ID and then the participant number and...
12
by: Noel | last post by:
Hello, I'm currently developing a web service that retrieves data from an employee table. I would like to send and retrieve a custom employee class to/from the webservice. I have currently coded...
36
by: sonnystarks | last post by:
I am trying to learn HTML and have obtained several books on the subject. However, I am confused with the proper way of going about it as most of these books give me the basic tags and then say...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
2
by: mandor | last post by:
Hello, I need some advise in table design, and more specifically about table partitioning. I read some papers and there was mentioned that if a table is expected to hold millions of rows, it's a...
7
by: MZ | last post by:
Hello, I have a webcam connected to the Internet. I can access the current static picture of the camera using an url link. It shows the picture with high resolution 1600x1200. I would like to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.