Re: CW10 assignment, void*, func ptr warnings...




> > Starting my CW9.4 to CW10 migration. So far I am unsuccessful in
> > compiling the simplest of projects. Sigh.
>
>
<snip>
> Just my personal opinion here, but wish it had never worked. LOL
> Nesting statements like this saves a line or two of code, but makes
> code harder to read in the process. I'd just have:
>

understand. Things like this happen when I get lazy. The relational
expr initially only used strlen(), then a later modification to the
block required the value, so to avoid another call to strlen() the
assignment gets created.


> In any case, your code compiles just fine in my application, so I don't
> know why you're getting a warning.
>

Perhaps there is a pragma for this? I hate to do that, cuz the warning
has saved me before; How about this Ron? Howard?

> > 2) Warning : illegal explicit conversion from 'bool (*)(bool)' to 'void
> > *'
<snip>
> >

This is another warning that is "in the way". I like "clean" builds ...
that way one can be confident the the whole build process is not
introducing new issues...

> > 3) errors about func signatures; eg, when calling NewUserItemUPP(), I
> > get errors about the func ptr:
> >
> > Error : function call 'NewUserItemUPP({lval} pascal void
> > (OpaqueDialogPtr *, short))' does not match
> > 'NewUserItemUPP(pascal extern "C" void (*)(OpaqueDialogPtr *, short))'
> >
> > Must I now declare them with extern "C" ??
> >
> > Gee. These kinds of issues are really not helpful when one has real
> > problems to solve..
>
> I don't know why the extern "C" part is in there. I don't see this when
> I use UPPs. The following compiles just fine for me:
>

Again ... can anyone at Metrowerks/FreeWerks comment on this?

This is preventing me from getting anything running; Maybe regressiing
to CW9.5 is the right answer...

>
> Out of curiosity, do you really need to stick with the Dialog Manager?
>

Nope. There are just bigger fish to fry...

When a day is 48hrs long, there might be hope of getting caught up.

-harry

.



Relevant Pages

  • Re: reading more data than the record size (RECL)
    ... end snip ... My old compiles also write and read correctly with the subroutine I ... This overhead is there to allow Fortran ...
    (comp.lang.fortran)
  • Re: case labels
    ... snip ... ... The code below is virtually identical to my fragment above and ... compiles and runs with gcc. ...
    (comp.lang.c)
  • Re: Need some help with I/O
    ... > My textboox has less than a paragraph on the fgetsfunction ... > compiles and runs ok, it even builds a text file, but when I enter data ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Possible Array problem. Applet Compiles but does not run!
    ... (snip main code) ... > This compiles, ... public class MobileShop extends Applet implements ActionListener{ ... HTH ...
    (comp.lang.java.help)
  • VOS C Preprocessor
    ... #define ABC 1 ... WARNING 2012 SEVERITY 1 BEGINNING ON LINE 9 ... To avoid this warning use the #undef command. ... The program compiles fine on Linux/Windows. ...
    (comp.sys.stratus)