Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

DE-compile file DLL writtent by Delphi

Posted on 2004-10-12
5
1,463 Views
Last Modified: 2012-08-14

Dear advisor !

Is it possible to de-compile a file DLL writtent by Delphi.
I already write an application by Visual FoxPro. But i know that there is  DEFOX to decompile VF. So i intent to write some DLL from Delphi and put DLL into VF.

Whether my solution is ok for safety

Thank for all consider
0
Comment
Question by:namcit99
  • 2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 12284779
Yes, it is possible to decompile a Delphi DLL to Assembler. It is NOT possible to convert a Delphi DLL to it's original sourcecode, though. There's just not information in the DLL (in general) to do a decompilation.
But why do you need to decompile the DLL if all you want to do is call the DLL from your FoxPro application? All you need to know is how to call DLL functions from FoxPro and know how to convert the syntax of the Delphi DLL methods to FoxPro headers so FoxPro knows which types of parameters it needs to pass.
But it might be easier to just create an ActiveX control in Delphi and use that from FoxPro. Or if FoxPro is a .NET based version, then use Delphi 8 for .NET to write the DLL.
0
 

Author Comment

by:namcit99
ID: 12284914

I do not need to decompile. What i ask, it is possible to decompile into original sourcecode

i write a simple dll
*--------
library aaaaa ;
function Total(X, Y: Integer): Integer; stdcall;
begin
  Total := x + y ;
end;
exports
  Total ;
begin
end.
*---------

I already compile to dll with name project1.dll

Please show me how to call that dll from Visual FoxPro 7.0



0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 12285046
>What i ask, it is possible to decompile into original sourcecode
definitivly no
0
 

Author Comment

by:namcit99
ID: 12285086

Yes, i know from answer.

How to call from VF when i write a dll like that
0
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 30 total points
ID: 12285238
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_foxhelp/html/lngdeclare___dll.asp

DECLARE INTEGER Total IN aaaaa.dll INTEGER X, INTEGER Y;

It's a bit of a guess, though. And there could be some type conflicts between FoxPro and Delphi, especially concerning strings. Which is why an ActiveX control would be a lot easier.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question