Click to See Complete Forum and Search --> : need somebody, who knows VB5 and C, C++


Rejean Bazinet
October 20th, 1998, 08:34 AM
Hi, i need to ask some questions to a person, who have knowlegde of VB5 and

C or C++, it's about data structure and accessing a DLL file written in C, in VB5 !!!


Thank for all, who would like to help me


Rejean Bazinet

Zafir Anjum
October 20th, 1998, 09:24 AM
You should have posted the specific problem too. Then if somebody knew the answer they could have replied.


In this case you may want to post the question to this board as well as the Visual C++ discussion board at


http://www.codeguru.com/mfc_bbs/index.perl


Visual C++ Discussion Board

Rejean Bazinet
October 23rd, 1998, 07:58 AM
This is a data structure in C or C++:


typedef struct

{

char text[F1RS_FILE_DESC_SIZE]; /* zero-terminated */

} F1_desc;



typedef struct

{

DWORD spring[F1RS_NUM_WHEELS]; /* 60000-120000, ea60 = 50%, 01d4c0 =

100% */

DWORD farb; /* 0-5000, 1388 = 100% */

DWORD rarb; /* 0-1500, 05dc = 100% */

DWORD damper_bump[F1RS_NUM_WHEELS]; /* 1500-6000, 05dc = 25%, 1770 = 100% */

DWORD damper_rebound[F1RS_NUM_WHEELS]; /* 1500-6000, 05dc = 25%, 1770 =

100% */

long camber[F1RS_NUM_WHEELS]; /* << 16 */

DWORD fill[4];

DWORD gear_ratio[F1RS_NUM_GEARS]; /* *50 */

WORD unknown1; /* 0 */

WORD max_lock; /* deg */

WORD unknown2;

WORD brake_bias; /* front %, rear is rest % */

WORD unknown5;

WORD fuel; /* litres */

WORD unknown6;

WORD front_wing;

WORD unknown3;

WORD rear_wing;

WORD unknown4; /* ??? */

WORD max_revs; /* 15000-17500 */

DWORD front_rh; /* 30-100mm, +1966-+6554 (value<<16 ->

in m) */

DWORD rear_rh; /* 30-100mm, +1966-+6554 (value<<16 ->

in m) */

DWORD packers[F1RS_NUM_WHEELS]; /* 0-100mm, 0-199a */

} F1_sxxSet;


This structure is part of the DLL file, how can i access it in VB5, and how

to define that structure in VB5? should i use by Ref or by Value?


Thank to anyone, who cab help


Rejean Bazinet