If your program doecn’t have a user interface and is merely an executable that you launch, you could rewrite it as an ActiveX DLL project. Call a public function that would run whatever code you are using then return your variable which you could use in a VB Script, ASP page, etc.
<%’Script page example:
myObject = Create.Object(“myProject.clsMyClass”)
myVariable = myObject.myFunction
myProject Function Example:
Public Function myFunction() as Float
Dim anyVariable as Float
‘Do stuff here
myFunction = anyVariable
Hope this helps!