Click here to Skip to main content
15,881,413 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using C++ class in C# project Pin
S. Senthil Kumar23-Oct-05 2:25
S. Senthil Kumar23-Oct-05 2:25 
QuestionRepeating an image instead of resizing it Pin
Melanius22-Oct-05 7:23
Melanius22-Oct-05 7:23 
QuestionHow to retrieve email address from exchange. Pin
Member 107077822-Oct-05 7:15
Member 107077822-Oct-05 7:15 
QuestionHow to fix the form location on the screen? Pin
majidbhutta22-Oct-05 6:50
majidbhutta22-Oct-05 6:50 
QuestionRe: How to fix the form location on the screen? Pin
sejal12312-Jan-09 19:52
sejal12312-Jan-09 19:52 
QuestionResizing of controls Pin
wasife22-Oct-05 6:09
wasife22-Oct-05 6:09 
AnswerRe: Resizing of controls Pin
MoustafaS22-Oct-05 6:52
MoustafaS22-Oct-05 6:52 
Questionunmanaged dll problems/questions Pin
FreeClimber22-Oct-05 5:52
FreeClimber22-Oct-05 5:52 
Hi,

i need to work with an unmanaged dll and in each function i want to use i have a struct as parameter. The layout of this struct is given in a c header file, but i'm not sure how to get this working in c# Frown | :( Here is apart of the struct:

<code>
struct _stEgControl
{                                
   struct _stEgData *pstEgData; 
   wchar_t *pszCommName;
   void    *pvEgVideoBufferAddress;
   void   *hEyegaze;
}
</code> 


Question 1:
this struct inside my struct is rededined by me in a class with the same way. I'm not sure if this i right:
<br />
[MarshalAs(UnmanagedType.LPStruct)]<br />
public _stEgData *pstEgData;<br />


Question 2:
there is no wide character in c#. can i use a char?

Question 3:
how i have to work with this void* ? How do i manage this in my class ?
could it be in this way:
<br />
[MarshalAs(UnmanagedType.FunctionPtr)]<br />
public void *pvEgVideoBufferAddress;<br />


Thanks for help.

Frank
QuestionProblem in using DirectSound Pin
Anonymous22-Oct-05 3:12
Anonymous22-Oct-05 3:12 
AnswerRe: Problem in using DirectSound Pin
André Ziegler22-Oct-05 4:03
André Ziegler22-Oct-05 4:03 
Questionchanging image format Pin
XeoN-Kc22-Oct-05 2:16
XeoN-Kc22-Oct-05 2:16 
AnswerRe: changing image format Pin
Andrew Kirillov22-Oct-05 3:04
Andrew Kirillov22-Oct-05 3:04 
QuestionMemory consumption Pin
mohammad92922-Oct-05 2:15
mohammad92922-Oct-05 2:15 
QuestionHeader/Detail Approach Pin
dabuskol22-Oct-05 1:14
dabuskol22-Oct-05 1:14 
QuestionChanging Regional Settings Pin
Zapss22-Oct-05 0:54
Zapss22-Oct-05 0:54 
QuestionVisual Inheritance : Peculiar Behaviour VS.2005 Beta 2 Pin
akyriako7821-Oct-05 23:59
akyriako7821-Oct-05 23:59 
AnswerRe: Visual Inheritance : Peculiar Behaviour VS.2005 Beta 2 Pin
André Ziegler22-Oct-05 4:08
André Ziegler22-Oct-05 4:08 
QuestionHow convert string stream to XML ? Pin
Yanshof21-Oct-05 23:44
Yanshof21-Oct-05 23:44 
AnswerRe: How convert string stream to XML ? Pin
S. Senthil Kumar22-Oct-05 0:57
S. Senthil Kumar22-Oct-05 0:57 
QuestionPRODUCT KET VS.2005 BETA 2 Pin
Greeky21-Oct-05 23:43
Greeky21-Oct-05 23:43 
AnswerRe: PRODUCT KET VS.2005 BETA 2 Pin
XeoN-Kc22-Oct-05 2:52
XeoN-Kc22-Oct-05 2:52 
GeneralRe: PRODUCT KET VS.2005 BETA 2 Pin
André Ziegler22-Oct-05 3:56
André Ziegler22-Oct-05 3:56 
AnswerRe: PRODUCT KET VS.2005 BETA 2 Pin
Daniel Grunwald22-Oct-05 5:16
Daniel Grunwald22-Oct-05 5:16 
QuestionWebDav Protocol Methods Pin
Brihadish21-Oct-05 23:07
Brihadish21-Oct-05 23:07 
QuestionImage Converting to TGA,SVG etc.. Pin
idris cinn21-Oct-05 21:16
idris cinn21-Oct-05 21:16 

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.