help with c translation
robby
handsomerobby at fakemail.com
Thu Jul 2 03:40:28 PDT 2009
Lars T. Kyllingstad Wrote:
> robby wrote:
> > i'm using D1/Tango. sorry, im not sure to how to explain the error messages, but if you need to look a t full code, here is the link
> >
> > http://www.ibsensoftware.com/download.html
> >
> > thanks again.
>
>
> Several places in that code, I notice things like this:
>
> const type foo;
> ...
> foo = bar;
>
> I have no idea why this works in C, but in D it certainly doesn't. Try
> removing "const" everywhere in your translated code, including the
> BLZPACKDATA struct. It's brutal, I know, but it may work.
>
> -Lars
it does work, though the code kinda a bit messy with cast(*ubyte) everywhere, :P
thanks for your time.
More information about the Digitalmars-d-learn
mailing list