Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rectangle problem Pin
mav.northwind29-Jun-05 20:46
mav.northwind29-Jun-05 20:46 
GeneralMDI Application Pin
deep729-Jun-05 19:45
deep729-Jun-05 19:45 
GeneralRe: MDI Application Pin
sreejith ss nair29-Jun-05 21:39
sreejith ss nair29-Jun-05 21:39 
GeneralCollection Pin
Rassul Yunussov29-Jun-05 19:13
Rassul Yunussov29-Jun-05 19:13 
GeneralRe: Collection Pin
Christian Graus29-Jun-05 19:23
protectorChristian Graus29-Jun-05 19:23 
GeneralOleDbTransaction (rollback) Pin
myNameIsRon29-Jun-05 19:12
myNameIsRon29-Jun-05 19:12 
GeneralTrouble with marshalling structure Pin
Josh Lindenmuth29-Jun-05 18:42
Josh Lindenmuth29-Jun-05 18:42 
GeneralRe: Trouble with marshalling structure Pin
Bojan Rajkovic30-Jun-05 15:50
Bojan Rajkovic30-Jun-05 15:50 
What do you mean it's not being marshaled correctly?
As in it won't compile?
As in when you try to use the structure it behaves unexpectedly?

Did you try using the MasrhalAs(UnmanagedType.R4) or MarshalAs(UnmanagedType.R8) properties? As I recall, a C double is smaller than a C# double or something to that effect. (The reason I think this is because for some reason I think that a C long is actually 4 bytes while a C# long is 8 bytes)

So try adding a MarshalAs(UnmanagedType.R4) to your Double. (R4 and R8 marshal floating-point numbers, I2, I4, and I8 marshal integers)
Generalfunction template Pin
BicycleTheif29-Jun-05 17:55
BicycleTheif29-Jun-05 17:55 
GeneralRe: function template Pin
Christian Graus29-Jun-05 18:12
protectorChristian Graus29-Jun-05 18:12 
GeneralI have trouble with fgets function in C code Pin
dinh van hai29-Jun-05 17:20
dinh van hai29-Jun-05 17:20 
GeneralRe: I have trouble with fgets function in C code Pin
Christian Graus29-Jun-05 18:14
protectorChristian Graus29-Jun-05 18:14 
GeneralRun another console application in my console application Pin
eggie529-Jun-05 13:08
eggie529-Jun-05 13:08 
GeneralRe: Run another console application in my console application Pin
Matt Gerrans29-Jun-05 14:37
Matt Gerrans29-Jun-05 14:37 
GeneralRe: Run another console application in my console application Pin
eggie530-Jun-05 6:51
eggie530-Jun-05 6:51 
GeneralRe: Run another console application in my console application Pin
leppie30-Jun-05 7:45
leppie30-Jun-05 7:45 
GeneralRe: Run another console application in my console application Pin
Matt Gerrans30-Jun-05 7:55
Matt Gerrans30-Jun-05 7:55 
GeneralFullRowSelect in DataGrid Pin
Jassim Rahma29-Jun-05 11:52
Jassim Rahma29-Jun-05 11:52 
GeneralRe: FullRowSelect in DataGrid Pin
Hugo Migneron30-Jun-05 3:09
Hugo Migneron30-Jun-05 3:09 
GeneralHeader information in UDP Packet Pin
Hugo Migneron29-Jun-05 9:36
Hugo Migneron29-Jun-05 9:36 
Generalrunning g++ using process.start Pin
thepersonof29-Jun-05 8:31
thepersonof29-Jun-05 8:31 
GeneralRe: running g++ using process.start Pin
Judah Gabriel Himango29-Jun-05 8:44
sponsorJudah Gabriel Himango29-Jun-05 8:44 
GeneralRe: running g++ using process.start Pin
S. Senthil Kumar29-Jun-05 9:02
S. Senthil Kumar29-Jun-05 9:02 
GeneralRe: running g++ using process.start Pin
S. Senthil Kumar29-Jun-05 9:01
S. Senthil Kumar29-Jun-05 9:01 
GeneralRe: running g++ using process.start Pin
thepersonof29-Jun-05 9:54
thepersonof29-Jun-05 9:54 

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.