Running C Code & Inserting it into SQL

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
fecophobia
Forum Newbie
Posts: 11
Joined: Sun Mar 05, 2006 9:59 pm

Running C Code & Inserting it into SQL

Post by fecophobia »

I want to modify osDate to do astrology searches, so I need to insert astrological data into the database, but my source for the calculations is written in C. Should I make it an ActiveX control, or is there some way I can get it to execute server side and insert the data without downloading anything? What is the best way to integrate C code into a server-side application?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If you have the source, why not port it?
fecophobia
Forum Newbie
Posts: 11
Joined: Sun Mar 05, 2006 9:59 pm

Post by fecophobia »

Port it to what, PHP?
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

fecophobia wrote:Port it to what, PHP?
I'm pretty sure thats what was meant...

Honestly...if you have to ask that question your better off following the path of least resistance...that being port the code to PHP.

IMHO ActiveX would not be a very good solution...especially if it's written in C...

ATL is the only library that should be used to write anything ActiveX
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I'd probably have a look at PECL_Codegen and wrap it as an extension...
Post Reply