Click here to Skip to main content
15,926,939 members
Home / Discussions / C#
   

C#

 
QuestionListView LargeIcon redraw Pin
fregolo5219-Feb-06 22:29
fregolo5219-Feb-06 22:29 
QuestionSplashscreen and timer Pin
Dave McCool19-Feb-06 22:27
Dave McCool19-Feb-06 22:27 
AnswerRe: Splashscreen and timer Pin
gnjunge19-Feb-06 22:45
gnjunge19-Feb-06 22:45 
GeneralRe: Splashscreen and timer Pin
Dave McCool20-Feb-06 3:10
Dave McCool20-Feb-06 3:10 
Question[VS 2005] How set a FlatStyle button a 1px border Pin
Sasuko19-Feb-06 22:14
Sasuko19-Feb-06 22:14 
QuestionDisabling textbox based on combo Pin
kbkarthik19-Feb-06 21:46
kbkarthik19-Feb-06 21:46 
AnswerRe: Disabling textbox based on combo Pin
Neel0719-Feb-06 23:13
Neel0719-Feb-06 23:13 
QuestionDefining prototypes for C++ dll functions in C# Pin
Nataraj197819-Feb-06 21:39
Nataraj197819-Feb-06 21:39 
I have reqirements of defining prototypes for C++ dll function in C# so that I can use p/invoke method to access the dll's functions.

Can anyone please suggest how to write prototypes in C# for C++ functions like the ones given below:
1. __declspec(dllexport) char * __stdcall GetString(int maxChars, int waitTime, int delay = 50);

2. __declspec(dllexport) BOOL __stdcall GetControlData(DWORD commandType, BYTE* pInBuf, DWORD inSize, BYTE *pOutBuf, DWORD outSize, LPDWORD bytesReturned, LPOVERLAPPED pOverlapped);

3. __declspec(dllexport) DWORD * __stdcall GetStats(BOOL clear);

4. __declspec(dllexport) UNIT_TYPES* __stdcall GetUnitsInfo(void);
where UNIT_TYPES is a structure:

typedef struct
{
char *name;
int num_units;
int unit_list[10];
}UNIT_TYPES;

5. __declspec(dllexport) int __stdcall HandleCommand(CHANDLE han, int Id, const BYTE cmd, DWORD const responseType, const int txCount=0, BYTE const * pTxData=NULL, BYTE *pRxData=NULL, BYTE *pRxCount=NULL, DWORD retries=4, DWORD wait_ms=0);

6. __declspec(dllexport) void __stdcall HandleGetTimeouts(CHANDLE han, DWORD *normal, DWORD *download, DWORD *retries);

7. __declspec(dllexport) int __stdcall SendCommand(int Id, const BYTE cmd, DWORD const responseType, const int txCount=0, BYTE const * pTxData=NULL, BYTE *pRxData=NULL, BYTE *pRxCount=NULL, DWORD retries=4, DWORD wait_ms=0);


Regards,

Nataraj.

-- modified at 3:56 Monday 20th February, 2006
AnswerRe: Defining prototypes for C++ dll functions in C# Pin
Sebastian Schneider19-Feb-06 22:27
Sebastian Schneider19-Feb-06 22:27 
GeneralRe: Defining prototypes for C++ dll functions in C# Pin
Nataraj197819-Feb-06 23:55
Nataraj197819-Feb-06 23:55 
QuestionHow can I access IVT using C# ? Pin
Jijo BP19-Feb-06 21:34
Jijo BP19-Feb-06 21:34 
AnswerRe: How can I access IVT using C# ? Pin
leppie19-Feb-06 23:38
leppie19-Feb-06 23:38 
AnswerRe: How can I access IVT using C# ? Pin
Super Lloyd20-Feb-06 0:17
Super Lloyd20-Feb-06 0:17 
AnswerRe: How can I access IVT using C# ? Pin
Dave Kreskowiak20-Feb-06 9:32
mveDave Kreskowiak20-Feb-06 9:32 
GeneralRe: How can I access IVT using C# ? Pin
Jijo BP21-Feb-06 3:07
Jijo BP21-Feb-06 3:07 
GeneralRe: How can I access IVT using C# ? Pin
Dave Kreskowiak21-Feb-06 13:27
mveDave Kreskowiak21-Feb-06 13:27 
Questionproperty builder Pin
Rmokkenstorm19-Feb-06 21:14
Rmokkenstorm19-Feb-06 21:14 
QuestionDatabase search Pin
Rmokkenstorm19-Feb-06 21:11
Rmokkenstorm19-Feb-06 21:11 
AnswerRe: Database search Pin
gnjunge19-Feb-06 22:50
gnjunge19-Feb-06 22:50 
Questionremoting in c#.net Pin
karunakerreddy19-Feb-06 20:57
karunakerreddy19-Feb-06 20:57 
Questioncan i bring external applications into a .net application Pin
jith - iii19-Feb-06 20:56
jith - iii19-Feb-06 20:56 
AnswerRe: can i bring external applications into a .net application Pin
Neel0719-Feb-06 23:31
Neel0719-Feb-06 23:31 
GeneralRe: can i bring external applications into a .net application Pin
jith - iii20-Feb-06 1:08
jith - iii20-Feb-06 1:08 
QuestionC# Error Pin
JacquesDP19-Feb-06 20:51
JacquesDP19-Feb-06 20:51 
AnswerRe: C# Error Pin
Stefan Troschuetz19-Feb-06 21:36
Stefan Troschuetz19-Feb-06 21:36 

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.