473,480 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DLLImports

Hi Folks,

I want to import a Windows32 class library that utilizes callback
functions - but I want to do all my coding in C#. Is there any way to wire
up a dll import to callback to, I'd guess, a C# delegate ?

Rein
Nov 16 '05 #1
1 1771
Traditionally, the Win32 DLL would accept a window handle that messages are
sent to and this is the same when calling Win32 from C#. Pass the HWnd
parameter of a form to the DLL and then override the WindProc in the form.
"Rein Petersen" <rm********@bogus.hotmail.com> wrote in message
news:OG**************@TK2MSFTNGP12.phx.gbl...
Hi Folks,

I want to import a Windows32 class library that utilizes callback
functions - but I want to do all my coding in C#. Is there any way to wire
up a dll import to callback to, I'd guess, a C# delegate ?

Rein

Nov 16 '05 #2

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

Similar topics

1
1311
by: jennifereden.price | last post by:
Hi, I have the following function in a project that implements a shell extension. This function shows all the files that the users has selected and attempts to determine whether it is a...
2
4534
by: Nuno Magalhaes | last post by:
Hello all, Below I have a function that captures a packet and sends that packet to a Receive function (wether it is sent or received). I'm asking what functions should I use (what imports...
6
1353
by: Daren Hawes | last post by:
Hi, My web host has a low security setting on the shared .net server I use. I cannot use third party dll's or install assemblies in the GAC. All I need to do is verify that a FTP login is...
2
2373
by: Robin Tucker | last post by:
I need to use OleSetClipboard in my VB.NET application. Unfortunately, when I do the result returned is -2147221008 (CoInitialise has not been called). As I am using OleSetClipboard from a thread...
0
1127
by: Robin Tucker | last post by:
I'm going to kindof restart this thread, because its going up in the list (on my browser anyway). I'm still not able to call OleSetClipboard from within my thread in my VB application. As a...
2
5724
by: Howard Kaikow | last post by:
In a C# program, I find public static extern bool ShowWindow(int hwnd, int nCmdShow); which I converted to <DllImport("user32.dll")> _ Public Function ShowWindow(ByVal hwnd As Integer,...
0
4067
by: lushdog | last post by:
Hi, i'm writing a shell extension in c# that will add two menu's to the right-click menu of explorer if any file is selected, i.e. it's registered in the * section of Classes in the registry. ...
0
3242
by: lushdog | last post by:
Hi, i'm having a little problem with my context menu handler. Basically if i select multiple files and right-click OPEN or EDIT, it uses my context menu to open it. It is because i am missing this...
7
3236
by: SpotNet | last post by:
Hello NewsGroup, Reading up on Generics in the .NET Framework 2.0 using C# 2005 (SP1), I have a question on the application of Generics. Knowingly, Generic classes are contained in the...
9
5187
by: zman77 | last post by:
Hi. How do I use gcc to compile C code into a .dll file that can be used by my C# project? The problem I am faced with is this: I have C code compiled with gcc. I tried making a new C++ project...
0
6912
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
7052
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,...
1
6744
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
6981
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
5348
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,...
1
4790
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
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3000
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
188
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.