Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Delphi] Some problems I've got.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Sun May 04, 2008 2:42 pm    Post subject: [Delphi] Some problems I've got. Reply with quote

Here's some problems/questions I've got.
- Would it be a better idea, using DLLs instead of external units? Like putting all the procedures into the DLL, instead of an external unit?
I'm asking this, since I'm having some problems with, circular references, it's very annoying.
- Where can I find the Winsock component in Delphi 7? I've read it should be under Components -> Import ActiveX Control -> Microsoft Winsock.
But can't find it...

Thank you. Might not be answering within the next 20 hours, gotta go to bed & school.
BTW: I want Winsock because I'm converting some Visual Basic to Delphi.
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Sun May 04, 2008 2:58 pm    Post subject: Reply with quote

Hello,

To your first question:
Well, it's your own choice.
I myself like using external units more, because if I want to change some little thing in an function/procedure I just can edit it quickly and compile it with the other units.
With a dll you gotta open the project and edit it there and compile it.
But sometimes if I want to hold the source very clean or I want to use the dll in another language I do use dlls. (e.g. : For projects with MySQL stuff or so)

To your second question:
If you have delphi7 as you said, you should have the WinSock unit already.
But here is mine:
http://download.lima-city.de/crackcheck/WinSock.dcu
(Rightclick -> Save file as and put it in the Delphi/lib folder.)


Last edited by Reak on Sun May 04, 2008 4:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
rapion124
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Mar 2007
Posts: 1095

PostPosted: Sun May 04, 2008 3:43 pm    Post subject: Reply with quote

Use units if the stuff in the units are only for your current project. Make DLLs if you want to use your code in another language like C/C++.

Btw, why are you getting circular reference errors? Just add the uses list in the implementation section.
Back to top
View user's profile Send private message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Sun May 04, 2008 11:07 pm    Post subject: Reply with quote

rEakW0n wrote:
Hello,

To your first question:
Well, it's your own choice.
I myself like using external units more, because if I want to change some little thing in an function/procedure I just can edit it quickly and compile it with the other units.
With a dll you gotta open the project and edit it there and compile it.
But sometimes if I want to hold the source very clean or I want to use the dll in another language I do use dlls. (e.g. : For projects with MySQL stuff or so)

To your second question:
If you have delphi7 as you said, you should have the WinSock unit already.
But here is mine:
http://download.lima-city.de/crackcheck/WinSock.dcu
(Rightclick -> Save file as and put it in the Delphi/lib folder.)

Thank you very much Smile

rapion124 wrote:
Use units if the stuff in the units are only for your current project. Make DLLs if you want to use your code in another language like C/C++.

Btw, why are you getting circular reference errors? Just add the uses list in the implementation section.

Could you give me an example, by putting it in the implement?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites