Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
GeneralRe: managed c++ vs. c# Pin
Judah Gabriel Himango16-Mar-04 4:56
sponsorJudah Gabriel Himango16-Mar-04 4:56 
GeneralRe: managed c++ vs. c# Pin
Heath Stewart16-Mar-04 5:06
protectorHeath Stewart16-Mar-04 5:06 
GeneralRe: managed c++ vs. c# Pin
Judah Gabriel Himango16-Mar-04 5:38
sponsorJudah Gabriel Himango16-Mar-04 5:38 
GeneralRe: managed c++ vs. c# Pin
Heath Stewart16-Mar-04 4:59
protectorHeath Stewart16-Mar-04 4:59 
GeneralRe: managed c++ vs. c# Pin
Nemanja Trifunovic16-Mar-04 5:17
Nemanja Trifunovic16-Mar-04 5:17 
GeneralRe: managed c++ vs. c# Pin
Jeremy Kimball16-Mar-04 6:34
Jeremy Kimball16-Mar-04 6:34 
GeneralDllImport Without Attribute Pin
Werdna16-Mar-04 4:06
Werdna16-Mar-04 4:06 
GeneralRe: DllImport Without Attribute Pin
Heath Stewart16-Mar-04 4:19
protectorHeath Stewart16-Mar-04 4:19 
No, the compiler does link it, the runtime does. All the compiler does is attribute the declaration with the information you provide in the DllImportAttribute for an extern'd method. The runtime (CLR) uses the DllImportAttribute metadata to link against the native API at runtime.

If you're looking for something like LoadLibrary and GetProcAddress, then P/Invoke those methods and use them accordingly. You should be able to declare a delegate that the GetProcAddress P/Invoked method would return, but I've never tried this. Seems like with some fanagling you should be able to get this to work. Otherwise, create a native DLL that you would ship with your assembly (in a resolvable path, of course) that takes a string and some params or something then does all the loading and resolving itself.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: DllImport Without Attribute Pin
Jeremy Kimball16-Mar-04 6:46
Jeremy Kimball16-Mar-04 6:46 
Generaladd Xml in C# Pin
bertcox16-Mar-04 2:37
bertcox16-Mar-04 2:37 
GeneralRe: add Xml in C# Pin
rull16-Mar-04 3:34
rull16-Mar-04 3:34 
GeneralRe: add Xml in C# Pin
Philip Fitzsimons16-Mar-04 3:38
Philip Fitzsimons16-Mar-04 3:38 
GeneralRe: add Xml in C# Pin
bertcox16-Mar-04 4:28
bertcox16-Mar-04 4:28 
GeneralRe: add Xml in C# Pin
Philip Fitzsimons16-Mar-04 4:30
Philip Fitzsimons16-Mar-04 4:30 
GeneralRe: add Xml in C# Pin
bertcox16-Mar-04 4:43
bertcox16-Mar-04 4:43 
GeneralRe: add Xml in C# Pin
Philip Fitzsimons16-Mar-04 4:49
Philip Fitzsimons16-Mar-04 4:49 
GeneralRe: add Xml in C# Pin
bertcox16-Mar-04 4:59
bertcox16-Mar-04 4:59 
GeneralRe: add Xml in C# Pin
Philip Fitzsimons16-Mar-04 5:01
Philip Fitzsimons16-Mar-04 5:01 
GeneralRe: add Xml in C# Pin
bertcox16-Mar-04 5:07
bertcox16-Mar-04 5:07 
GeneralRe: add Xml in C# Pin
Philip Fitzsimons16-Mar-04 5:13
Philip Fitzsimons16-Mar-04 5:13 
GeneralRe: add Xml in C# Pin
bertcox16-Mar-04 5:18
bertcox16-Mar-04 5:18 
GeneralRe: add Xml in C# Pin
Philip Fitzsimons16-Mar-04 5:22
Philip Fitzsimons16-Mar-04 5:22 
GeneralRe: add Xml in C# Pin
bertcox16-Mar-04 5:27
bertcox16-Mar-04 5:27 
GeneralSorting DataGrid (Data is from DataSet from XML) Pin
jazzle16-Mar-04 2:32
jazzle16-Mar-04 2:32 
GeneralRe: Sorting DataGrid (Data is from DataSet from XML) Pin
Dave Kreskowiak16-Mar-04 2:45
mveDave Kreskowiak16-Mar-04 2:45 

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.