Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Convertibg VB program to Web

Question posted by: eclipsme (Guest) on January 11th, 2007 04:05 PM
Is it possible to take a VB program and run it from the Web?

Any pointers/help would be very appreciated!

Thanks,
Harvey
Max's Avatar
Max
Guest
n/a Posts
January 11th, 2007
05:45 PM
#2

Re: Convertibg VB program to Web
That's kind of a broad question.

Are you asking if some one can download and run your program without an
installer ? then the answer now days is YES most people have the VB6 runtime
installed, but you can't add any extra controls outside the ones that come
up by default for a standard EXE. as you can't be sure the user will have
them.

You can an write Active x controls that run in a web page on IE these and
download and install all the components they need, but there are security
settings in most peoples browsers that you would need them to turn off to
allow them to run./install

On an intranet you could Write an active X document , a program that runs in
a browser, (I have never seen one that works but you can do it).

so you need to tell us a little more about what you are trying to do, so we
can help

cheers

Max

"eclipsme" <eclipsme@nowhere.comwrote in message
news:PXtph.7598$u8.4882@bignews2.bellsouth.net...
Quote:
Is it possible to take a VB program and run it from the Web?
>
Any pointers/help would be very appreciated!
>
Thanks,
Harvey




eclipsme's Avatar
eclipsme
Guest
n/a Posts
January 11th, 2007
08:15 PM
#3

Re: Convertibg VB program to Web
Thanks Max. As you can see, I am just learning what questions to ask.

The client has a program written in VB - not sure what version just now.
He would like the program (or some modification of it) to actually run
from a browser - not downloaded. We have all the source code, etc.

The program begins with a form, then performs calculations based on the
form input, and outputs certain reports. Think agents getting and
printing out insurance quotes on line.

I am experienced in web design/layout, but not so much in VB, though I
have dabbled a bit. The owner of the program does know VB. He actually
wrote it, so could be in a good position to alter it as need be. I could
probably figure out the simple stuff, if somebody told me what I was
looking for.

Then the next question, I suppose, is whether this is the best solution
in this case. Are there other ways of doing calculations, etc, that
would be more straight forward? I don't really like the part where you
say "(I have never seen one that works but you can do it)"

Thanks again,
Harvey

Max wrote:
Quote:
That's kind of a broad question.
>
Are you asking if some one can download and run your program without an
installer ? then the answer now days is YES most people have the VB6 runtime
installed, but you can't add any extra controls outside the ones that come
up by default for a standard EXE. as you can't be sure the user will have
them.
>
You can an write Active x controls that run in a web page on IE these and
download and install all the components they need, but there are security
settings in most peoples browsers that you would need them to turn off to
allow them to run./install
>
On an intranet you could Write an active X document , a program that runs in
a browser, (I have never seen one that works but you can do it).
>
so you need to tell us a little more about what you are trying to do, so we
can help
>
cheers
>
Max
>
"eclipsme" <eclipsme@nowhere.comwrote in message
news:PXtph.7598$u8.4882@bignews2.bellsouth.net...
Quote:
>Is it possible to take a VB program and run it from the Web?
>>
>Any pointers/help would be very appreciated!
>>
>Thanks,
>Harvey

>
>


Max's Avatar
Max
Guest
n/a Posts
January 12th, 2007
08:05 AM
#4

Re: Convertibg VB program to Web
Ok now this is a VB6 news group so discussion of other versions is not
encouraged.

Having said that, my best advice is as follows.

VB6 is focused on client side or Windows Forms Apps, you can do some cools
things on a web server with com components written in VB6 also.

but it sounds like you are looking for a browser application and thses days
it would be best to look at ASP.net.

ASP.net is a big jump forward from classic ASP and can produce very capable
web based applications rather quickly. when you add AJAX you can get a very
smooth web based application and You may even be able to port some of the
business logic from the old VB code over but it's not a trivial task.

Your web experience would help here, however apart from the web model being
differnt to the windows forms model the VB language has changed quite a lot
from VB6 that's the reason this group is seperate and focused on VB5/6,
there are plenty of dot net groups.

ASP.net 2.0 and MS reporting services are the kind of thing I would look at,
particulary if you want cross browser support. Others may have other ideas.

I hope this helps


Max



