PC Review


Reply
Thread Tools Rate Thread

how to convert such struct of C++ to csharp codes?

 
 
ari
Guest
Posts: n/a
 
      16th Feb 2005
hi all,
How to translate such struct to csharp codes?

typedef struct{
char *FileName[200];
HANDLE gHandle[200];
char cbDir[LEN_FILEPATH];
WORD wAddress[MAX_CARD_NO];
DWORD* FileCount;
int FileFlag[200];
}TPD_PIF;

regards,
Ari



 
Reply With Quote
 
 
 
 
sadhu
Guest
Posts: n/a
 
      16th Feb 2005
class TPD_PIF
{
string fileName;
IntPtr []gHandle = new IntPtr[200];
string cbDir;
short []wAddress = new short[MAX_CARD_NO];
IntPtr fileCount; //Instead, you can use an int and pass it by ref.
int [] fileFlag = new int[200];

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C# CSharp Reset Struct Class Memory Sheikko Microsoft Dot NET Framework 2 29th Mar 2007 06:36 PM
C# CSharp Reset Struct Class Memory Sheikko Microsoft C# .NET 2 21st Mar 2007 08:07 PM
nube needs help on editing csharp codes =?Utf-8?B?Sm9zaHVhIFRhbg==?= Microsoft C# .NET 2 9th Feb 2006 01:11 AM
How to convert from c++ to Csharp Peter Stojkovic Microsoft C# .NET 2 23rd Dec 2003 11:05 AM
About Struct in CSharp Jamil Ahmed Microsoft C# .NET 2 30th Sep 2003 04:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:17 AM.