BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

to Danny Thorpe
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM
View previous topic :: View next topic  
Author Message
Roby Della Pasqua
Guest





PostPosted: Thu Nov 24, 2005 7:11 am    Post subject: to Danny Thorpe Reply with quote



kind Danny,

sorry to bother,

I write here because I know that you read this group, and like also share
thoughts with other smart developers of basm.

I like ask for Delphi 2006 Update1 the linker compatibility with lib files
of visual studio or ms objects or masm/nasm objects.

I know that in BCC exist a tool that convert COFF<->OMF but this work bad.

I see that many projects, especially open one, are all in C++, and feel as
delphi developers are moving away because is easy take any kind of code for
example in sourceforge.

Will be very cool be able to link directly a lib file and load header
interfaces without use a dll or compile with Borland C++ and rewrote the
headers, but simply linking the library as vstudio do.

What's your opinion?

Can be possible without too much efforts?

The community like this capability from Delphi or it's only mine isolated
request?

Thank you and best regards.

Roberto


Back to top
Eric Grange
Guest





PostPosted: Thu Nov 24, 2005 7:13 am    Post subject: Re: to Danny Thorpe Reply with quote



CPPBuilder could use Delphi source directly, it would be nice indeed if Delphi
could use C++ stuff directly too (not necessarily MS formats, CPPB's would
already be sweet... esp. with the upgraded C++ compiler that was announced
for D2006).

Eric
Back to top
Avatar Zondertau
Guest





PostPosted: Thu Nov 24, 2005 7:25 am    Post subject: Re: to Danny Thorpe Reply with quote



Quote:
sorry to bother,

I write here because I know that you read this group, and like also
share thoughts with other smart developers of basm.

I like ask for Delphi 2006 Update1 the linker compatibility with lib
files of visual studio or ms objects or masm/nasm objects.

I know that in BCC exist a tool that convert COFF<->OMF but this work
bad.

I see that many projects, especially open one, are all in C++, and
feel as delphi developers are moving away because is easy take any
kind of code for example in sourceforge.

Will be very cool be able to link directly a lib file and load header
interfaces without use a dll or compile with Borland C++ and rewrote
the headers, but simply linking the library as vstudio do.

What's your opinion?

Can be possible without too much efforts?

The community like this capability from Delphi or it's only mine
isolated request?

Perhaps you should also post this to Quality Central. By posting it to
the newsgroup you have a chance that someone from Borland reads it. By
posting it to QC you have a guarantee of that (though, of course, the
reader may not be Danny Thorpe).

--
The Fastcode Project: http://www.fastcodeproject.org/

Back to top
Roberto Della Pasqua
Guest





PostPosted: Mon Nov 28, 2005 10:31 pm    Post subject: Re: to Danny Thorpe Reply with quote

hi!

Thaddy informed me that D2006 permit to use C++ code inside delphi projects,
directly.

That's fantastic.

Thank you Borland!

"Eric Grange" <egrangeNO (AT) SPAMglscene (DOT) org> wrote

Quote:
CPPBuilder could use Delphi source directly, it would be nice indeed if
Delphi
could use C++ stuff directly too (not necessarily MS formats, CPPB's would
already be sweet... esp. with the upgraded C++ compiler that was announced
for D2006).

Eric



Back to top
Jeff Overcash (TeamB)
Guest





PostPosted: Tue Nov 29, 2005 1:20 am    Post subject: Re: to Danny Thorpe Reply with quote



Roberto Della Pasqua wrote:
Quote:

hi!

Thaddy informed me that D2006 permit to use C++ code inside delphi projects,
directly.


Thaddy is misinformed. There is nothing different from the Delphi side WRT C++
source. BDS 2006 comes with the C++ personality, but there is no more
interoperability than before. The C++ personality can use Delphi code, but the
Delphi personality can not use C++ code. Probably never will.


--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Your friends will know you better in the first minute you meet than your
acquaintances will know you in a thousand years. (R Bach)

Back to top
Roberto Della Pasqua
Guest





PostPosted: Tue Nov 29, 2005 10:50 am    Post subject: Re: to Danny Thorpe Reply with quote

ok :)

"Avatar Zondertau" <avatarzt (AT) gmail (DOT) com (please reply to newsgroup)> wrote in
message news:43856aec$1 (AT) newsgroups (DOT) borland.com...
Quote:
sorry to bother,

I write here because I know that you read this group, and like also
share thoughts with other smart developers of basm.

