Click here to Skip to main content
15,916,702 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to use the keyword 'LIKE' in SQL query in C# code, what will be the sentax of C# statement Pin
Le centriste21-Jan-08 8:51
Le centriste21-Jan-08 8:51 
QuestionWhich event is occuring in DataGridView in edit mode when user pressed 'Enter'? Pin
Dragan Matic21-Jan-08 1:57
Dragan Matic21-Jan-08 1:57 
AnswerRe: Which event is occuring in DataGridView in edit mode when user pressed 'Enter'? Pin
C1AllenS21-Jan-08 3:25
C1AllenS21-Jan-08 3:25 
GeneralNope Pin
Dragan Matic21-Jan-08 3:52
Dragan Matic21-Jan-08 3:52 
GeneralDelegate Invoke Pin
half-life21-Jan-08 1:42
half-life21-Jan-08 1:42 
GeneralRe: Delegate Invoke Pin
S. Senthil Kumar21-Jan-08 4:24
S. Senthil Kumar21-Jan-08 4:24 
GeneralSystem.Collections.Generic.SynchronizedKeyedCollection<k,t></k,t> Pin
Ungi.21-Jan-08 1:24
Ungi.21-Jan-08 1:24 
GeneralRead & Write to C Flat File in C# Pin
KeithF21-Jan-08 1:12
KeithF21-Jan-08 1:12 
Hi Guys,

I have a structure in C / C++ as follows:

typedef struct MyDataFields{
char Id[12];
char Name[32];
char Address[4][32];
char DateLastSale[12];
long TransCount;
int PointsToDate;
char Spare[20];
}MyData;

This structure is written to a flat file in one fwrite call and is read in using fread. However this is legacy stuff now and we are about to undertake a re-write but we need to be able to read these files in C# .Net 2.0.

I have searched the web for days but have got nowhere. I have saw 1 or 2 examples where it has been said to create a class to represent the struct, there must be however a simpler way of doing this.

Anyone done this before that can point me in the right direction or some sample code based on the struct above.

Thanks in Advance
Keith
GeneralRe: Read & Write to C Flat File in C# Pin
J4amieC21-Jan-08 1:14
J4amieC21-Jan-08 1:14 
GeneralRe: Read & Write to C Flat File in C# Pin
KeithF21-Jan-08 1:20
KeithF21-Jan-08 1:20 
GeneralRe: Read & Write to C Flat File in C# Pin
J4amieC21-Jan-08 1:41
J4amieC21-Jan-08 1:41 
GeneralRe: Read & Write to C Flat File in C# Pin
KeithF21-Jan-08 1:44
KeithF21-Jan-08 1:44 
Generaladding a line break Pin
eyeseetee21-Jan-08 1:10
eyeseetee21-Jan-08 1:10 
GeneralRe: adding a line break Pin
J4amieC21-Jan-08 1:12
J4amieC21-Jan-08 1:12 
GeneralRe: adding a line break Pin
Vikram A Punathambekar21-Jan-08 1:31
Vikram A Punathambekar21-Jan-08 1:31 
GeneralRe: adding a line break Pin
J4amieC21-Jan-08 1:42
J4amieC21-Jan-08 1:42 
GeneralRe: adding a line break Pin
benjymous21-Jan-08 1:55
benjymous21-Jan-08 1:55 
GeneralRe: adding a line break Pin
J4amieC21-Jan-08 2:05
J4amieC21-Jan-08 2:05 
GeneralRe: adding a line break Pin
eyeseetee21-Jan-08 2:15
eyeseetee21-Jan-08 2:15 
GeneralRe: adding a line break Pin
Vikram A Punathambekar21-Jan-08 3:38
Vikram A Punathambekar21-Jan-08 3:38 
AnswerRe: adding a line break Pin
Vikram A Punathambekar21-Jan-08 3:35
Vikram A Punathambekar21-Jan-08 3:35 
GeneralRe: adding a line break Pin
J4amieC21-Jan-08 3:51
J4amieC21-Jan-08 3:51 
GeneralRe: adding a line break Pin
PIEBALDconsult21-Jan-08 15:55
mvePIEBALDconsult21-Jan-08 15:55 
GeneralC# map network dirve Pin
Burim Rama21-Jan-08 0:51
Burim Rama21-Jan-08 0:51 
GeneralRe: C# map network dirve Pin
Vasudevan Deepak Kumar21-Jan-08 0:53
Vasudevan Deepak Kumar21-Jan-08 0:53 

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.