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

C#

 
GeneralRe: How can I use a C++ struct from a C# app? Pin
verence33310-Sep-08 1:14
verence33310-Sep-08 1:14 
GeneralRe: How can I use a C++ struct from a C# app? Pin
leppie10-Sep-08 1:19
leppie10-Sep-08 1:19 
GeneralRe: How can I use a C++ struct from a C# app? Pin
verence33310-Sep-08 1:52
verence33310-Sep-08 1:52 
AnswerRe: How can I use a C++ struct from a C# app? Pin
Gideon Engelberth10-Sep-08 3:28
Gideon Engelberth10-Sep-08 3:28 
GeneralRe: How can I use a C++ struct from a C# app? Pin
verence33310-Sep-08 3:45
verence33310-Sep-08 3:45 
GeneralRe: How can I use a C++ struct from a C# app? Pin
verence33310-Sep-08 21:05
verence33310-Sep-08 21:05 
AnswerRe: How can I use a C++ struct from a C# app? Pin
Alan Balkany10-Sep-08 3:57
Alan Balkany10-Sep-08 3:57 
GeneralRe: How can I use a C++ struct from a C# app? Pin
verence33310-Sep-08 4:20
verence33310-Sep-08 4:20 
Thank you, Alan. I tried to write the equivalent struct, but my problem was when translating a char[100]. C# does not allow me to make structures with fields that have been initialized to a size. So, if I write this inside a struct in C#:

public byte[] bytes = new byte[100];

I have the following error: "cannot have instance field initializers in structs".

Thanks for the rest of your message, I'll test my program as you suggest. In fact, I tried to do this before, but I couldn't use sizeof() and forgot it; didn't knew I could use it in unsafe mode.
GeneralRe: How can I use a C++ struct from a C# app? Pin
Alan Balkany10-Sep-08 4:43
Alan Balkany10-Sep-08 4:43 
GeneralRe: How can I use a C++ struct from a C# app? Pin
verence33310-Sep-08 5:27
verence33310-Sep-08 5:27 
QuestionWhat's difference between a DLL file & an assembly file ? Pin
Mohammad Dayyan10-Sep-08 0:14
Mohammad Dayyan10-Sep-08 0:14 
AnswerRe: What's difference between a DLL file & an assembly file ? Pin
blackjack215010-Sep-08 0:25
blackjack215010-Sep-08 0:25 
GeneralRe: What's difference between a DLL file & an assembly file ? Pin
Mohammad Dayyan10-Sep-08 0:30
Mohammad Dayyan10-Sep-08 0:30 
GeneralRe: What's difference between a DLL file & an assembly file ? Pin
leppie10-Sep-08 0:32
leppie10-Sep-08 0:32 
GeneralRe: What's difference between a DLL file & an assembly file ? Pin
Mohammad Dayyan10-Sep-08 0:35
Mohammad Dayyan10-Sep-08 0:35 
GeneralRe: What's difference between a DLL file & an assembly file ? Pin
leppie10-Sep-08 0:41
leppie10-Sep-08 0:41 
GeneralRe: What's difference between a DLL file & an assembly file ? Pin
Giorgi Dalakishvili10-Sep-08 0:42
mentorGiorgi Dalakishvili10-Sep-08 0:42 
GeneralRe: What's difference between a DLL file & an assembly file ? Pin
Mohammad Dayyan10-Sep-08 0:46
Mohammad Dayyan10-Sep-08 0:46 
GeneralRe: What's difference between a DLL file & an assembly file ? Pin
Giorgi Dalakishvili10-Sep-08 0:49
mentorGiorgi Dalakishvili10-Sep-08 0:49 
GeneralRe: What's difference between a DLL file & an assembly file ? Pin
leppie10-Sep-08 0:58
leppie10-Sep-08 0:58 
AnswerRe: What's difference between a DLL file & an assembly file ? Pin
g_amol10-Sep-08 0:58
g_amol10-Sep-08 0:58 
AnswerRe: What's difference between a DLL file & an assembly file ? Pin
Mark Salsbery10-Sep-08 6:15
Mark Salsbery10-Sep-08 6:15 
QuestionEEPROM Smart Card Pin
asp.net.csharp.ir9-Sep-08 23:58
asp.net.csharp.ir9-Sep-08 23:58 
AnswerRe: EEPROM Smart Card Pin
leppie10-Sep-08 0:26
leppie10-Sep-08 0:26 
RantRe: EEPROM Smart Card Pin
lisan_al_ghaib10-Sep-08 0:33
lisan_al_ghaib10-Sep-08 0:33 

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.