Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

Re: Re: wxWidgets (again)

Integrated Application Platform › Forums › General › wxWidgets (again) › Re: Re: wxWidgets (again)

January 23, 2012 at 10:15 am #908
Anonymous
Inactive

Hi Andrew, just to give you an idea about the Suneido/wxWidgets binding generation.

class wxStringMap
{
public:
wxStringMap();
virtual ~wxStringMap();
bool HasValueFor(const wxString& key) const;
const wxString& ValueFor(const wxString& key) const;
};

The generated wrapper wxsuneido.dll

extern “C” __declspec(dllexport) wxStringMap* wxStringMap_CTor() // CONSTRUCTOR
{
return new wxStringMap();
}
extern “C” __declspec(dllexport) void wxStringMap_DTor(wxStringMap* self) // DESTUCTOR
{
delete self;
}
extern “C” __declspec(dllexport) bool wxStringMap_HasValueFor(wxStringMap* self, const char* key)
{
return self->HasValueFor(key);
}
extern “C” __declspec(dllexport) const wxString* ValueFor(wxStringMap* self, const char* key)
{
return &(self->ValueFor(key));
}

And finally the GENERATED suneido class (a fraction)
wxStringMap = class
{
New()
{
,classptr = dll int* wxsuneido:wxStringMapCTor()
}

HasValueFor(key)
{
return dll bool wxsuneido:wxStringMap_HasValueFor(classptr, key)
}
ValueFor(key)
{
}
}

A few question and suggestions.

What about the Destructor ?

We should start with wxWiodgets 2.93 to avoid UNICODE / NON UNICODE problems. Does Suneido support Unicode strings ?

I think it would make sense to have a generic IntPtr 32/64 bit agnostic!

So I was wrong. We will have a DLL (wxSuneido.DLL) and wrapped classes)
Keep in mind that the gemeration of wxsuneido.dll as well as the suneido wrapper classes are generated. So probably so Suneido for wxWidgets is close than one mifgt think !

Next message will contain some thoughts about event-handling etc.

Would be nice to get some feedback .
Bjoern

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • Alpha copy of gSuneido to play with
  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2023 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language