Search found 709 matches

by Lena
Wed Jan 11, 2012 2:24 am
Forum: Technical
Topic: TIdTCPServer Execute
Replies: 13
Views: 53178

Re: TIdTCPServer Execute

If I have 20-25 devices that send data every 3-5 seconds, it will be correct now? void __fastcall TForm1::IdTCPServer1Connect(TIdContext *AContext) { AContext->Connection->IOHandler->ReadTimeout = 1000; } void __fastcall TFormListenPort::IdTCPServer2Execute(TIdContext *AContext) { String S = AContex...
by Lena
Mon Jan 09, 2012 4:09 am
Forum: Technical
Topic: TIdTCPServer Execute
Replies: 13
Views: 53178

Re: TIdTCPServer Execute

If I use this code in my situation:

Code: Select all

void __fastcall TFormListenPort::IdTCPServer2Execute(TIdContext *AContext)
{
    String S = AContext->Connection->IOHandler->ReadLn();
    //use S
}
processor of my computer busy 100%!
by Lena
Sun Jan 08, 2012 2:45 am
Forum: Technical
Topic: TIdTCPServer Execute
Replies: 13
Views: 53178

TIdTCPServer Execute

Several devices every five seconds send the data packets. What code more correct for handle? 1. void __fastcall TFormListenPort::IdTCPServer2Execute(TIdContext *AContext) { if( AContext->Connection->IOHandler->InputBuffer->Size < 2 ) { AContext->Connection->IOHandler->CheckForDataOnSource(1);//What ...
by Lena
Mon Nov 28, 2011 10:10 am
Forum: Technical
Topic: midas.dll (ClientDataSet)
Replies: 12
Views: 67315

Re: midas.dll (ClientDataSet)

Can you copy Midas.dll to the same directory as your executable on the other computer? Steve. Yes I do it in all my old projects. I know if I copy Midas.dll to the same directory as my executable I fix Error loading MIDAS.DLL But I want add Midas inside in my EXE like in Delphi. I've heard that it'...
by Lena
Fri Nov 25, 2011 7:05 am
Forum: Technical
Topic: midas.dll (ClientDataSet)
Replies: 12
Views: 67315

Re: midas.dll (ClientDataSet)

This may just "muddy the waters" since I don't use XE2 but 2010. You may have to adjust accordingly. Midas (now DataSnap) is included with C++Builder in the Developer and higher versions. Having said that, I have read that the C++ source code was included in Delphi 2010. It was located in C:\Progra...
by Lena
Fri Nov 25, 2011 6:58 am
Forum: Technical
Topic: midas.dll (ClientDataSet)
Replies: 12
Views: 67315

Re: midas.dll (ClientDataSet)

I still use BCB 2009 (I hope to upgrade one day) and I have recently released a program that uses TClientDataSet the same way I always release a program: I set DynamicRTL to false and I remove all runtime packages. The resulting executable created in this manner runs just fine with an embedded TCli...
by Lena
Mon Nov 21, 2011 4:40 am
Forum: Technical
Topic: midas.dll (ClientDataSet)
Replies: 12
Views: 67315

midas.dll (ClientDataSet)

Delphi includes a unit, named MidasLib, which contains the routines found in midass.dll, permitting you to compile this support directly into your application.
How integrate midas.dll in application in C++ Builder XE2? What steps should I do?
Thanks.
by Lena
Sun Nov 20, 2011 4:16 am
Forum: Technical
Topic: ATL
Replies: 5
Views: 22733

Re: ATL

HsiaLin wrote: ie...add c:\program files\embarcadero\rad studio\9.0\include\windows\sdk\atl to your Includes paths
I add but not works.
Does anyone try to use ATL in XE-XE2? Advice me please on how steps?
by Lena
Sat Nov 19, 2011 5:12 am
Forum: Technical
Topic: ATL
Replies: 5
Views: 22733

Re: ATL

What exactly does not work? You need to be more specific. 1. Copy folder: Program Files\CodeGear\RAD Studio\6.0\include\atl 2. Paste this folder in: Program Files\Embarcadero\RAD Studio\9.0\include\windows\sdk 3. Open new project and add: #include <atl\atlvcl.h> 4. When Run I got: [BCC32 Error] atl...
by Lena
Fri Nov 18, 2011 11:40 am
Forum: Technical
Topic: ATL
Replies: 5
Views: 22733

ATL

From C++ Builder XE ATL not supported: http://docwiki.embarcadero.com/RADStudio/en/C%2B%2BBuilder_Uses_DAX_for_ActiveX_and_COM I try to use this recommendation: “Copy the include\ATL directory from your previous product installation to the following directory in your XE product installation”. I try ...
by Lena
Wed Nov 02, 2011 2:46 am
Forum: News
Topic: What's coming in RAD Studio XE2
Replies: 14
Views: 94452

Re: What's coming in RAD Studio XE2

Update 2 is now available for XE2 versions of Delphi, C + + Builder and RadPHP. You can download it by using the "Check for Updates" Those who have Windows XP will need to download Update from the page User EDN. RAD Studio XE2 Update 2 Update 2 for Delphi, C + + Builder and RAD Studio XE2 - http://...
by Lena
Thu Oct 20, 2011 6:47 am
Forum: News
Topic: What's coming in RAD Studio XE2
Replies: 14
Views: 94452

Re: What's coming in RAD Studio XE2

Audits for C++ in C++ Builder XE2: http://cc.embarcadero.com/item/28578
by Lena
Thu Oct 13, 2011 10:04 am
Forum: Technical
Topic: IP Addresses Local to Switch
Replies: 7
Views: 23196

Re: IP Addresses Local to Switch

by Lena
Wed Oct 05, 2011 6:36 am
Forum: Technical
Topic: TIdUDPServer
Replies: 6
Views: 36631

Re: TIdUDPServer

Solution:
IdUDPClient1->Send(Edit2->Text, TEncoding::UTF8);

Memo1->Lines->Add(BytesToString(AData, TEncoding::UTF8));
by Lena
Wed Oct 05, 2011 5:14 am
Forum: Technical
Topic: TIdUDPServer
Replies: 6
Views: 36631

Re: TIdUDPServer

I try to use this example: http://www.youtube.com/watch?v=hCF1e8Z2 ... efresh_sun
I have problem if I sent russian charset (привет). I receive "??????". How I can fix it?