Click here to Skip to main content
15,916,417 members
Home / Discussions / C#
   

C#

 
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 
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 
OK,

consuming a C# string in C/C++ is somewhat easier than producing a
C# string in C/C++ code.
and there is the matter of 8bit ANSI versus 16bit Unicode and maybe other
encodings.

Normal steps are:
a string input (a char* in C) should be declared string in C#
a string return value should be declared string in C# (even it is char* in C)
a string output (as a parameter) should be declared a StringBuilder in C#
(and it must have sufficient Capacity !)

I suggest you pick one case and publish actual code for it, both the C# side
and the C/C++ side, plus you mention exact symptoms (show the first few characters
or bytes in hex on both sides of the P/Invoke border.

Smile | :)




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 

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.