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

C#

 
QuestionSave DataGridView changes to database through multiple layers Pin
anthasaurus4-Aug-10 0:45
anthasaurus4-Aug-10 0:45 
AnswerRe: Save DataGridView changes to database through multiple layers Pin
Luc Pattyn4-Aug-10 1:45
sitebuilderLuc Pattyn4-Aug-10 1:45 
GeneralRe: Save DataGridView changes to database through multiple layers Pin
anthasaurus4-Aug-10 1:51
anthasaurus4-Aug-10 1:51 
QuestionWindows Form (C#.net) Pin
onecomputerguy4-Aug-10 0:36
onecomputerguy4-Aug-10 0:36 
AnswerRe: Windows Form (C#.net) Pin
OriginalGriff4-Aug-10 1:04
mveOriginalGriff4-Aug-10 1:04 
QuestionHello Sir i am muthu from kumbakonam Pin
Muthumca3-Aug-10 21:24
Muthumca3-Aug-10 21:24 
GeneralRe: Hello Sir i am muthu from kumbakonam Pin
OriginalGriff3-Aug-10 21:56
mveOriginalGriff3-Aug-10 21:56 
QuestionCall a function from a dynamically loaded C dll [Answered] Pin
Bernhard Hiller3-Aug-10 19:47
Bernhard Hiller3-Aug-10 19:47 
Hi there,
when we want to use a function from a C dll, we have to declare it like:
[DllImport(ThirdPartyDll)]
private static extern int SomeFunction(string Param1, and so on);

Now, ThirdParty provides a row of dlls with all of them implementing that SomeFunction with the same signature (only some interenal parameters differ leading to different results). We want our users to select the dll they want to use for that purpose. That means, ThirdPartyDll in [DllImport(ThirdPartyDll)] must become a variable instead of a constant. But C# does not allow a variable at the DllImport declaration.
In old C++, that's possible, I do not remember the exact way, there was some use of function pointers.
But this is a program written in C# (.Net 2.0). How can we do that here?
Looking forward to your hints.
Bernhard
AnswerRe: Call a function from a dynamically loaded C dll Pin
Gonzalo Cao3-Aug-10 20:40
Gonzalo Cao3-Aug-10 20:40 
GeneralRe: Call a function from a dynamically loaded C dll Pin
Bernhard Hiller3-Aug-10 21:02
Bernhard Hiller3-Aug-10 21:02 
AnswerRe: Call a function from a dynamically loaded C dll PinPopular
Alan N3-Aug-10 23:37
Alan N3-Aug-10 23:37 
GeneralRe: Call a function from a dynamically loaded C dll Pin
Bernhard Hiller4-Aug-10 2:11
Bernhard Hiller4-Aug-10 2:11 
GeneralRe: Call a function from a dynamically loaded C dll Pin
Phil J Pearson4-Aug-10 3:24
Phil J Pearson4-Aug-10 3:24 
QuestionRe: Call a function from a dynamically loaded C dll Pin
Gonzalo Cao4-Aug-10 20:28
Gonzalo Cao4-Aug-10 20:28 
AnswerRe: Call a function from a dynamically loaded C dll Pin
Bernhard Hiller4-Aug-10 21:19
Bernhard Hiller4-Aug-10 21:19 
GeneralRe: Call a function from a dynamically loaded C dll Pin
Gonzalo Cao4-Aug-10 22:12
Gonzalo Cao4-Aug-10 22:12 
QuestionHow to change a theam in c# ( winform ) Pin
Krishna Varadharajan3-Aug-10 19:34
Krishna Varadharajan3-Aug-10 19:34 
GeneralRe: How to change a theam in c# ( winform ) Pin
Łukasz Nowakowski3-Aug-10 22:38
Łukasz Nowakowski3-Aug-10 22:38 
GeneralRe: How to change a theam in c# ( winform ) Pin
Smithers-Jones4-Aug-10 1:19
Smithers-Jones4-Aug-10 1:19 
GeneralRe: How to change a theam in c# ( winform ) Pin
Łukasz Nowakowski4-Aug-10 1:28
Łukasz Nowakowski4-Aug-10 1:28 
QuestionPls help! how to prevent user to delete prefix value in my texbox Pin
crisjala3-Aug-10 19:29
crisjala3-Aug-10 19:29 
AnswerRe: Pls help! how to prevent user to delete prefix value in my texbox Pin
Gerry Schmitz3-Aug-10 19:46
mveGerry Schmitz3-Aug-10 19:46 
AnswerRe: Pls help! how to prevent user to delete prefix value in my texbox Pin
OriginalGriff3-Aug-10 22:03
mveOriginalGriff3-Aug-10 22:03 
QuestionCheck whether value is there in a column table Pin
seeism3-Aug-10 19:06
seeism3-Aug-10 19:06 
AnswerRe: Check whether value is there in a column table Pin
seeism3-Aug-10 21:03
seeism3-Aug-10 21:03 

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.