Click here to Skip to main content
15,903,385 members
Home / Discussions / C#
   

C#

 
GeneralRe: vb variants in c# Pin
Jonathan Tan12-Aug-02 1:09
Jonathan Tan12-Aug-02 1:09 
QuestionDatagrid sorted, how to refresh data? Pin
Bar10-Aug-02 7:38
Bar10-Aug-02 7:38 
GeneralRegisterHotKey, small problem Pin
Anonymous10-Aug-02 0:15
Anonymous10-Aug-02 0:15 
GeneralRe: RegisterHotKey, small problem Pin
leppie10-Aug-02 0:27
leppie10-Aug-02 0:27 
GeneralRe: RegisterHotKey, small problem Pin
Anonymous10-Aug-02 7:01
Anonymous10-Aug-02 7:01 
GeneralDefine structs in C# Pin
leppie9-Aug-02 23:24
leppie9-Aug-02 23:24 
GeneralAnyone? Pin
leppie11-Aug-02 2:42
leppie11-Aug-02 2:42 
GeneralRe: Define structs in C# Pin
Eric Gunnerson (msft)12-Aug-02 6:42
Eric Gunnerson (msft)12-Aug-02 6:42 
1. I'm not sure what you're asking. By default, structs in C# have sequential layout. You can go to Explicit layout if you need to control offsets exactly, using the StructLayout attribute.

2. DWORD = int, WORD = short. For others, you'll need to trace through the windows headers to find out how they're defined, and translate to the appropriate type. Handles should be typed as IntPtr.

3. In general, you should rarely need it. If you care about the size after it's marshalled into the unmanaged work, use Marshal.Size() (or is is SizeOf()?)

4. It says that the following string or StringBuilder should be marshalled as an embedded TCHAR array 80 characters wide. Use this when you see something like:
TCHAR value[80];

For other questions, it usually much easier to post the API you're trying to call and what your definition is

GeneralRe: Define structs in C# Pin
leppie12-Aug-02 12:19
leppie12-Aug-02 12:19 
Generali install net frameworksdk Pin
imran_rafique9-Aug-02 21:41
imran_rafique9-Aug-02 21:41 
GeneralRe: i install net frameworksdk Pin
leppie9-Aug-02 21:58
leppie9-Aug-02 21:58 
GeneralRe: i install net frameworksdk Pin
imran_rafique9-Aug-02 22:53
imran_rafique9-Aug-02 22:53 
GeneralRe: i install net frameworksdk Pin
leppie9-Aug-02 23:09
leppie9-Aug-02 23:09 
GeneralRe: i install net frameworksdk Pin
imran_rafique10-Aug-02 10:34
imran_rafique10-Aug-02 10:34 
GeneralRe: i install net frameworksdk Pin
imran_rafique10-Aug-02 11:09
imran_rafique10-Aug-02 11:09 
GeneralRe: i install net frameworksdk Pin
leppie10-Aug-02 11:22
leppie10-Aug-02 11:22 
Questionhow to click a button Pin
imran_rafique9-Aug-02 21:02
imran_rafique9-Aug-02 21:02 
Questionhow to click a button Pin
imran_rafique9-Aug-02 10:47
imran_rafique9-Aug-02 10:47 
AnswerRe: how to click a button Pin
Nick Parker9-Aug-02 10:52
protectorNick Parker9-Aug-02 10:52 
GeneralRe: how to click a button Pin
Rama Krishna Vavilala9-Aug-02 12:07
Rama Krishna Vavilala9-Aug-02 12:07 
GeneralRe: how to click a button Pin
Nick Parker9-Aug-02 13:51
protectorNick Parker9-Aug-02 13:51 
GeneralRe: how to click a button Pin
Rama Krishna Vavilala9-Aug-02 15:36
Rama Krishna Vavilala9-Aug-02 15:36 
GeneralRe: how to click a button Pin
Nick Parker9-Aug-02 16:31
protectorNick Parker9-Aug-02 16:31 
GeneralRe: how to click a button Pin
James T. Johnson9-Aug-02 17:00
James T. Johnson9-Aug-02 17:00 
GeneralRe: how to click a button Pin
Nick Parker9-Aug-02 17:24
protectorNick Parker9-Aug-02 17:24 

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.