Click here to Skip to main content
15,914,225 members
Home / Discussions / C#
   

C#

 
GeneralRe: Treeview buttons Pin
PHDENG8115-Sep-05 8:10
PHDENG8115-Sep-05 8:10 
GeneralRe: Treeview buttons Pin
Luis Alonso Ramos15-Sep-05 8:34
Luis Alonso Ramos15-Sep-05 8:34 
GeneralRe: Treeview buttons Pin
PHDENG8116-Sep-05 2:02
PHDENG8116-Sep-05 2:02 
GeneralRe: Treeview buttons Pin
Luis Alonso Ramos16-Sep-05 7:59
Luis Alonso Ramos16-Sep-05 7:59 
QuestionHELP!! Regular Expression Pin
brunoconde15-Sep-05 1:03
brunoconde15-Sep-05 1:03 
AnswerRe: HELP!! Regular Expression Pin
Guffa15-Sep-05 1:50
Guffa15-Sep-05 1:50 
GeneralRe: HELP!! Regular Expression Pin
brunoconde15-Sep-05 4:06
brunoconde15-Sep-05 4:06 
Questionmanaged/unmanaged code Pin
Anonymous14-Sep-05 22:43
Anonymous14-Sep-05 22:43 
Hello,

I'm trying to feed a structure to some unmanaged code, the function in the unmanaged code i supposed to fill-in some fields. Can someone help
me translate (marshal) the following to unmanaged code, I have very little experience with this stuff.

Greetz
Dave

Original C++ header code:

typedef struct
{
uint32 uiStructureSize ; // Must be sizeof (tsAT_RETURN_TEMPLATE) (input)
void* pTemplateBfr ; // Buffer to receive template (input/output)
uint32 uiTemplateBfrSize ; // Size of buffer @ pTemplateBfr (input)
uint32 uiTemplateSize ; // Size of template data returned (output)
uint16 uwTemplateQuality ; // Returned template quality (output)
} tsAT_RETURN_TEMPLATE ;

typedef struct
{
uint32 uiStructureSize ;
void* pImageItem ;
void* pOldTemplate ;
BOOL bReturnTemplateOK ;
tsAT_RETURN_TEMPLATE sReturnTemplate ;
} tsAT_BUILD_OR_UPDATE_TEMPLATE ;

My structure's in C#

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public struct tsAT_RETURN_TEMPLATE
{
public UInt32 uiStructureSize;
public Byte[] pTemplateBfr;
public UInt32 uiTemplateBfrSize;
public UInt32 uiTemplateSize;
public UInt16 uwTemplateQuality;
}

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public struct tsAT_BUILD_OR_UPDATE_TEMPLATE
{
public UInt32 uiStructureSize;
public Byte[] pImageItem;
public Byte[] pOldTemplate;
public Boolean bReturnTemplateOK;
public tsAT_RETURN_TEMPLATE sReturnTemplate;
}
Questionhow to get datagrid hyperlink Column value url field value Pin
mohd rafi14-Sep-05 22:29
mohd rafi14-Sep-05 22:29 
Questionhow to get datagrid hyperlink Column value url field value Pin
mohd rafi14-Sep-05 22:28
mohd rafi14-Sep-05 22:28 
Questioncreating 3d interface Pin
jeny8214-Sep-05 21:07
sussjeny8214-Sep-05 21:07 
AnswerRe: creating 3d interface Pin
Russell Jones15-Sep-05 3:36
Russell Jones15-Sep-05 3:36 
QuestionMaximize Client form Pin
emc214-Sep-05 21:03
emc214-Sep-05 21:03 
AnswerRe: Maximize Client form Pin
Vasudevan Deepak Kumar14-Sep-05 21:35
Vasudevan Deepak Kumar14-Sep-05 21:35 
AnswerRe: Maximize Client form Pin
Ashok Dhamija14-Sep-05 22:29
Ashok Dhamija14-Sep-05 22:29 
QuestionHow can i display icons in bar graph?? Pin
parvinder sehrawat14-Sep-05 21:01
parvinder sehrawat14-Sep-05 21:01 
QuestionI need help regarding HttpWebRequest Pin
Tariq Rahim14-Sep-05 19:59
Tariq Rahim14-Sep-05 19:59 
AnswerRe: I need help regarding HttpWebRequest Pin
Andy Brummer14-Sep-05 20:37
sitebuilderAndy Brummer14-Sep-05 20:37 
GeneralRe: I need help regarding HttpWebRequest Pin
Tariq Rahim14-Sep-05 21:11
Tariq Rahim14-Sep-05 21:11 
GeneralRe: I need help regarding HttpWebRequest Pin
Guffa14-Sep-05 21:53
Guffa14-Sep-05 21:53 
GeneralRe: I need help regarding HttpWebRequest Pin
Tariq Rahim15-Sep-05 0:02
Tariq Rahim15-Sep-05 0:02 
AnswerRe: I need help regarding HttpWebRequest Pin
Guffa15-Sep-05 2:09
Guffa15-Sep-05 2:09 
GeneralRe: I need help regarding HttpWebRequest Pin
| Muhammad Waqas Butt |14-Sep-05 23:58
professional| Muhammad Waqas Butt |14-Sep-05 23:58 
GeneralRe: I need help regarding HttpWebRequest Pin
Tariq Rahim15-Sep-05 0:14
Tariq Rahim15-Sep-05 0:14 
Questionproblem in creation of installation patches for VS.NET deployment projects Pin
Azmal14-Sep-05 19:25
Azmal14-Sep-05 19:25 

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.