Click here to Skip to main content
15,921,643 members
Home / Discussions / C#
   

C#

 
QuestionDelete From registry using C# (like "regedit" ) Pin
Iftekhar Naim19-Jun-07 9:53
Iftekhar Naim19-Jun-07 9:53 
AnswerRe: Delete From registry using C# (like "regedit" ) Pin
Martin#19-Jun-07 10:13
Martin#19-Jun-07 10:13 
GeneralRe: Delete From registry using C# (like "regedit" ) Pin
Iftekhar Naim20-Jun-07 1:18
Iftekhar Naim20-Jun-07 1:18 
GeneralRe: Delete From registry using C# (like "regedit" ) Pin
Martin#20-Jun-07 1:20
Martin#20-Jun-07 1:20 
Questionimage problem xslt to excel Pin
ksrs19-Jun-07 8:06
ksrs19-Jun-07 8:06 
QuestionError building C# control library Pin
Richard Jones19-Jun-07 7:32
Richard Jones19-Jun-07 7:32 
AnswerRe: Error building C# control library Pin
Jon Hulatt19-Jun-07 10:12
Jon Hulatt19-Jun-07 10:12 
GeneralRe: Error building C# control library Pin
Richard Jones20-Jun-07 1:45
Richard Jones20-Jun-07 1:45 
QuestionCurrentTimestamp Pin
LCI19-Jun-07 7:12
LCI19-Jun-07 7:12 
AnswerRe: CurrentTimestamp Pin
Giorgi Dalakishvili19-Jun-07 7:22
mentorGiorgi Dalakishvili19-Jun-07 7:22 
JokeCool signature! Pin
Martin#19-Jun-07 9:29
Martin#19-Jun-07 9:29 
GeneralRe: Cool signature! [modified] Pin
Giorgi Dalakishvili19-Jun-07 10:01
mentorGiorgi Dalakishvili19-Jun-07 10:01 
GeneralRe: CurrentTimestamp Pin
Le centriste20-Jun-07 2:06
Le centriste20-Jun-07 2:06 
GeneralRe: CurrentTimestamp Pin
Giorgi Dalakishvili20-Jun-07 2:49
mentorGiorgi Dalakishvili20-Jun-07 2:49 
QuestionFile Open Status/Access Pin
RussBus19-Jun-07 7:10
RussBus19-Jun-07 7:10 
AnswerRe: File Open Status/Access Pin
Giorgi Dalakishvili19-Jun-07 7:27
mentorGiorgi Dalakishvili19-Jun-07 7:27 
GeneralRe: File Open Status/Access Pin
RussBus19-Jun-07 7:32
RussBus19-Jun-07 7:32 
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!

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.