Click here to Skip to main content
15,867,568 members
Home / Discussions / C#
   

C#

 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 10:03
RussBus19-Jun-07 10:03 
GeneralRe: File Open Status/Access Pin
Giorgi Dalakishvili19-Jun-07 10:27
mentorGiorgi Dalakishvili19-Jun-07 10:27 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 10:47
RussBus19-Jun-07 10:47 
GeneralRe: File Open Status/Access Pin
Abisodun19-Jun-07 11:30
Abisodun19-Jun-07 11:30 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 11:42
RussBus19-Jun-07 11:42 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 11:53
RussBus19-Jun-07 11:53 
GeneralRe: File Open Status/Access Pin
Abisodun19-Jun-07 14:12
Abisodun19-Jun-07 14:12 
Questionhow to call the dll writed by c in c# Pin
anuo0619-Jun-07 6:20
anuo0619-Jun-07 6:20 
Hi,every one,I have a problem in C# about calling dll writed by c, like the following,I can't get the correct answer.who can tell me why?Frown | :(
Here is the code about the dll's header file:

void _stdcall chuck(string);
void _stdcall wolfhome(string);
void _stdcall wolfsist(string);
void mein(char* directx11);
char* deme();
void inshuxiyin(char* directx11);
char* deshuxiyin();
char* _stdcall deshumil();
char* _stdcall shuredel();
char* _stdcall getDecryptStr();
void _stdcall wolfhomeseal(string);
void _stdcall wolfsistseal(string);



Here is the code about c#

[DllImport("bear.dll",CallingConvention=CallingConvention.StdCall)]
public static extern void chuck(string s);
[DllImport("bear.dll",CallingConvention=CallingConvention.StdCall)]
public static extern void wolfhomeseal(string s);
[DllImport("bear.dll")]
public static extern void wolfsistseal([MarshalAs(UnmanagedType.LPStr)] string s);
[DllImport("bear.dll",CallingConvention=CallingConvention.StdCall)]
public static extern string deshumil();
[DllImport("bear.dll")]
public static extern string shuredel();
[DllImport("bear.dll")]
public static extern string getDecryptStr();


These are the methods I have tried,but none works fine,what problem exitsts?
Waiting for your answer,thanks!
AnswerRe: how to call the dll writed by c in c# Pin
Giorgi Dalakishvili19-Jun-07 6:55
mentorGiorgi Dalakishvili19-Jun-07 6:55 
AnswerRe: how to call the dll writed by c in c# Pin
Luc Pattyn19-Jun-07 7:02
sitebuilderLuc Pattyn19-Jun-07 7:02 
GeneralRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 8:04
anuo0619-Jun-07 8:04 
GeneralRe: how to call the dll writed by c in c# Pin
Luc Pattyn19-Jun-07 12:18
sitebuilderLuc Pattyn19-Jun-07 12:18 
GeneralRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 19:04
anuo0619-Jun-07 19:04 
GeneralRe: how to call the dll writed by c in c# Pin
Luc Pattyn20-Jun-07 1:26
sitebuilderLuc Pattyn20-Jun-07 1:26 
AnswerRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 8:10
anuo0619-Jun-07 8:10 
AnswerRe: how to call the dll writed by c in c# Pin
anuo0619-Jun-07 8:13
anuo0619-Jun-07 8:13 
QuestionNeed GUI help, to child or not child? Pin
Skcheng19-Jun-07 6:07
Skcheng19-Jun-07 6:07 
AnswerRe: Need GUI help, to child or not child? Pin
Luc Pattyn19-Jun-07 6:16
sitebuilderLuc Pattyn19-Jun-07 6:16 
QuestionRe: Need GUI help, to child or not child? Pin
Skcheng19-Jun-07 6:59
Skcheng19-Jun-07 6:59 
AnswerRe: Need GUI help, to child or not child? Pin
Luc Pattyn19-Jun-07 7:39
sitebuilderLuc Pattyn19-Jun-07 7:39 
GeneralRe: Need GUI help, to child or not child? Pin
Skcheng19-Jun-07 8:11
Skcheng19-Jun-07 8:11 
AnswerRe: Need GUI help, to child or not child? Pin
Jon Hulatt19-Jun-07 10:18
Jon Hulatt19-Jun-07 10:18 
Questionattach serial command to button [modified] Pin
dirtylarry19-Jun-07 6:06
dirtylarry19-Jun-07 6:06 
AnswerRe: attach serial command to button Pin
dirtylarry20-Jun-07 12:57
dirtylarry20-Jun-07 12:57 
Questionno value returned Pin
arkiboys19-Jun-07 6:05
arkiboys19-Jun-07 6:05 

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.