Find Jobs
Hire Freelancers

Converting delphi code from cgi to apache 1.3 shared module

$30-5000 USD

Closed
Posted about 19 years ago

$30-5000 USD

Paid on delivery
I've a simple delphi cgi code which i need converted to apache shared module to handle heavier load - because i encounter apache 1.3 "Internal Server Error" everytime i try to execute it too many times. Please also suggest how to run the module using browser interface, e.g. to run cgi is just http://localhost/[login to view URL] As you can see below, this code is used to run a php using php in cli mode. In practice, i encounter [login to view URL] - Application Error The application failed to initialize properly (0xc0000142). Click on OK to terminate de application. Pls also suggest how this can be resolved. Thanks. program receivesms; {$APPTYPE CONSOLE} uses windows, sysutils, ShellApi; var s:string; res:string; Buffer: array[0..4095] of Char; rslt:integer; msg:string; begin SetString(Res, Buffer, GetEnvironmentVariable(PChar('QUERY_STRING'), Buffer, SizeOf(Buffer))); s := 'c:\[login to view URL] '+'"'+res+'"'; //resd:=UrlDecode(res); //s := '"'+res+'"'; writeln('Content type: text/html'); writeln; writeln(s); rslt:=ShellExecute(0, 'open','c:\[login to view URL]',PChar(s), nil, SW_HIDE); if rslt <= 32 then begin case rslt of 0, se_err_OOM: msg := 'Out of memory/resources'; error_File_Not_Found: msg := 'File not found'; error_Path_Not_Found: msg := 'Path not found'; error_Bad_Format: msg := 'Damaged or invalid exe'; se_err_AccessDenied: msg := 'Access denied'; se_err_NoAssoc, se_err_AssocIncomplete: msg := 'Filename association invalid'; se_err_DDEBusy, se_err_DDEFail, se_err_DDETimeOut: msg := 'DDE error'; se_err_Share: msg := 'Sharing violation'; else msg := 'no text'; end; writeln('Exception when executing: '+msg); end; end. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables): a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform win32
Project ID: 3518348

About the project

2 proposals
Remote project
Active 19 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $19 USD for this job
User Avatar
See private message.
$21.25 USD in 1 day
4.9 (246 reviews)
5.4
5.4
User Avatar
See private message.
$17 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SINGAPORE
Singapore, Singapore
5.0
139
Member since Aug 31, 2005

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.