Click here to Skip to main content
15,919,245 members
Home / Discussions / C#
   

C#

 
Generalexpression evaluation Pin
khalouda23-Jul-05 0:07
khalouda23-Jul-05 0:07 
GeneralRe: expression evaluation Pin
S. Senthil Kumar23-Jul-05 0:35
S. Senthil Kumar23-Jul-05 0:35 
GeneralRe: expression evaluation Pin
khalouda23-Jul-05 3:13
khalouda23-Jul-05 3:13 
GeneralRe: expression evaluation Pin
Dario Solera24-Jul-05 10:55
Dario Solera24-Jul-05 10:55 
GeneralProblem in adding bool check column to datagrid. Pin
amrutajoshi22-Jul-05 23:13
amrutajoshi22-Jul-05 23:13 
GeneralRe: Problem in adding bool check column to datagrid. Pin
Srinivas Jonnalagadda23-Jul-05 7:55
Srinivas Jonnalagadda23-Jul-05 7:55 
GeneralRe: Problem in adding bool check column to datagrid. Pin
Wyxlwiis23-Jul-05 10:35
Wyxlwiis23-Jul-05 10:35 
GeneralMarshal.PtrToStructure gives gibberish Pin
EssOEss22-Jul-05 22:41
EssOEss22-Jul-05 22:41 
I'm doing some interop and passing a structure to managed code via an IntPtr.

I convert the structure to the IntPtr as follows, in a mixed-mode C++ program, which then passes it to the C# program:
System::IntPtr func(Event &e)<br />
{<br />
return __nogc new System::IntPtr(&e);<br />
}


I'm not too confident about my mixed-mode C++ skills, but I think that's right... right?

However, the data I get back from PtrToStructure gives me complete gibberish. It's not a member alignment problem either, because the data is supposed to be mostly nulls but I get numbers in the millions (Event contains mostly pointers to other structures).

What am I doing wrong?
GeneralRe: Marshal.PtrToStructure gives gibberish Pin
EssOEss23-Jul-05 9:04
EssOEss23-Jul-05 9:04 
GeneralInfragistics tutorials Pin
dhol22-Jul-05 21:41
dhol22-Jul-05 21:41 
Generali think re-draw listview's VScrollBar Pin
yanzhengguang22-Jul-05 20:15
yanzhengguang22-Jul-05 20:15 
GeneralRe: i think re-draw listview's VScrollBar Pin
yanzhengguang22-Jul-05 20:18
yanzhengguang22-Jul-05 20:18 
GeneralRe: i think re-draw listview's VScrollBar Pin
yanzhengguang22-Jul-05 20:21
yanzhengguang22-Jul-05 20:21 
GeneralRe: i think re-draw listview's VScrollBar Pin
yanzhengguang24-Jul-05 16:11
yanzhengguang24-Jul-05 16:11 
GeneralWinForm and Console - same time Pin
...---...22-Jul-05 12:50
...---...22-Jul-05 12:50 
GeneralRe: WinForm and Console - same time Pin
EssOEss22-Jul-05 20:51
EssOEss22-Jul-05 20:51 
Generaldraw something over all Pin
Sasuko22-Jul-05 11:48
Sasuko22-Jul-05 11:48 
GeneralRe: draw something over all Pin
Christian Graus22-Jul-05 12:18
protectorChristian Graus22-Jul-05 12:18 
GeneralGUI Automation Driver for C# Pin
AndyPicch22-Jul-05 11:43
AndyPicch22-Jul-05 11:43 
QuestionHow to use unmanaged callback from C#? Pin
EssOEss22-Jul-05 9:47
EssOEss22-Jul-05 9:47 
AnswerRe: How to use unmanaged callback from C#? Pin
Alomgir Miah22-Jul-05 10:04
Alomgir Miah22-Jul-05 10:04 
GeneralRe: How to use unmanaged callback from C#? Pin
EssOEss22-Jul-05 10:35
EssOEss22-Jul-05 10:35 
AnswerRe: How to use unmanaged callback from C#? Pin
leppie22-Jul-05 11:17
leppie22-Jul-05 11:17 
GeneralRe: How to use unmanaged callback from C#? Pin
EssOEss22-Jul-05 11:36
EssOEss22-Jul-05 11:36 
AnswerRe: How to use unmanaged callback from C#? Pin
EssOEss22-Jul-05 22:43
EssOEss22-Jul-05 22:43 

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.