New topic: A Few Questions about the StructAndEnum example code...
<http://forums.realsoftware.com/viewtopic.php?t=29194> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message JustSomeGuy Post subject: A Few Questions about the StructAndEnum example code...Posted: Thu Jul 23, 2009 2:40 pm Joined: Fri May 11, 2007 11:35 am Posts: 407 I found a great example in the examples called StructAndEnum.cpp Code:const char *testStructFields[] = { "Field1 as Integer", "Field2 as Boolean", "Field3 as String * 255", "Field4 as TestEnum" }; Is given as an example of defining the Elements of the structure. What about datatypes like UInt16, can they be put in as datatypes? What about a variable length string element in the structure? ie. Field3 as char * or REALstring? The example used a REALmoduleDefinition which defines REALstructures and REALenums. What if I want to user a REALclassDefinition? (There are no fields for structures and enums...) Wouldn't it be nice if we could define the interface and properties in RB and then translate that into a C++ module? _________________ A picture paints a thousand words. A thought paints a thousand pictures. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
