It does sound like you need to do some casting, but I would need to see your code. There is an option in the settings panel under C/C++ Language called "Relaxed Pointer Type Rules". I suspect that you have it turned off for the Palm and a similar option turned on for Visual C.
Brian. "Prasanna Kannan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi all > > I am using codewarrior 6, palm sdk 3.5. I am trying to > port a big application written and on Visual C to > palm. > > In the VC application certain functions have been > written to take void pointers or const void pointers > as arguements. But while calling these functions, > pointers of various other data types are passed. VC > compiler compiles without any error reports.. As far > as palm compiler goes... it works fine upto this step > > but here is the problem... function1 is defined to > take a pointer to a function2 as an arguement. > prototype of function2 defines it to take a const void > pointer as an arguement. > now.. > when function1 is called by passing a pointer to > function3 which is defined to take a const unsigned > int *, > > i get the error > int(*)(const unsigned int *) to int(*)(const void *) > > this file compiles without any errors in VC.. Is there > any way out something like a compiler setting which > ignores this.. I tried type casting but i end up in a > lot of other mess. I would appreciate any "pointers" > :-))) in this regard. Thanks a lot > > __________________________________________________ > Do You Yahoo!? > Kick off your party with Yahoo! Invites. > http://invites.yahoo.com/ > > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
