How can be done a data validation for the user input in a db aware control ?
Can be used one of the control events ?
Must be used Javascript ?
Thank you.
Have program BCB5 Indy 9? to upload txt files to site among other things. Using Indy component IdFTP the files are truncated at 1440 or 2880??
I tried ICS test program and it worked fine no trunction. I deleted Indy component and added ICS and immediate got errors:
[C++ Error] winsock.h(56): E2015 Ambiguity between 'u_int' and 'Idwinsock2::u_int'
[C++ Error] winsock.h(64): E2015 Ambiguity between 'fd_set' and '_fastcall Idwinsock2::fd_set(int,TFDSet &)'
[C++ Error] winsock.h(64): E2015 Ambiguity between 'fd_set' and '_fastcall Idwinsock2::fd_set(int,TFDSet &)'
[C++ Error] winsock.h(171): E2015 Ambiguity between 'u_long' and 'Idwinsock2::u_long'
[C++ Error] winsock.h(272): E2015 Ambiguity between 'u_char' and 'Idwinsock2::u_char'
[C++ Error] winsock.h(273): E2015 Ambiguity between 'u_short' and 'Idwinsock2::u_short'
and on and on
I deleted the ICS component and the errors were still there.
I invoked a a conditional _WINSOCKAPI_
and changed WinSock.hpp:
[C++ Error] winsock2.h(104): E2015 Ambiguity between 'u_int' and 'Idwinsock2::u_int'
[C++ Error] winsock2.h(108): E2015 Ambiguity between 'fd_set' and '_fastcall Idwinsock2::fd_set(int,TFDSet &)'
[C++ Error] winsock2.h(108): E2015 Ambiguity between 'fd_set' and '_fastcall Idwinsock2::fd_set(int,TFDSet &)'
[C++ Error] winsock2.h(220): E2015 Ambiguity between 'u_long' and 'Idwinsock2::u_long'
[C++ Error] winsock2.h(321): E2015 Ambiguity between 'u_char' and 'Idwinsock2::u_char'
[C++ Error] winsock2.h(322): E2015 Ambiguity between 'u_short' and 'Idwinsock2::u_short'
[C++ Error] winsock2.h(323): E2015 Ambiguity between 'u_long' and 'Idwinsock2::u_long'
and on and on.
There are other Indy components in my program on other forms and I doubt deleting them all would help given that program was building fine before putting the ICS component on form.
Put Indy component back on problem form and still get same errors.
Help!! Pounding head against wall. Something seriously wrong with how these components work.
I'm using C++Builder 10.2 Update 3 and IW 15.0.10.
In this version the OnClick event for the TIWTreeView but also for each single node is called twice always.
This has been changed from version IW15.0.9.
I didn't modify any software !
I use Embarcadero C++Builder 10.2 Tokyo with Indy 10. The task is to check emails via POP3. I can get emails, but I don't know how to decode their subjects, attachment file name, etc from koi8-r to windows-1251 or UTF-8. Can anybody help me?
Code:
Return-path: <babichev@meccanosoft.com>
Envelope-to: ear@meccanosoft.com
Delivery-date: Thu, 12 Jul 2018 14:00:33 +0300
Received: from [213.79.95.226] (helo=pccomerc)
by server120.hosting.reg.ru with esmtpa (Exim 4.90_1)
(envelope-from <babichev@meccanosoft.com>)
id 1fdZKr-0002FS-1c
for ear@meccanosoft.com; Thu, 12 Jul 2018 14:00:33 +0300
From: =?KOI8-R?B?4sHCyd7F1yDzxdLHxco=?= <babichev@meccanosoft.com>
To: ear@meccanosoft.com
Subject: test8
Date: Thu, 12 Jul 2018 14:00:29 +0300
Message-Id: <006901d419cf$8e2aeed0$aa80cc70$@meccanosoft.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="UMwhv1yjwbAJnDKFK8wyCH0CYSe2=_553g"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdQZz4RBq8MEckA1Rq6W+ide2hSKlw==
Content-Language: ru
In-Reply-To: <006901d419cf$8e2aeed0$aa80cc70$@meccanosoft.com>
Hello,
I use registerd Intraweb 14.2.8 Ultimate and Indy 10.6.2.5366 Delphi 10.2.3
And openssl-1.0.2o-i386-win32.zip from Fulgan
I have put the dll’s in the same map as the program dll (and in windows/system32, and windows/SysWow64 for trying)
The prog is 32 bit
Snippet from program:
Code:
try
try
Strm := TStringStream.Create;
IdHTTP1 := TIdHTTP.Create(nil);
LHandler := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
LHandler.SSLOptions.certfile := certfile;
LHandler.SSLOptions.keyfile := keyfile;
LHandler.SSLOptions.Method := sslvTLSv1_2; // sslvSSLv23;
LHandler.SSLOptions.Mode := sslmBoth;
LHandler.SSLOptions.VerifyMode := [];
LHandler.SSLOptions.VerifyDepth := 0;
IdHTTP1.IOHandler := LHandler;
// alleen voor debug anders regel hieronder: Strm.LoadFromFile(UserSession.Exportfilenaam);
UserSession.XMLDoc1.SaveToStream(Strm);
IdHTTP1.Request.ContentType := 'text/xml';
IWMemo1.Lines.Add(IdHTTP1.Post(UserSession.nxT_Algpar.FieldByName('IDeal_Site_URL').AsString, Strm));
finally
Strm.Free;
LHandler.Free;
IdHTTP1.Free;
end;
except
on E: Exception do
begin
IWMemo1.Lines.Add(E.ClassName);
IWMemo1.Lines.Add(E.Message);
// Writeln(E.ClassName, ': ', E.Message);
end;
end;
When I run the prog as SA all goes well.
When I run it as a ISAPI dll under Abyss or IIS I get an error:
EIdOSSLCouldNotLoadSSLLibrary
Could not load SSL library.
Who knows what is wrong?
I need to send an array of bytes to client connected to TIdTCPServer, I try with:
Code:
procedure TFServer.btnSendClick(Sender: TObject);
var
tmpList : TList;
contexClient : TidContext;
i : integer;
begin
try
tmpList := IdTCPServer.Contexts.LockList;
finally
IdTCPServer.Contexts.UnlockList;
end;
i := 0;
while ( i < tmpList.Count ) do begin
contexClient := tmpList[i];
contexClient.Connection.IOHandler.WriteBufferOpen;
try
contexClient.Connection.IOHandler.WriteLn(#$ea#$89#$ef);
except
contexClient.Connection.IOHandler.WriteBufferCancel;
end;
contexClient.Connection.IOHandler.WriteBufferClose;
i := i + 1;
end;
end;
and I get memory error I try few scenarios with write but same error is here :-(
Is there some solution to send bytes, because another site is hardware with firmware who need array of bytes in TCP connection.
Thanks for the help and assistance in the advance...
I have an application deployed as a service on AWS behind a Load Balancer in which I use an external CGI call to another windows server running apache or IIS to generate reports etc... the CGI exe is a nice wrapper around all the report objects. The original reason for this was due to some issues or bugs I had that resulted in IW app crashing with the reporting built into it. For longer running reports I implement a report queue which has other service based process running reports and extracting data and user just goes to report queue to retrieve, but the CGI is most used as it generates invoices, orders and small reports (outut as PDf files).
I previously asked in the EMB forum or Gitter if it was possible to just call he CGI exe from a Windows IW app. After all the CGI is a self contained exe that returns something to user in browser. This would let me call the CGI form the IW app and run the cgi exe on the same machine IW runs in. Just need to capture the output and send to the users session. This would also help me eliminate extra server instances just to run IIS or APache for report CGI EXE's. I know I can deploy to IIS or ASPX, and keep using CGI on same server, but I recall some responding (possibly Alex) that is could be possible.
Anyway, this would be really cool as I could use this in an app I am currently developing as it would also be good for scaling as every time I fire up a node, it can be self contained including the app and reporting.