Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Q: JOYCAPS typedef & joyGetDevCaps() function
Declared in C++ as:

typedef struct tagJOYCAPSA {
WORD    wMid;                /* manufacturer ID */
WORD    wPid;                /* product ID */
CHAR    szPname[MAXPNAMELEN];/* product name (NULL terminated
string) */
UINT    wXmin;               /* minimum x position value */
UINT    wXmax;               /* maximum x position value */
UINT    wYmin;               /* minimum y position value */
UINT    wYmax;               /* maximum y position value */
UINT    wZmin;               /* minimum z position value */
UINT    wZmax;               /* maximum z position value */
UINT    wNumButtons;         /* number of buttons */
UINT    wPeriodMin;          /* minimum message period when
captured */
UINT    wPeriodMax;          /* maximum message period when
captured */
#if (WINVER >= 0x0400)
UINT    wRmin;               /* minimum r position value */
UINT    wRmax;               /* maximum r position value */
UINT    wUmin;               /* minimum u (5th axis) position
value */
UINT    wUmax;               /* maximum u (5th axis) position
value */
UINT    wVmin;               /* minimum v (6th axis) position
value */
UINT    wVmax;               /* maximum v (6th axis) position
value */
UINT    wCaps;	 	 /* joystick capabilites */
UINT    wMaxAxes;	 	 /* maximum number of axes supported */
UINT    wNumAxes;	 	 /* number of axes in use */
UINT    wMaxButtons;	 /* maximum number of buttons supported */
CHAR    szRegKey[MAXPNAMELEN];/* registry key */
CHAR    szOEMVxD[MAX_JOYSTICKOEMVXDNAME]; /* OEM VxD in use */
#endif

MMRESULT joyGetDevCaps(UINT_PTR  uJoyID,LPJOYCAPS pjc,UINT cbjc);

...and for Clarion:

JOYCAPS            GROUP,TYPE,PRE()
wMid                 SIGNED
wPid                 SIGNED
szPname              CSTRING(1000),DIM(32)
wXmin                UNSIGNED
wXmax                UNSIGNED
wYmin                UNSIGNED
wYmax                UNSIGNED
wZmin                UNSIGNED
wZmax                UNSIGNED
wNumButtons          UNSIGNED
wPeriodMin           UNSIGNED
wPeriodMax           UNSIGNED
wRmin                UNSIGNED
wRmax                UNSIGNED
wUmin                UNSIGNED
wUmax                UNSIGNED
wVmin                UNSIGNED
wVmax                UNSIGNED
wCaps                UNSIGNED
wMaxAxes             UNSIGNED
wNumAxes             UNSIGNED
wMaxButtons          UNSIGNED
szRegKey             CSTRING(1000),DIM(32)
szOEMVxD             CSTRING(1000),DIM(260)
END

 joyGetDevCapsA(LONG,*JOYCAPS,LONG),LONG,
PASCAL,RAW

Is this correct?

In Clarion, it doesn't return any results and I don't understand why
not. When Visual c++ is used, it works okay.

Thanks in advance for any help!
-Rick

Report this thread to moderator Post Follow-up to this message
Old Post
Rick
03-27-04 04:01 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Clarion archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 01:04 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.