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

using unmaged dll in managed c++

I have seen some articles on using unmanged dll's in managed c++, but
they all see to require knwing the paramters and structures of the the
dll functions to be called.

I have this freeware dll that provides socket functions, but there is
no info on its internal structure so i can declare its use correctly.
Is there some way to interogate the dll and get this information

thanks for any help
Jun 29 '06 #1
3 1102
You need to see if you can find the header file for that DLL so that you can
declare it.
Jun 29 '06 #2
>I have seen some articles on using unmanged dll's in managed c++, but
they all see to require knwing the paramters and structures of the the
dll functions to be called.
that is no different from using it in other languages.
if you want to use a native dll, you have to have the header file that
declares all the
exported functions, regardless of which language you want to call it from
you probably also need the lib file, unless you want to load the dll by
calling LoadLibrary
I have this freeware dll that provides socket functions, but there is
no info on its internal structure so i can declare its use correctly.
Is there some way to interogate the dll and get this information


no.
having a native dll without knowing the function declarations is not going
to help you.
;-)
--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jun 29 '06 #3
You can use dumpbin.exe with the /exports argument to show the DLL's
function signatures.

<Petdedwrote in message news:f7********************************@4ax.com...
>I have seen some articles on using unmanged dll's in managed c++, but
they all see to require knwing the paramters and structures of the the
dll functions to be called.

I have this freeware dll that provides socket functions, but there is
no info on its internal structure so i can declare its use correctly.
Is there some way to interogate the dll and get this information

thanks for any help

Jul 7 '06 #4

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

Similar topics

47
by: Bonj | last post by:
I downloaded the gzlib library from zlib in order to do compression. (http://www.gzip.org/zlib) The prototype of the compression function seems to be int compress (Bytef *dest, uLongf *destLen,...
5
by: dvtaylor | last post by:
We write everything in plain old C. We have a potential customer that wants to provide us a DLL written in C#. How can we call it's functions?
0
by: =?Utf-8?B?bGlnaHRkb2xs?= | last post by:
hello everyone i want to send lots of data from unmanaged to mange code using CCW. i have made this kind of code with variant, but it was slow.. for example because i have to make variant...
11
by: minishilpi | last post by:
I have a question - I have this code below to send an email and I have referenced the Microsoft CDO Library 2000. It doesn't throw any exception in the console window. It goes throughout the code...
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.