Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Aug 15, 2018 8:11 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: A Few Questions about the StructAndEnum example code...
PostPosted: Thu Jul 23, 2009 2:40 pm 
I found a great example in the examples called StructAndEnum.cpp
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?


Top
  
Reply with quote  
 Post subject: Re: A Few Questions about the StructAndEnum example code...
PostPosted: Fri Jul 24, 2009 7:16 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Like a lot of things in the SDK: Go and try.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group