Solved

DE-compile file DLL writtent by Delphi

Posted on 2004-10-12
5
1,458 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now