04-10-2006 08:31 PM
04-11-2006 04:26 AM - edited 04-11-2006 04:26 AM
Another duplicated post... Sorry
Message Edited by Roberto Bozzolo on 04-11-2006 11:28 AM
04-11-2006 04:26 AM - edited 04-11-2006 04:26 AM
Duplicated post.
Message Edited by Roberto Bozzolo on 04-11-2006 11:28 AM
04-11-2006 04:26 AM - edited 04-11-2006 04:26 AM
DWORD is a type that is equivalente to an unsigned long (as defined into CVIDEF.H include file), so it has the same lenght as INT type. You can define your rinh value as unsigned int instead of int and you can represent a DWORD value in it and pass back its value to a DWORD variable. To go to the definition of a type you can right-click on the type itself and select "Go to tefinition" option (or press Ctrl+I which is equivalent), this provided your project has been succesfully compiled and linked, otherwise you will get a "no definition error".
The problem you are finding is not related to retrieving the ring value but to how you have defined a parameter in 'birdRS232WakeUp' function and how you are calling it: it seems that your function parameter is defined as DWORD and you are actually calling this function passing a pointer to a a DWORD variable instead of the variable itself.
Message Edited by Roberto Bozzolo on 04-11-2006 11:27 AM