"eclipsme" <eclipsme@nowhere.comwrote in message
news:jCxph.3$FL5.1@bignews3.bellsouth.net...
Quote:
Thanks Max. As you can see, I am just learning what questions to ask.
>
The client has a program written in VB - not sure what version just now.
He would like the program (or some modification of it) to actually run
from a browser - not downloaded. We have all the source code, etc.
>
The program begins with a form, then performs calculations based on the
form input, and outputs certain reports. Think agents getting and printing
out insurance quotes on line.
>
I am experienced in web design/layout, but not so much in VB, though I
have dabbled a bit. The owner of the program does know VB. He actually
wrote it, so could be in a good position to alter it as need be. I could
probably figure out the simple stuff, if somebody told me what I was
looking for.
>
Then the next question, I suppose, is whether this is the best solution in
this case. Are there other ways of doing calculations, etc, that would be
more straight forward? I don't really like the part where you say "(I have
never seen one that works but you can do it)"
>
Thanks again,
Harvey
>
Max wrote:
Quote:
>That's kind of a broad question.
>>
>Are you asking if some one can download and run your program without an
>installer ? then the answer now days is YES most people have the VB6
>runtime installed, but you can't add any extra controls outside the ones
>that come up by default for a standard EXE. as you can't be sure the user
>will have them.
>>
>You can an write Active x controls that run in a web page on IE these and
>download and install all the components they need, but there are security
>settings in most peoples browsers that you would need them to turn off to
>allow them to run./install
>>
>On an intranet you could Write an active X document , a program that runs
>in a browser, (I have never seen one that works but you can do it).
>>
>so you need to tell us a little more about what you are trying to do, so
>we can help
>>
>cheers
>>
>Max
>>
>"eclipsme" <eclipsme@nowhere.comwrote in message
>news:PXtph.7598$u8.4882@bignews2.bellsouth.net...
Quote:
>>Is it possible to take a VB program and run it from the Web?
>>>
>>Any pointers/help would be very appreciated!
>>>
>>Thanks,
>>Harvey

>>



eclipsme's Avatar
eclipsme
Guest
n/a Posts
January 12th, 2007
12:35 PM
#5

Re: Convertibg VB program to Web
Thanks for the pointers Max. I will look at asp.net, though I suspect
there will be a steep learning curve.

Harvey

Max wrote:
Quote:
Ok now this is a VB6 news group so discussion of other versions is not
encouraged.
>
Having said that, my best advice is as follows.
>
VB6 is focused on client side or Windows Forms Apps, you can do some cools
things on a web server with com components written in VB6 also.
>
but it sounds like you are looking for a browser application and thses days
it would be best to look at ASP.net.
>
ASP.net is a big jump forward from classic ASP and can produce very capable
web based applications rather quickly. when you add AJAX you can get a very
smooth web based application and You may even be able to port some of the
business logic from the old VB code over but it's not a trivial task.
>
Your web experience would help here, however apart from the web model being
differnt to the windows forms model the VB language has changed quite a lot
from VB6 that's the reason this group is seperate and focused on VB5/6,
there are plenty of dot net groups.
>
ASP.net 2.0 and MS reporting services are the kind of thing I would look at,
particulary if you want cross browser support. Others may have other ideas.
>
I hope this helps
>
>
Max
>
>
>
"eclipsme" <eclipsme@nowhere.comwrote in message
news:jCxph.3$FL5.1@bignews3.bellsouth.net...
Quote:
>Thanks Max. As you can see, I am just learning what questions to ask.
>>
>The client has a program written in VB - not sure what version just now.
>He would like the program (or some modification of it) to actually run
>from a browser - not downloaded. We have all the source code, etc.
>>
>The program begins with a form, then performs calculations based on the
>form input, and outputs certain reports. Think agents getting and printing
>out insurance quotes on line.
>>
>I am experienced in web design/layout, but not so much in VB, though I
>have dabbled a bit. The owner of the program does know VB. He actually
>wrote it, so could be in a good position to alter it as need be. I could
>probably figure out the simple stuff, if somebody told me what I was
>looking for.
>>
>Then the next question, I suppose, is whether this is the best solution in
>this case. Are there other ways of doing calculations, etc, that would be
>more straight forward? I don't really like the part where you say "(I have
>never seen one that works but you can do it)"
>>
>Thanks again,
>Harvey
>>
>Max wrote:
Quote:
>>That's kind of a broad question.
>>>
>>Are you asking if some one can download and run your program without an
>>installer ? then the answer now days is YES most people have the VB6
>>runtime installed, but you can't add any extra controls outside the ones
>>that come up by default for a standard EXE. as you can't be sure the user
>>will have them.
>>>
>>You can an write Active x controls that run in a web page on IE these and
>>download and install all the components they need, but there are security
>>settings in most peoples browsers that you would need them to turn off to
>>allow them to run./install
>>>
>>On an intranet you could Write an active X document , a program that runs
>>in a browser, (I have never seen one that works but you can do it).
>>>
>>so you need to tell us a little more about what you are trying to do, so
>>we can help
>>>
>>cheers
>>>
>>Max
>>>
>>"eclipsme" <eclipsme@nowhere.comwrote in message
>>news:PXtph.7598$u8.4882@bignews2.bellsouth.net...
>>>Is it possible to take a VB program and run it from the Web?
>>>>
>>>Any pointers/help would be very appreciated!
>>>>
>>>Thanks,
>>>Harvey

