Hi,
I have had quite some head-aches with types (converted from C structs) but 
this one wins.

I have this type (from IUP)


type tCTC
    iup_canvas::Ptr{cdCanvas}
    w::Cint
    h::Cint
...

which I initialize as

ctgc = tCTC(
        convert(Ptr{cdCanvas},0),
        int32(0), int32(0),
...

and now the mystery.

    t = cdCreateCanvas(cdContextIup(), IupGetHandle("cnvMain"))
    ctgc.iup_canvas = t
    cdActivate(t);
    cdActivate(ctgc.iup_canvas);


the last line in the chunk above errors with


ERROR: `cdActivate` has no method matching cdActivate(::Ptr{cdCanvas})
 in CDTestInit at C:\programs\Gits\IUP.jl\examples\cdtest_.jl:125
 in cdtest at C:\programs\Gits\IUP.jl\examples\cdtest_.jl:92


So `t` and `ctgc.iup_canvas` are actually two different entities (although 
their pointers are ofc the same as I can see if I @show them)?

Reply via email to