Microsoft
Software
Hardware
Network
Question : Reusing a C++ object on a new call to a "main" method.
Hi All, A bizarre question i know but one I could do with finding out.
Basically my scenario is as follows:
I have a C++ "main" method which I have compiled to a CGI executable.
Within the "main" method a new "Connection" object is created each time the cgi executable is called and this "Connection" object is then used within the remainder of the main method.
The "Connection" object is used to open a new tcp/ip connection to a 3rd party server
This all works fine except I don't really want to open a new "Connection" every time as it slows down my processing. I want to be able to use an already open connection if one exists.
I'm not sure if this is possible though because I do need to instantiate or use a "Connection" object each time I call the "main" method.
Do you think this sounds feasible/possible? if so, would I need to somehow return a "Connection" object to my web client from the CGI program and reuse it when next calling the cgi executable?
Thanks for your help.
Would assign more than 500 points if I could.....................
....!
Answer : Reusing a C++ object on a new call to a "main" method.
please read this article to understand and solve the issue:
http://www.experts-exchang
e.com/arti
cles/Datab
ase/
Miscel
laneous/DI
STINCT-vs-
GROUP-BY-a
nd-why-doe
s-it-not-w
ork-
for-my
-query.htm
l
Random Solutions
Help using .delay
How to stablish a proper setup in MS Outlook 2003 encrypting mails
Setting Dell 2330dn Printer to Automatically Print from Multi-Purpose Tray
MS BI sample project
LDAP, Active Directory - Very specific priviledges
N00b trying to understand part of this CF page...
Reccomendations for RAID configuration for SQL Server 2005
C# Ref Parameter Question? How to call a method that has Ref parameter recursively?
rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed.
Columns cannot convert between unicode and non-unicode string data types.