>


Steve Gerrard's Avatar
Steve Gerrard
Guest
n/a Posts
January 12th, 2007
03:15 PM
#6

Re: Convertibg VB program to Web

"eclipsme" <eclipsme@nowhere.comwrote in message
news:c1Mph.316$Ln.39@bignews8.bellsouth.net...
Quote:
Thanks for the pointers Max. I will look at asp.net, though I suspect there
will be a steep learning curve.
>


Max is right that going to a web page is the way to go.
In addition to ASP.Net, you could also consider "regular" ASP, which came before
it.
That was more like VB6, with regular old VB scripting for the pages.
It is a learning curve either way.



Angelo Geels's Avatar
Angelo Geels
Guest
n/a Posts
January 12th, 2007
05:05 PM
#7

Re: Convertibg VB program to Web
but when i make in vb 6 an activeX control, and hit F5, it will be run in an
IE session, and my activex can be tested from there. i think he means that,
like you can add a vb6 app to his site just like a flash movie can do.

angelo.

"Steve Gerrard" <mynamehere@comcast.netschreef in bericht
news:682dnZSy_J2qLDrYnZ2dnUVZ_hynnZ2d@comcast.com. ..
Quote:
>
"eclipsme" <eclipsme@nowhere.comwrote in message
news:c1Mph.316$Ln.39@bignews8.bellsouth.net...
Quote:
>Thanks for the pointers Max. I will look at asp.net, though I suspect
>there will be a steep learning curve.
>>

>
Max is right that going to a web page is the way to go.
In addition to ASP.Net, you could also consider "regular" ASP, which came
before it.
That was more like VB6, with regular old VB scripting for the pages.
It is a learning curve either way.
>
>




eclipsme's Avatar
eclipsme
Guest
n/a Posts
January 13th, 2007
01:35 AM
#8

Re: Convertibg VB program to Web
Steve Gerrard wrote:
Quote:
"eclipsme" <eclipsme@nowhere.comwrote in message
news:c1Mph.316$Ln.39@bignews8.bellsouth.net...
Quote:
>Thanks for the pointers Max. I will look at asp.net, though I suspect there
>will be a steep learning curve.
>>

>
Max is right that going to a web page is the way to go.
In addition to ASP.Net, you could also consider "regular" ASP, which came before
it.
That was more like VB6, with regular old VB scripting for the pages.
It is a learning curve either way.
>
>

Yes, I have been confused by the diff between asp and asp.net, though
this is not the place to discuss that, I suppose. But when you say 'VB
scripting', how is that different from VB? I guess I am wondering if the
guy that wrote the VB program is going to be able to provide the
scripting needed to do the calculations needed to go from the form to
the report, if I use asp.

Harvey

eclipsme's Avatar
eclipsme
Guest
n/a Posts
January 13th, 2007
01:45 AM
#9

Re: Convertibg VB program to Web
hmm... I am not sure if this is what I am asking or not. Again - new
terms for me. I'm a little embarrassed to admit it, given how long I
have been in computers, but I suppose we all pay attention to certain
aspects of computerdom and turn blinders to other things.

Are you saying that an activeX control (I'll finally have to look that
one up, too) can (is?) a VB program that can run in a browser? I am
guessing that if that is true, it is not just any VB program, but one
written in a specific fashion.

Harvey

Angelo Geels wrote:
Quote:
but when i make in vb 6 an activeX control, and hit F5, it will be run in an
IE session, and my activex can be tested from there. i think he means that,
like you can add a vb6 app to his site just like a flash movie can do.
>
angelo.
>
"Steve Gerrard" <mynamehere@comcast.netschreef in bericht
news:682dnZSy_J2qLDrYnZ2dnUVZ_hynnZ2d@comcast.com. ..
Quote:
>"eclipsme" <eclipsme@nowhere.comwrote in message
>news:c1Mph.316$Ln.39@bignews8.bellsouth.net...
Quote:
>>Thanks for the pointers Max. I will look at asp.net, though I suspect
>>there will be a steep learning curve.
>>>

>Max is right that going to a web page is the way to go.
>In addition to ASP.Net, you could also consider "regular" ASP, which came
>before it.
>That was more like VB6, with regular old VB scripting for the pages.
>It is a learning curve either way.
>>
>>

