Comments (11)
If you fix DSiWin32, I'll commit it.
from omnithreadlibrary.
The attached seems to produce a file that complies for c++ builder settle
DSiWin32.zip
what about OtlCommon.hpp and OtlSync.hpp ?
from omnithreadlibrary.
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.
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.
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.
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.
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.
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.
Hi i'll give it ago when i get a chance
Thanks
from omnithreadlibrary.
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.
attached as txt
DSiWin32.txt
from omnithreadlibrary.
Related Issues (20)
- Runtime packages are set to Rebuild as needed {$implicitbuild on} HOT 1
- OmniThreadLibrary Issue - WaitFor() Doesn't executes the task for some random records
- After upgrading to OTL 3.07.8 from 3.05 there is an eror HOT 2
- Bug in DSiWin32.DSiUnregisterUserFileAssoc HOT 1
- Assertion failure Parallel.ForEach( HOT 1
- Delphi 11 Alexandria support HOT 6
- OmniThreadLibrary in GetIt Package Manager? HOT 3
- FastMM5 or FastMM4-AVX? HOT 1
- Error 1400 HOT 1
- Alexandria HOT 1
- Designtime Release Config incorrect LIB suffix HOT 1
- ForEach not working for objects?
- Madexcept and OTL HOT 2
- Compilation of Release 3.07.9 fails with D2010 HOT 1
- Parallel.For() does not support Int64 (but Delphi's TParallel.For() does)
- Installation on Delphi 11 (GetIt and GroupProj) HOT 2
- PostMessage related Quota error during peak machine latencies
- Bad address when casting FWaitHandle object to TWaiter
- Parallel.ForEach<> inside Parallel.Future<> seems to leak threads HOT 1
- Parallel.ForEach going CRAZY on memory HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omnithreadlibrary.