Click here to Skip to main content
15,880,796 members
Home / Discussions / C#
   

C#

 
AnswerRe: Bitmap to BitmapImage Conversion Not Working - WPF Pin
V.31-Mar-16 3:42
professionalV.31-Mar-16 3:42 
Questionworking with pixels Pin
Hira Khalid29-Mar-16 3:16
Hira Khalid29-Mar-16 3:16 
AnswerRe: working with pixels Pin
OriginalGriff29-Mar-16 3:33
mveOriginalGriff29-Mar-16 3:33 
AnswerRe: working with pixels Pin
Dave Kreskowiak29-Mar-16 3:45
mveDave Kreskowiak29-Mar-16 3:45 
AnswerRe: working with pixels Pin
Eddy Vluggen29-Mar-16 4:06
professionalEddy Vluggen29-Mar-16 4:06 
QuestionRe: working with pixels Pin
Richard MacCutchan29-Mar-16 4:25
mveRichard MacCutchan29-Mar-16 4:25 
GeneralRe: working with pixels Pin
harold aptroot29-Mar-16 9:34
harold aptroot29-Mar-16 9:34 
QuestionAccessing unmanaged class from C# Pin
Leif Simon Goodwin29-Mar-16 1:22
Leif Simon Goodwin29-Mar-16 1:22 
I have a DLL which exports two methods, getSc and releasesSc. The first returns a handle which is a pointer to a class instance. I wish to call the methods on that class instance. Unfortunately that class is not exported as dumpbin proves:

1 0 00001040 ??4CSmartCard@XXXXXDLLNamespace@@QAEAAV01@ABV01@@Z
2 1 00003E40 _getSc@0
3 2 00003E70 _releaseSc@0
4 3 00003E40 getSc
5 4 00003E70 releaseSc

Is there a neat way to call the method on that class instance from C#/.Net?

The only way I can think of is to create an unmanaged DLL which wraps the other DLL. Thus the second DLL would expose functions to call into the class instance.
QuestionRe: Accessing unmanaged class from C# Pin
Richard MacCutchan29-Mar-16 1:42
mveRichard MacCutchan29-Mar-16 1:42 
AnswerRe: Accessing unmanaged class from C# Pin
Leif Simon Goodwin29-Mar-16 4:17
Leif Simon Goodwin29-Mar-16 4:17 
GeneralRe: Accessing unmanaged class from C# Pin
Richard MacCutchan29-Mar-16 4:32
mveRichard MacCutchan29-Mar-16 4:32 
GeneralRe: Accessing unmanaged class from C# Pin
Leif Simon Goodwin29-Mar-16 5:10
Leif Simon Goodwin29-Mar-16 5:10 
AnswerRe: Accessing unmanaged class from C# Pin
Garth J Lancaster29-Mar-16 1:47
professionalGarth J Lancaster29-Mar-16 1:47 
GeneralRe: Accessing unmanaged class from C# Pin
Leif Simon Goodwin29-Mar-16 1:49
Leif Simon Goodwin29-Mar-16 1:49 
AnswerReply # 2 Pin
Garth J Lancaster29-Mar-16 2:03
professionalGarth J Lancaster29-Mar-16 2:03 
AnswerRe: Accessing unmanaged class from C# Pin
Bernhard Hiller31-Mar-16 0:39
Bernhard Hiller31-Mar-16 0:39 
GeneralRe: Accessing unmanaged class from C# Pin
Leif Simon Goodwin3-Apr-16 21:16
Leif Simon Goodwin3-Apr-16 21:16 
QuestionHow to select Windows explorer's 'Sort by' type programmatically Pin
srikrishnathanthri28-Mar-16 23:32
srikrishnathanthri28-Mar-16 23:32 
AnswerRe: How to select Windows explorer's 'Sort by' type programmatically Pin
Garth J Lancaster29-Mar-16 0:05
professionalGarth J Lancaster29-Mar-16 0:05 
GeneralRe: How to select Windows explorer's 'Sort by' type programmatically Pin
srikrishnathanthri29-Mar-16 0:14
srikrishnathanthri29-Mar-16 0:14 
QuestionWPF and Unmanaged Liberaries Pin
AmbiguousName28-Mar-16 21:16
AmbiguousName28-Mar-16 21:16 
QuestionRe: WPF and Unmanaged Liberaries Pin
Richard MacCutchan28-Mar-16 21:51
mveRichard MacCutchan28-Mar-16 21:51 
AnswerRe: WPF and Unmanaged Liberaries Pin
Pete O'Hanlon28-Mar-16 21:55
mvePete O'Hanlon28-Mar-16 21:55 
QuestionValidate form with Ajaxoptions and unobtrusive in partial view Pin
Member 1204569228-Mar-16 9:17
Member 1204569228-Mar-16 9:17 
AnswerRe: Validate form with Ajaxoptions and unobtrusive in partial view Pin
Richard MacCutchan28-Mar-16 21:50
mveRichard MacCutchan28-Mar-16 21:50 

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.