Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
Questioncontrol in another form Pin
m.m._200711-Oct-06 12:31
m.m._200711-Oct-06 12:31 
AnswerRe: control in another form Pin
e-laj11-Oct-06 12:58
e-laj11-Oct-06 12:58 
GeneralRe: control in another form Pin
m.m._200711-Oct-06 13:08
m.m._200711-Oct-06 13:08 
GeneralRe: control in another form Pin
Anthony Mushrow11-Oct-06 14:40
professionalAnthony Mushrow11-Oct-06 14:40 
AnswerRe: control in another form Pin
mnvkng7611-Oct-06 19:04
mnvkng7611-Oct-06 19:04 
AnswerRe: control in another form Pin
quiteSmart11-Oct-06 19:56
quiteSmart11-Oct-06 19:56 
QuestionHooking into old DLL Pin
rahvyn611-Oct-06 11:21
rahvyn611-Oct-06 11:21 
AnswerRe: Hooking into old DLL Pin
Judah Gabriel Himango11-Oct-06 13:16
sponsorJudah Gabriel Himango11-Oct-06 13:16 
First, determine whether it's a COM dll. If it is, just go into your Visual Studio project, right-click on the References folder, and Add Reference to the the COM dll.

What's happening under the hood is that the tlbimp tool included in the .NET SDK is generating a .NET wrapper over your COM dll automagically.

Now, if it's not a COM dll, if it's just a standard C/C++ dynamic link library, you have 2 options. One is to use P/Invoke to call functions in the dll. If you want to do that, see this page[^].

And the last option is more work, but ultimately faster and cleaner than using P/Invoke: build a seperate C++/CLI (managed C++) dll that talks to the old C dll, and exposes its functionality through .NET functions. Your C# code can talk to the C++/CLI dll natively, as if it were written in C#. If you want to do that, look at this article[^].


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: For Christians: The Significance of Yom Teruah
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


GeneralRe: Hooking into old DLL Pin
rahvyn612-Oct-06 2:32
rahvyn612-Oct-06 2:32 
GeneralRe: Hooking into old DLL Pin
Judah Gabriel Himango12-Oct-06 6:16
sponsorJudah Gabriel Himango12-Oct-06 6:16 
QuestionOpen external application in form? Pin
JohnBond31111-Oct-06 11:20
JohnBond31111-Oct-06 11:20 
AnswerRe: Open external application in form? Pin
Anthony Mushrow11-Oct-06 14:41
professionalAnthony Mushrow11-Oct-06 14:41 
AnswerRe: Open external application in form? Pin
Amar Chaudhary11-Oct-06 15:07
Amar Chaudhary11-Oct-06 15:07 
QuestionSetting readonly status of a datagrid on a row by row basis? Pin
Dan Neely11-Oct-06 9:53
Dan Neely11-Oct-06 9:53 
QuestionC# Class Library - Updating Application Settings Pin
birdman123411-Oct-06 9:42
birdman123411-Oct-06 9:42 
AnswerRe: C# Class Library - Updating Application Settings Pin
mikanu11-Oct-06 10:37
mikanu11-Oct-06 10:37 
GeneralRe: C# Class Library - Updating Application Settings Pin
birdman123411-Oct-06 11:05
birdman123411-Oct-06 11:05 
Questionband Limit Ethernet Pin
Luciano Marques Inacio11-Oct-06 9:36
Luciano Marques Inacio11-Oct-06 9:36 
QuestionDataGrid resizable with changing column numbers Pin
Calma11-Oct-06 8:45
Calma11-Oct-06 8:45 
QuestionKey Board Specifications (Key Codes) Pin
Syed Shahid Hussain11-Oct-06 7:45
Syed Shahid Hussain11-Oct-06 7:45 
AnswerRe: Key Board Specifications (Key Codes) Pin
led mike11-Oct-06 8:08
led mike11-Oct-06 8:08 
GeneralRe: Key Board Specifications (Key Codes) Pin
Dan Neely11-Oct-06 8:27
Dan Neely11-Oct-06 8:27 
GeneralRe: Key Board Specifications (Key Codes) Pin
Syed Shahid Hussain11-Oct-06 8:36
Syed Shahid Hussain11-Oct-06 8:36 
GeneralRe: Key Board Specifications (Key Codes) Pin
Dave Kreskowiak11-Oct-06 9:12
mveDave Kreskowiak11-Oct-06 9:12 
GeneralRe: Key Board Specifications (Key Codes) Pin
Dan Neely11-Oct-06 9:40
Dan Neely11-Oct-06 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.