Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   indy tcp alternative that works with activex (https://www.delphipraxis.net/184555-indy-tcp-alternative-works-activex.html)

drama22 5. Apr 2015 16:41

indy tcp alternative that works with activex
 
is there any alternative for indy library can work with activex ? i using indy into my tcp project but threds not working with activex or maybe there is some solve i can find about my project here ,, i asked about this in stack overflow and here is my question

http://stackoverflow.com/questions/2...40817#29440817

unfortunately the answer there is not working even in stand alone app , any suggestion about that ?

Zacherl 5. Apr 2015 18:05

AW: indy tcp alternative that works with activex
 
Im not that deep into ActiveX, but maybe MSDN-Library durchsuchenCoInitialize or MSDN-Library durchsuchenCoInitializeEx will solve your problem. You should try out
Delphi-Quellcode:
CoInitializeEx(nil, COINIT_MULTITHREADED)
.

sx2008 5. Apr 2015 21:20

AW: indy tcp alternative that works with activex
 
If you want to access websites over http/https there is a ActiveX CoClass (and a interface) inside the microsoft msxml2 library available.
http://en.wikipedia.org/wiki/XMLHttpRequest

drama22 5. Apr 2015 21:38

AW: indy tcp alternative that works with activex
 
Zitat:

Zitat von sx2008 (Beitrag 1296294)
If you want to access websites over http/https there is a ActiveX CoClass (and a interface) inside the microsoft msxml2 library available.
http://en.wikipedia.org/wiki/XMLHttpRequest

what is the incident between http/https to my question ? i asked about how to use indy tcp thred in activex.

sx2008 6. Apr 2015 03:51

AW: indy tcp alternative that works with activex
 
60% of the internet traffic is http/https. Undeniably it's the most important internet protocol.
Often developers can't see the advantage to build their software on top of the http protocol; instead they build their own TCP protocol.
(and fail to get the message framing right)
My post was just an offer. You didn't tell us any details about your problem, so don't expect answers that hits the bulls eye.

drama22 6. Apr 2015 17:50

AW: indy tcp alternative that works with activex
 
Zitat:

Zitat von sx2008 (Beitrag 1296307)
60% of the internet traffic is http/https. Undeniably it's the most important internet protocol.
Often developers can't see the advantage to build their software on top of the http protocol; instead they build their own TCP protocol.
(and fail to get the message framing right)
My post was just an offer. You didn't tell us any details about your problem, so don't expect answers that hits the bulls eye.

i didnt post details because i thought all details was on stack but any how am trying to transform my delphi project from VCL to ActiveX. I have issues with a client thread its unable to start and i cannot use my commands to send orders to server here is my whole project you can simply test it its connect to my server remotely

https://www.mediafire.com/?8iavxqn3zrahx9i

Zacherl 6. Apr 2015 20:59

AW: indy tcp alternative that works with activex
 
Did you try out CoInitialize?

drama22 6. Apr 2015 22:03

AW: indy tcp alternative that works with activex
 
Zitat:

Zitat von Zacherl (Beitrag 1296405)
Did you try out CoInitialize?

iam not using c++ and iam developing in delphi xe7

Zacherl 7. Apr 2015 02:20

AW: indy tcp alternative that works with activex
 
Zitat:

Zitat von drama22 (Beitrag 1296407)
Zitat:

Zitat von Zacherl (Beitrag 1296405)
Did you try out CoInitialize?

iam not using c++ and iam developing in delphi xe7

How is this API related to C++? Just call it like this
Delphi-Quellcode:
CoInitializeEx(nil, COINIT_MULTITHREADED)
and include
Delphi-Quellcode:
uses Winapi.ActiveX
.

drama22 7. Apr 2015 03:18

AW: indy tcp alternative that works with activex
 
Zitat:

Zitat von Zacherl (Beitrag 1296412)
Zitat:

Zitat von drama22 (Beitrag 1296407)
Zitat:

Zitat von Zacherl (Beitrag 1296405)
Did you try out CoInitialize?

iam not using c++ and iam developing in delphi xe7

How is this API related to C++? Just call it like this
Delphi-Quellcode:
CoInitializeEx(nil, COINIT_MULTITHREADED)
and include
Delphi-Quellcode:
uses Winapi.ActiveX
.


i added Winapi.ActiveX in my uses and call CoInitializeEx(nil, COINIT_MULTITHREADED) on create event i still have the same error and got disconnect from server


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:03 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz