473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Convertibg VB program to Web

Is it possible to take a VB program and run it from the Web?

Any pointers/help would be very appreciated!

Thanks,
Harvey
Jan 11 '07 #1
9 3514
Max
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" <ec******@nowhere.comwrote in message
news:PX****************@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

Jan 11 '07 #2
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:
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" <ec******@nowhere.comwrote in message
news:PX****************@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

Jan 11 '07 #3
Max
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" <ec******@nowhere.comwrote in message
news:jC***********@bignews3.bellsouth.net...
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:
>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" <ec******@nowhere.comwrote in message
news:PX****************@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
Jan 12 '07 #4
Thanks for the pointers Max. I will look at asp.net, though I suspect
there will be a steep learning curve.

Harvey

Max wrote:
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" <ec******@nowhere.comwrote in message
news:jC***********@bignews3.bellsouth.net...
>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:
>>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" <ec******@nowhere.comwrote in message
news:PX****************@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
Jan 12 '07 #5

"eclipsme" <ec******@nowhere.comwrote in message
news:c1*************@bignews8.bellsouth.net...
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.
Jan 12 '07 #6
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" <my********@comcast.netschreef in bericht
news:68******************************@comcast.com. ..
>
"eclipsme" <ec******@nowhere.comwrote in message
news:c1*************@bignews8.bellsouth.net...
>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.


Jan 12 '07 #7
Steve Gerrard wrote:
"eclipsme" <ec******@nowhere.comwrote in message
news:c1*************@bignews8.bellsouth.net...
>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
Jan 13 '07 #8
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:
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" <my********@comcast.netschreef in bericht
news:68******************************@comcast.com. ..
>"eclipsme" <ec******@nowhere.comwrote in message
news:c1*************@bignews8.bellsouth.net...
>>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.


Jan 13 '07 #9
Max
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" <ec******@nowhere.comwrote in message
news:_t**************@bignews5.bellsouth.net...
Steve Gerrard wrote:
>"eclipsme" <ec******@nowhere.comwrote in message
news:c1*************@bignews8.bellsouth.net...
>>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

Jan 13 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: edgrsprj | last post by:
PROPOSED EARTHQUAKE FORECASTING COMPUTER PROGRAM DEVELOPMENT EFFORT Posted July 11, 2005 My main earthquake forecasting Web page is: http://www.freewebz.com/eq-forecasting/Data.html ...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
11
by: christopher diggins | last post by:
I am wondering if any can point me to any open-source library with program objects for C++ like there is in Java? I would like to be able to write things like MyProgram1 >> MyProgram2 >>...
1
by: Eric Whittaker | last post by:
hi all, im trying to write my first c++ program. a success, but i can't get the window to stay open after user enters input. it just automatically closes. right now the end of my program looks...
9
by: Hemal | last post by:
Hi All, I need to know the memory required by a c program. Is there any tool/utility which can give me the memory usage in terms of DATA segment, TEXT segment, BSS segment etc. I am working...
7
by: ibtc209 | last post by:
I just started programming in C, and I need some help with this problem. Your program will read the information about one MiniPoker hand, namely the rank and suit of the hand’s first card, and...
2
Banfa
by: Banfa | last post by:
Posted by Banfa The previous tutorial discussed what programming is, what we are trying to achieve, the answer being a list of instructions constituting a valid program. Now we will discuss how...
0
amitpatel66
by: amitpatel66 | last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations: Concurrent programs can be executed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.