Solved

DE-compile file DLL writtent by Delphi

Posted on 2004-10-12
5
1,468 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
[X]
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
  • 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month6 days, 1 hour left to enroll

627 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