> Wow! Indeed it was quite easy.

:-)

> I was thinking of adding it to the Wiki.
> Would the FAQ be the proper place to have it?

Yes, FAQ is a good place. Start a topic "Microsoft .NET framework" and fill
the page with your ideas.
Thanks.
--
[EMAIL PROTECTED]
http://www.overbyte.be

----- Original Message ----- 
From: "Fredrik Larsson" <[EMAIL PROTECTED]>
To: "'ICS support mailing'" <twsocket@elists.org>
Sent: Monday, August 06, 2007 3:12 PM
Subject: Re: [twsocket] TWSocket for .Net and C#?


Wow! Indeed it was quite easy.

1. Create a .net package (recommendation from dr Bob at
http://www.drbob42.com/examines/examin55.htm)
2. Add the units.
3. Add the Borland VCL (the units implicity uses them so they are needed).
4. Compile
5. In VS2005 add a reference to the DLL and in the header:
using OverByte.Ics;
using OverByte.Ics.Units;

Then a simple code like this:

            lSocket = new TWSocket(null);
            lSocket.Addr = "127.0.0.1";
            lSocket.Port = "10001";
            lSocket.LineMode = true;
            //lSocket.LineEnd = (char)13 + (char)10;
            lSocket.OnSessionConnected += new
TSessionConnected(lSocket_OnSessionConnected);
            lSocket.OnDataAvailable += new
TDataAvailable(lSocket_OnDataAvailable);


            lSocket.Connect();

I was thinking of adding it to the Wiki. Would the FAQ be the proper place
to have it?

Regards, Fredrik.


-----Ursprungligt meddelande-----
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För
Francois Piette
Skickat: den 6 augusti 2007 13:05
Till: ICS support mailing
Ämne: Re: [twsocket] TWSocket for .Net and C#?

> I figure that it's v 6.0 that is compatible with Delphi.net?

There was also a V5 compatible, but it has not been maintened. You can find
on Delphi companion CD or at http://cc.codegear.com.
V6 is totally different regarding .NET: V6 is single source for both Win32
and .NET. I have updated it recently but it is not yet available for
download (I'm working on it for Highlander). I can send you a snap shot of
my sources if you need that latest one. Just ask.

> Does anyone know how to generate the dll so it can be used by VS2005
> or have a link to further information about it?
> Is it a simple "compile to .net library" or is it far more to it?

As far as I know, you just have to build an "assembly" using Delphi.NET and
you can then immediately use it in other environments such as VC.

--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware) Author of MidWare
(Multi-tier framework, freeware) http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to