| View previous topic :: View next topic |
| Author |
Message |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
Posted: Sun May 04, 2008 2:42 pm Post subject: [Delphi] Some problems I've got. |
|
|
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 |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Sun May 04, 2008 2:58 pm Post subject: |
|
|
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 |
|
 |
rapion124 Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Mar 2007 Posts: 1095
|
Posted: Sun May 04, 2008 3:43 pm Post subject: |
|
|
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 |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
Posted: Sun May 04, 2008 11:07 pm Post subject: |
|
|
| 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
| 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 |
|
 |
|