I like ask for Delphi 2006 Update1 the linker compatibility with lib
files of visual studio or ms objects or masm/nasm objects.

I know that in BCC exist a tool that convert COFF<->OMF but this work
bad.

I see that many projects, especially open one, are all in C++, and
feel as delphi developers are moving away because is easy take any
kind of code for example in sourceforge.

Will be very cool be able to link directly a lib file and load header
interfaces without use a dll or compile with Borland C++ and rewrote
the headers, but simply linking the library as vstudio do.

What's your opinion?

Can be possible without too much efforts?

The community like this capability from Delphi or it's only mine
isolated request?

Perhaps you should also post this to Quality Central. By posting it to
the newsgroup you have a chance that someone from Borland reads it. By
posting it to QC you have a guarantee of that (though, of course, the
reader may not be Danny Thorpe).

--
The Fastcode Project: http://www.fastcodeproject.org/



Back to top
Thaddy
Guest





PostPosted: Tue Nov 29, 2005 12:24 pm    Post subject: Re: to Danny Thorpe Reply with quote

Jeff Overcash (TeamB) wrote:
Quote:
Thaddy informed me that D2006 permit to use C++ code inside delphi projects,
directly.



Thaddy is misinformed. There is nothing different from the Delphi side WRT C++
No, Roby misinterpreted my information - *not* given on this forum, btw.

I explained that Delphicode could be used in C++ projects, not the other
way around. I also explained you could link C(++) obj files to Delphi
projects and that such has always been the case.

Back to top
Roberto Della Pasqua
Guest





PostPosted: Tue Nov 29, 2005 1:08 pm    Post subject: Re: to Danny Thorpe Reply with quote

Thaddy, sorry me please.

I have misunderstood your words, was not my intention.

Anyway: plz if you like sign QC 21782.

THANKS

"Thaddy" <kol (AT) chello (DOT) nl> wrote

Quote:
Jeff Overcash (TeamB) wrote:
Thaddy informed me that D2006 permit to use C++ code inside delphi
projects,
directly.



Thaddy is misinformed. There is nothing different from the Delphi side
WRT C++
No, Roby misinterpreted my information - *not* given on this forum, btw.
I explained that Delphicode could be used in C++ projects, not the other
way around. I also explained you could link C(++) obj files to Delphi
projects and that such has always been the case.



Back to top
dageek
Guest





PostPosted: Tue Nov 29, 2005 2:31 pm    Post subject: Re: to Danny Thorpe Reply with quote

Hello Thaddy,

Quote:
I explained that Delphicode could be used in C++ projects, not the other
way around. I also explained you could link C(++) obj files to Delphi
projects and that such has always been the case.

Link C++ object files ? How then ?
I was aware that Delphi was able to link C object files only ...

regards
dageek



Back to top
Jeff Overcash (TeamB)
Guest





PostPosted: Tue Nov 29, 2005 4:37 pm    Post subject: Re: to Danny Thorpe Reply with quote



dageek wrote:
Quote:

Hello Thaddy,

I explained that Delphicode could be used in C++ projects, not the other
way around. I also explained you could link C(++) obj files to Delphi
projects and that such has always been the case.

Link C++ object files ? How then ?
I was aware that Delphi was able to link C object files only ...

You can, but you have to fudge your Delphi class perfectly so the VMT is right.
It is not something most people try to do. Why don't you just start your app as
a C++ builder app and add the Pascal files you need. That is the simpler
solution by far.

Quote:
regards
dageek

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Your friends will know you better in the first minute you meet than your
acquaintances will know you in a thousand years. (R Bach)

Back to top
Avatar Zondertau
Guest





PostPosted: Tue Nov 29, 2005 5:20 pm    Post subject: Re: to Danny Thorpe Reply with quote

Quote:
Thaddy, sorry me please.

I have misunderstood your words, was not my intention.

Anyway: plz if you like sign QC 21782.

Your request has been marked "won't do" nearly immediately, with the
following explanation:

<quote>
The C++ language ius too complex and does not map onto the Delphi
language. Until someone comes up with a C++ to Delphi header conversion
that works, this is not a possible thing to do. This is why it has
never been done in the past. Nothing has changed to eliminate the
reasons you can not directly link in C++ source. Borland has commented
on the problems that stop them from doing this direction of code
integration.
</quote>

--
The Fastcode Project: http://www.fastcodeproject.org/

Back to top
Thaddy
Guest





PostPosted: Tue Nov 29, 2005 5:43 pm    Post subject: Re: to Danny Thorpe Reply with quote

Avatar Zondertau wrote:
Quote:
Thaddy, sorry me please.

I have misunderstood your words, was not my intention.

Anyway: plz if you like sign QC 21782.


Your request has been marked "won't do" nearly immediately, with the
following explanation:

quote
The C++ language ius too complex and does not map onto the Delphi
language. Until someone comes up with a C++ to Delphi header conversion
that works, this is not a possible thing to do. This is why it has
never been done in the past. Nothing has changed to eliminate the
reasons you can not directly link in C++ source. Borland has commented
on the problems that stop them from doing this direction of code
integration.
/quote

Regarding the QC:

It *has* been done in the past, but not with a high enough success rate
to warrant a commercially successfull implementation. Bob's
headerconvert is lost in space Wink but the Freepascal guys have come a
long, long way.
So I accept the answer with reluctance.

Regarding my friend Roby:
We are actually good friends, are we not Roby? :)

Regarding linking C++ obj files (made with OMF compatible compilers that
is):

It is not difficult at all, it is just the runtime libraries that are
the problem - in my view -. I do it all the time and have a library that
patches/stubs most common "disturbaces", ok ' disturbances' in pascal,
like getmem/memset, freemem, reallocmem... etc. It is indeed lowlevel
stuff and not for everyone. A tip would be to NOT use bare classes but
bare objects, same memory layout as C++ classes. (And a considerable
design flaw in Delphi, regarding interoperatibility between non .net
languages)
The class paradigm in delphi grew to allocate things that should not
have been there in the first place. Objects are still an option, though ;)

(Although f.e. www.zeitungsjunge.de contains frighteningly good
examples, as does the JPEG lib interfaces and obj that come with delphi!
read that code if you want to know how the basics work)

What I need more is a MS compatible register calling convention (less
effective than borland's.. mind you)
I suggest a QC to do just that.

Back to top
Roberto Della Pasqua
Guest





PostPosted: Tue Nov 29, 2005 5:50 pm    Post subject: Re: to Danny Thorpe Reply with quote

hmm...

maybe plain C instead of C++ without need redo headers?

"Avatar Zondertau" <avatarzt (AT) gmail (DOT) com (please reply to newsgroup)> wrote in
message news:438c8dba (AT) newsgroups (DOT) borland.com...
Quote:
Thaddy, sorry me please.

I have misunderstood your words, was not my intention.

Anyway: plz if you like sign QC 21782.

Your request has been marked "won't do" nearly immediately, with the
following explanation:

quote
The C++ language ius too complex and does not map onto the Delphi
language. Until someone comes up with a C++ to Delphi header conversion
that works, this is not a possible thing to do. This is why it has
never been done in the past. Nothing has changed to eliminate the
reasons you can not directly link in C++ source. Borland has commented
on the problems that stop them from doing this direction of code
integration.
/quote

--
The Fastcode Project: http://www.fastcodeproject.org/



Back to top
Jeff Overcash (TeamB)
Guest





PostPosted: Tue Nov 29, 2005 5:51 pm    Post subject: Re: to Danny Thorpe Reply with quote



Roberto Della Pasqua wrote:
Quote:

hmm...

maybe plain C instead of C++ without need redo headers?

The same problem exists. There is no working C header to Pas interface code
that works reliably. People have been trying to come up with this for nearly a
decade and there still is not one that you can plug in and it just works. C++
is an order of magnitude even worse. There are also RTL issues. Here are some
of the other issues according the Danny Thorpe -

"BCB code can link to and link in Delphi code, but Delphi code cannot
link in C++ .obj files and seamlessly retain the class structure.
Obj's with global procs are fine for Delphi, but the C++ class type
system is a superset of the Delphi class type system. Also, the Delphi
RTL is instrumented so that the C++ RTL can take over some core
operations, but the C++ RTL isn't set up to defer those same operations
to the Delphi RTL when the roles are reversed. So, your best bet is to
build a BCB application that links in or links to Delphi code."

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Your friends will know you better in the first minute you meet than your
acquaintances will know you in a thousand years. (R Bach)

Back to top
Roberto Della Pasqua
Guest





PostPosted: Tue Nov 29, 2005 5:57 pm    Post subject: Re: to Danny Thorpe Reply with quote

Quote:
Regarding my friend Roby:
We are actually good friends, are we not Roby? Smile

Sure :)




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.