Help wrapping C struct

About Monkey 2 Forums Monkey 2 Programming Help Help wrapping C struct

This topic contains 1 reply, has 2 voices, and was last updated by  abakobo 1 year, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13371

    Hezkore
    Participant

    I need some help with wrapping some C code.
    Here’s the C code:

    And here’s my attempt at wrapping it:

    It doesn’t seem to be correct though…

    It FEELS like those should me wrapped as Method.
    Something like Method Enabled:Int(), but the error I get is the same for either Field or Method.

     


    test1_test1.cpp(200): error C2027: use of undefined type ‘uiRadioButtons’
    ui.h(224): note: see declaration of ‘uiRadioButtons’
    test1_test1.cpp(200): error C2227: left of ‘->Enabled’ must point to class/struct/union/generic type

    #13373

    abakobo
    Participant

    I’ve made some test with C style function pointer/callbacks if you want to have a look. No struct here though. (code is attached)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.