Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 97,315
» Latest member: digitalcontrolcomco
» Forum threads: 2,426
» Forum posts: 11,371

Full Statistics

Online Users
There are currently 920 online users.
» 0 Member(s) | 917 Guest(s)
Applebot, Bing, Google

Latest Threads
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
53 minutes ago
» Replies: 1
» Views: 100
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 97
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 109
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 388
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 196
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 561
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 189
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,128
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 322
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 920

 
  Conflict With winsock
Posted by: tultalk - 08-24-2018, 05:52 PM - Forum: Indy - Replies (8)

Hi:

  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:

#include <winsock2.h>
namespace Winsock
{
typedef fd_set *PFDSet;
typedef fd_set TFDSet;
}

And a new set of error messages:

[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.

Thanks Robert

Print this item

  TreeView OnClick events are called twice
Posted by: JuergenS - 08-24-2018, 04:41 PM - Forum: IntraWeb General Discussion - Replies (3)

Hi,

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. Huh
This has been changed from version IW15.0.9.
I didn't modify any software !

Please help
Juergen

Print this item

  How I can decode TIdMessage from koi8-r to windows-1251?
Posted by: SergJP - 08-24-2018, 10:28 AM - Forum: Indy - Replies (6)

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>

     This is a multipart message in MIME format.

     --UMwhv1yjwbAJnDKFK8wyCH0CYSe2=_553g
     Content-Type: multipart/alternative;
     boundary="jEgWjeMCC35bF=_m8mr8EoHknZfRtWVKzB"

     --jEgWjeMCC35bF=_m8mr8EoHknZfRtWVKzB
     Content-Type: text/plain; charset="koi8-r"
     Content-Transfer-Encoding: 7bit
     Content-Disposition: inline

     TEST8


     --jEgWjeMCC35bF=_m8mr8EoHknZfRtWVKzB
     Content-Type: text/html; charset="koi8-r"
     Content-Transfer-Encoding: quoted-printable
     Content-Disposition: inline

     <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas=
     -microsoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:off=
     ice:word" xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml"=
     xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta http-equiv=3DCo=
     ntent-Type content=3D"text/html; charset=3Dkoi8-r"><meta name=3DGenera=
     tor content=3D"Microsoft Word 15 (filtered medium)"><style><!--
     /* Font Definitions */
     @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
     @font-face
      {font-family:Calibri;
      panose-1:2 15 5 2 2 2 4 3 2 4;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
      {margin:0cm;
      margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
     a:link, span.MsoHyperlink
    {mso-style-priority:99;
    color:#0563C1;
    text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed
    {mso-style-priority:99;
    color:#954F72;
    text-decoration:underline;}
    span.EmailStyle17
    {mso-style-type:personal-compose;
    font-family:"Calibri",sans-serif;
    color:windowtext;}
     =2EMsoChpDefault
      {mso-style-type:export-only;
      font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
    @page WordSection1
    {size:612.0pt 792.0pt;
    margin:2.0cm 42.5pt 2.0cm 3.0cm;}
    div.WordSection1
    {page:WordSection1;}
     --></style><!--[if gte mso 9]><xml>
    <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <o:shapelayout v:ext=3D"edit">
    <o:idmap v:ext=3D"edit" data=3D"1" />
    </o:shapelayout></xml><![endif]--></head><body lang=3DRU link=3D"#0563=
    C1" vlink=3D"#954F72"><div class=3DWordSection1><p class=3DMsoNormal><=
    span lang=3DEN-US>TEST8<o:p></o:p></span></p></div></body></html>

    --jEgWjeMCC35bF=_m8mr8EoHknZfRtWVKzB--

    --UMwhv1yjwbAJnDKFK8wyCH0CYSe2=_553g
    Content-Type: text/plain;
    name="=?KOI8-R?B?0M/e1MExLnR4dA==?="
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: attachment;
    filename="=?KOI8-R?B?0M/e1MExLnR4dA==?="
    ................................................
    --UMwhv1yjwbAJnDKFK8wyCH0CYSe2=_553g--
`



Attached Files Thumbnail(s)
   
Print this item

  Could not load SSL library
Posted by: mail@hvdboogaard.nl - 08-23-2018, 08:06 PM - Forum: IntraWeb General Discussion - Replies (6)

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?

Print this item

  Sending Byte List
Posted by: krshin - 08-22-2018, 07:19 PM - Forum: Indy - Replies (15)

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...

Print this item

  Multiple windows
Posted by: tobenschain - 08-21-2018, 01:43 PM - Forum: IntraWeb General Discussion - Replies (1)

What are my options for enabling user to look at two forms at the same time?

Thanks

Print this item

  Call a CGI app from IW
Posted by: lfeliz - 08-21-2018, 01:06 PM - Forum: IntraWeb General Discussion - Replies (2)

Hello,

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.  

Cheers!

Print this item

  https in IntraWeb 11.0.65
Posted by: I.Igor - 08-20-2018, 03:11 PM - Forum: IntraWeb General Discussion - Replies (3)

Hello. 
I use IntraWeb XI and Delphi 2007.
I would like https to use more encryption algorithms than SSL2 and SSL3. How can i do this?



Attached Files Thumbnail(s)
   
Print this item

  Fabulous IW Customer App
Posted by: kudzu - 08-19-2018, 04:54 PM - Forum: IntraWeb General Discussion - No Replies

https://www.atozed.com/2018/08/more-intr...lications/

Print this item

  Remove <meta> tag in Generated HTML
Posted by: Ascent99 - 08-16-2018, 04:23 PM - Forum: IntraWeb General Discussion - Replies (13)

For one of our Intraweb projects, there is a <meta> tag being rendered in the HTML header that identifies the product name and version of IntraWeb being used.  See example below:

<meta Name="GENERATOR" content="IntraWeb v15.0.9 Serial....">

For security purposes, we would like to exclude this tag from our production server.  How can we prevent Intraweb from injecting this tag?


The only thing I can find on this, is to change the intraweb source code, but that would require patching it every time there is an update released.

Current environment:
Delphi 10.2 and C++ Builder 10.2 Update 3
IntraWeb 15.0.9 Ultimate (no source)

Thanks!

Print this item