>
>


Max's Avatar
Max
Guest
n/a Posts
January 13th, 2007
06:45 AM
#10

Re: Convertibg VB program to Web
Here is the history as I see it

VB 6 had a few sub versions
VBA (Visual Basic for applications)
VB Script (Visual Basic Script)

VBA can still be found in Microsoft Office and as a matter of interest will
also be found in the new office 2007
it has the same IDE (Development environment) as VB6 but the forms engine is
different. Non interface code is interchangeable

VB script has no forms engine and is still supported by Windows XP it's
used on a desktop or server to automate system tasks, it is also supported
in the IE and can be used in place of Java Script but you never see much of
this because it is not cross browser friendly.

Then from VB script came ASP now called classic ASP

ASP is like PHP or JSP a way of placing script code that is run at the
server into a page to allow you to write dynamic data driven pages and once
again with a few minor differences VB 6 windows application code is
interchangeable with VB script.

In 2001 Microsoft came out with the Dot Net framework that included a new
version of ASP, ASP.NET.

ASP.NET had many advantages over Classic ASP.

Classic ASP like PHP, mixes scripting code with the HTML to build the page,
you find your self using scrip to write HTML back to the browser this makes
it a little hard to see what is happening when you are trying to work on
code some one else has written as it is often mixed with up the HTML.

Also the code is not compiled rather it is passed by the server each time a
page is called.

ASP.NET provides a frame work to code against that takes care of all of the
HTML rendering, allowing the developer to work with a web page in the same
way he did with a windows application, drag a control on to a form double
click it and put code in the event you want to trap. This way of developing
is a big part of what made VB6 so popular for Windows Applications.

In your case put a text box and button on the web form and in the "one
click" event of the button put in the code to calculate the result.

ASP.NET compiles the application to a DLL bring the all advantages compiling
gives you and the code separate from the HTML.

Along with ASP.NET came a whole new version of Visual Studio including a new
version of VB (officially VB7) that fitted with the new Dot Net frame work.
VB in ASP.NET is this new language.

VB6 people soon found that unlike previous upgrades they could not easily
port their VB 6 applications to VB Dot Net and even if they could it seemed
to many like a backward step because some of the coolest features of VB 6
were gone as was every control they knew and therefore much of their code
plus some of the syntax had changed in the language.

For ASP there is no upgrade path to ASP Dot Net you just have to re write
it, (some business logic can be reused taking into account the changes to
the VB language in Dot Net)

So now you have thousands of people around the world who have 1000's of
lines of code in applications that must stay in VB6 and Classic ASP I am
one.

Microsoft have done some work in the latest of Visual Studio 2005 to
address this and they have produced documents to help you update the code
for example there is a tool that lets you "upgrade" snippets of VB6 code to
Dot Net this works better then trying to port an entire application and may
help you in this task.

So what do people do

I maintain and continue to develop several existing apps in classic ASP and
VB6.

However I start new things in VB 2005. That is a personal choice but that's
what I do.

For your choice you will need to workout if this is something that will be
updated in the future and how complex the logic routines are in the app you
are trying to replicate,

The guy who wrote it may be able to use the resources available to convert
his code to VB Dot Net 2005, If not then a classic ASP app my be what you
end up with you can run classic ASP and ASP.NET on the same server in the
same application

to use classic ASP all you need is Note Pad and IIS server built into XP
pro, there are tools for this like the script editor in Front Page.

For Dot Net you can do the same but are better off with Visual Studio or
Visual Web Developer free from www.asp.net

I hope this information helps you.

Max







"eclipsme" <eclipsme@nowhere.comwrote in message
news:_tXph.353$653.33@bignews5.bellsouth.net...
Quote:
Steve Gerrard wrote:
Quote:
>"eclipsme" <eclipsme@nowhere.comwrote in message
>news:c1Mph.316$Ln.39@bignews8.bellsouth.net...
Quote:
>>Thanks for the pointers Max. I will look at asp.net, though I suspect
>>there will be a steep learning curve.
>>>

>>
>Max is right that going to a web page is the way to go.
>In addition to ASP.Net, you could also consider "regular" ASP, which came
>before it.
>That was more like VB6, with regular old VB scripting for the pages.
>It is a learning curve either way.
>>
>>

Yes, I have been confused by the diff between asp and asp.net, though this
is not the place to discuss that, I suppose. But when you say 'VB
scripting', how is that different from VB? I guess I am wondering if the
guy that wrote the VB program is going to be able to provide the scripting
needed to do the calculations needed to go from the form to the report, if
I use asp.
>
Harvey




 
Not the answer you were looking for? Post your question . . .
189,798 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors