Click here to Skip to main content
15,887,898 members
Home / Discussions / C#
   

C#

 
QuestionUnmanaged Dlls ? Pin
veselin_iordanov14-Feb-04 15:40
veselin_iordanov14-Feb-04 15:40 
AnswerRe: Unmanaged Dlls ? Pin
leppie14-Feb-04 19:51
leppie14-Feb-04 19:51 
GeneralRe: Unmanaged Dlls ? Pin
veselin_iordanov15-Feb-04 6:57
veselin_iordanov15-Feb-04 6:57 
AnswerRe: Unmanaged Dlls ? Pin
Heath Stewart16-Feb-04 5:13
protectorHeath Stewart16-Feb-04 5:13 
GeneralRe: Unmanaged Dlls ? Pin
veselin_iordanov16-Feb-04 9:21
veselin_iordanov16-Feb-04 9:21 
GeneralRe: Unmanaged Dlls ? Pin
Heath Stewart16-Feb-04 9:26
protectorHeath Stewart16-Feb-04 9:26 
GeneralRe: Unmanaged Dlls ? Pin
veselin_iordanov16-Feb-04 9:32
veselin_iordanov16-Feb-04 9:32 
GeneralRe: Unmanaged Dlls ? Pin
Heath Stewart16-Feb-04 9:51
protectorHeath Stewart16-Feb-04 9:51 
Next time, please use the <pre> tags around your code.

If it won't compile, that's because ASCII is not an enumeration member of the CharSet enum. The compiler error would tell you this.

Also, the endecode.dll library must be in your PATH environment variable somewhere (like %WINDIR%\ and %WINDIR%\System32, etc.), or in the application directory (from where the application is run, or whatever is set to the working directory). P/Invoking code from an unmanaged DLL requires that the DLL can still be found. In this case, usually, you'll get a FileNotFoundException or some other runtime exception.

Since your VB code works, there's really no reason to post your C/C++ code.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Unmanaged Dlls ? Pin
veselin_iordanov16-Feb-04 9:56
veselin_iordanov16-Feb-04 9:56 
GeneralRe: Unmanaged Dlls ? Pin
Heath Stewart16-Feb-04 10:30
protectorHeath Stewart16-Feb-04 10:30 
GeneralRe: Unmanaged Dlls ? Pin
veselin_iordanov16-Feb-04 12:27
veselin_iordanov16-Feb-04 12:27 
GeneralRe: Unmanaged Dlls ? Pin
Heath Stewart17-Feb-04 2:41
protectorHeath Stewart17-Feb-04 2:41 
GeneralChanging Control Locations In C# Pin
Eric Houser14-Feb-04 12:16
Eric Houser14-Feb-04 12:16 
GeneralRe: Changing Control Locations In C# Pin
Colin Angus Mackay14-Feb-04 13:27
Colin Angus Mackay14-Feb-04 13:27 
GeneralRe: Changing Control Locations In C# Pin
Bo Hunter15-Feb-04 7:38
Bo Hunter15-Feb-04 7:38 
GeneralRichTextBox, Scroll Bars and VScroll Event Pin
je_gonzalez14-Feb-04 11:03
je_gonzalez14-Feb-04 11:03 
GeneralCommunication between webservice and win application Pin
Anonymous14-Feb-04 10:59
Anonymous14-Feb-04 10:59 
GeneralRe: Communication between webservice and win application Pin
Mazdak14-Feb-04 19:49
Mazdak14-Feb-04 19:49 
GeneralRe: Communication between webservice and win application Pin
Anonymous14-Feb-04 21:26
Anonymous14-Feb-04 21:26 
GeneralRe: Communication between webservice and win application Pin
Mazdak14-Feb-04 21:30
Mazdak14-Feb-04 21:30 
GeneralRe: Communication between webservice and win application Pin
naxos15-Feb-04 20:10
naxos15-Feb-04 20:10 
GeneralNeed Help In Socket Programming Pin
Amoola14-Feb-04 10:15
Amoola14-Feb-04 10:15 
GeneralRe: Need Help In Socket Programming Pin
Colin Angus Mackay14-Feb-04 10:53
Colin Angus Mackay14-Feb-04 10:53 
GeneralShellnotifications Pin
Lesuran14-Feb-04 9:56
Lesuran14-Feb-04 9:56 
QuestionHow to create an combobox inside IDE's property editor ? Pin
Andres Coder14-Feb-04 8:34
Andres Coder14-Feb-04 8:34 

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.