Re: Eu 2.4, c funcs and ExoticaX
- Posted by Robert Craig <rds at RapidEuphoria.com> Sep 02, 2003
- 361 views
dm31 at uow.edu.au wrote: > These are the first the first two lines causing problems > (note, if I comment a line out the very next one comes up, > for all the api it seems, even exotica works) > > WINVER = link_c_func2(edx, "WINDOWS_VERSION",{NULL},C_UINT) > REPORT_MODE = link_c_proc2(edx, "REPORT_MODE", {C_POINTER, > C_INT}) NULL is defined as 0 in dll.e, and it is *not* a valid argument type. I suspect what the author meant to say here was: WINVER = link_c_func2(edx, "WINDOWS_VERSION", {}, C_UINT) i.e. that the C function WINDOWS_VERSION takes no arguments and returns a C_UINT as a result. Later in the code, when he calls WINDOWS_VERSION, he probably passes it a dummy argument. You'll have to remove that dummy argument from each call to WINDOWS_VERSION. I guess the author just didn't realize that he should define a function of no arguments by using {} rather than {NULL}. Apparently this worked without crashing, so he didn't have to correct it in 2.3. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com