Click here to Skip to main content
15,906,766 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: sql server Pin
Dave Kreskowiak8-May-08 10:20
mveDave Kreskowiak8-May-08 10:20 
QuestionRe: sql server Pin
bapu28899-May-08 9:01
bapu28899-May-08 9:01 
AnswerRe: sql server Pin
Dave Kreskowiak9-May-08 13:54
mveDave Kreskowiak9-May-08 13:54 
QuestionRe: sql server Pin
bapu288910-May-08 7:29
bapu288910-May-08 7:29 
AnswerRe: sql server Pin
Dave Kreskowiak10-May-08 9:07
mveDave Kreskowiak10-May-08 9:07 
QuestionRe: sql server Pin
bapu288910-May-08 23:12
bapu288910-May-08 23:12 
QuestionDisappearing custom CommandBar menu in Excel Pin
dsimms8-May-08 8:05
dsimms8-May-08 8:05 
Questionfread() equivalent in VB? Pin
Phyxion8-May-08 7:49
Phyxion8-May-08 7:49 
I have a customer who wants an existing C application ported to VB, and I'm having a bit of trouble trying to find a way to read and write the same data files as the previous program used.
Existing struct example: (the actual structures are quite a bit more complex but I'm going for clarity here)
struct system_info
  {
  char name[32];
  int number;
  int more_numbers[DEFINED_LENGTH];
  double even_more_numbers[OTHER_DEFINED_LENGTH];
  unsigned char padding[103];
  }; 

fread(&system_info, sizeof(system_info), 1, file);

I've found that there's no way to have fixed-length arrays inside a struct in VB (2005, if it matters), so I'm stumped as to how to load in fixed-length records with numerous arrays inside them.

On top of that, when I use variable length arrays the size of the structure is not correct (by which I mean it doesn't match what I expect).

Any ideas/suggestions?
AnswerRe: fread() equivalent in VB? Pin
Tim Carmichael8-May-08 7:56
Tim Carmichael8-May-08 7:56 
GeneralRe: fread() equivalent in VB? Pin
Phyxion8-May-08 8:08
Phyxion8-May-08 8:08 
AnswerRe: fread() equivalent in VB? Pin
Phyxion8-May-08 9:26
Phyxion8-May-08 9:26 
GeneralRe: fread() equivalent in VB? Pin
Anubhava Dimri8-May-08 19:57
Anubhava Dimri8-May-08 19:57 
Questionhow can made msn messenger or windows messenger in vb.net?please send me coding of this application and send me msn messenger application in vb.net Pin
mohammedali20068-May-08 7:48
mohammedali20068-May-08 7:48 
AnswerRe: how can made msn messenger or windows messenger in vb.net?please send me coding of this application and send me msn messenger application in vb.net Pin
Tim Carmichael8-May-08 7:58
Tim Carmichael8-May-08 7:58 
AnswerRe: how can made msn messenger or windows messenger in vb.net?please send me coding of this application and send me msn messenger application in vb.net Pin
Christian Graus8-May-08 14:04
protectorChristian Graus8-May-08 14:04 
AnswerRe: how can made msn messenger or windows messenger in vb.net?please send me coding of this application and send me msn messenger application in vb.net Pin
parth.p8-May-08 14:08
parth.p8-May-08 14:08 
AnswerRe: how can made msn messenger or windows messenger in vb.net?please send me coding of this application and send me msn messenger application in vb.net Pin
Jamal Abdul Nasir10-May-08 3:22
Jamal Abdul Nasir10-May-08 3:22 
QuestionPublishing an application with the framework 3.5 Pin
Paul McGann8-May-08 6:57
professionalPaul McGann8-May-08 6:57 
AnswerRe: Publishing an application with the framework 3.5 Pin
Dave Kreskowiak8-May-08 8:36
mveDave Kreskowiak8-May-08 8:36 
GeneralRe: Publishing an application with the framework 3.5 Pin
Paul McGann8-May-08 10:03
professionalPaul McGann8-May-08 10:03 
GeneralRe: Publishing an application with the framework 3.5 Pin
Dave Kreskowiak8-May-08 10:18
mveDave Kreskowiak8-May-08 10:18 
QuestionHow to find dimetions of Image Pin
nishkarsh_k8-May-08 6:54
nishkarsh_k8-May-08 6:54 
AnswerRe: How to find dimetions of Image Pin
Dave Kreskowiak8-May-08 8:31
mveDave Kreskowiak8-May-08 8:31 
QuestionBG Image Pin
Jamal Abdul Nasir8-May-08 3:58
Jamal Abdul Nasir8-May-08 3:58 
AnswerRe: BG Image Pin
Dave Kreskowiak8-May-08 4:56
mveDave Kreskowiak8-May-08 4:56 

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.