Code Monkey home page Code Monkey logo

Comments (11)

gabr42 avatar gabr42 commented on July 24, 2024

If you fix DSiWin32, I'll commit it.

from omnithreadlibrary.

Creakyhat avatar Creakyhat commented on July 24, 2024

The attached seems to produce a file that complies for c++ builder settle
DSiWin32.zip

what about OtlCommon.hpp and OtlSync.hpp ?

from omnithreadlibrary.

gabr42 avatar gabr42 commented on July 24, 2024

Added to the repository, thanks!

What about OtlCommon.hpp and OtlSync.hpp? Please keep in mind that I really know nothing about how C++Builder works with Delphi sources.

If you want anything changed, send me changes and I'll review and commit.

from omnithreadlibrary.

Creakyhat avatar Creakyhat commented on July 24, 2024

i know a little Delphi i'll see what i can workout. am i able to check these in myself to the repo? or do i need to upload them here?

from omnithreadlibrary.

Creakyhat avatar Creakyhat commented on July 24, 2024

OtlCommon.zip

I've looked at OtlCommon i've changed the duplicate proprieties names to have ByName or ByOV appended to them. i could not just exclude them from being added to the hpp files. hopefully this is only a minor change for everybody

__property TOmniValue AsArrayItemByName[const System::UnicodeString name] ={read=GetAsArrayItem, write=SetAsArrayItem};
__property TOmniValue AsArrayItemByOV[TOmniValue param] = {read=GetAsArrayItem, write=SetAsArrayItem};
__property TOmniValue ItemByName[const System::UnicodeString paramName] = {read=GetItem, write=SetItem};
__property TOmniValue ItemByOV[TOmniValue param] = {read=GetItem, write=SetItem};

OtlSync is proving to be more of an issue.

from omnithreadlibrary.

gabr42 avatar gabr42 commented on July 24, 2024

Sorry, but I will not commit a file that would change such a basic functionality for many users. The pascal side should stay - if at all possible - the same.

Is there a way to ifdef a code so it is ignored in the C++Builder? I would have no problems with this:

property AsArrayItem[idx: integer]: TOmniValue ...
property AsArrayItemByName[idx: integer]: TOmniValue ...
{$ifdef not-in-c}
property AsArrayItem[const name: string]: TOmniValue ....
{$endif}

This way Delphi users can use the code as they use it now and we have a new way to access the same functionality from both C++Builder and Delphi.

from omnithreadlibrary.

Creakyhat avatar Creakyhat commented on July 24, 2024

Yes i did i try that at first but could not seem to exclude them just for C++ which is why i did it the way i did. plus this causes issue in another file so i don't think that would work anyway,

Maybe you could see if its is possible, as i said i know a little Delphi and i can't see a way to do it.

Maybe one of your other users knows how to do it?

from omnithreadlibrary.

gabr42 avatar gabr42 commented on July 24, 2024

IFDEF BCB should do the trick: http://stackoverflow.com/questions/2627927/conditional-directive-to-identify-c-builder-personalities/2631343#2631343

This is how I imagined the new code:

property AsArrayItem[idx: integer]: TOmniValue
read GetAsArrayItem write SetAsArrayItem; default;
{$IFNDEF BCB}
property AsArrayItem[const name: string]: TOmniValue
read GetAsArrayItem write SetAsArrayItem; default;
{$ELSE}
property AsArrayItemByName[const name: string]: TOmniValue
read GetAsArrayItemByName write SetAsArrayItemByName;
{$ENDIF}

from omnithreadlibrary.

Creakyhat avatar Creakyhat commented on July 24, 2024

Hi i'll give it ago when i get a chance

Thanks

from omnithreadlibrary.

zlojvavan avatar zlojvavan commented on July 24, 2024

hello
in order to build DSiWin32 with bcb2007 I've had to introduce few more externalsym directives, please see attached version, note comments marked as // vavan

ouch. the page says "We don’t support that file type. with a PNG, GIF, JPG, DOCX, PPTX, XLSX, TXT, PDF, or ZIP" though I tried to upload zip

from omnithreadlibrary.

zlojvavan avatar zlojvavan commented on July 24, 2024

attached as txt
DSiWin32.txt

from omnithreadlibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.