Visual Basic With CGI help! 
Author Message
 Visual Basic With CGI help!

Hi!,

I like to know just a few things about CGI,
hope someone can tell me what to do...

First, I've finally a CGI-BIN directory, yeah!... :)))

Now I like to create a thing in Visual Basic, and use this on
my website. The problem is, I need some help to start...

First: I need to know if its possible in Visual Basic to (LOAD)
a file thats in my CGI-BIN, for example this my work directory:

/CGI-BIN/vbasic-prog/
project1.exe
data.txt

project1.exe is ofcourse my project, this project need to load
the data.txt file. in this file theres data to do some output.
Lets make it easy, inside data.txt theres only the text:

HELLO WORLD

welz, is it posible to load this data into my Visual Basic project
and write this into a HTML so I can display this on a hyperlink request?

And how can I start my project in a HTML?...

Would someone, PLEASE PLEASE help me?... PLEASE !!!

          Ray!



Wed, 18 Jun 1902 08:00:00 GMT  
 Visual Basic With CGI help!
I've not actually done this using a VB exe before, but I think it's very
similar to normal perl or php scripts so that's what I've based it on.......

Hope there aren't too many glaring errors!

Quote:
> First: I need to know if its possible in Visual Basic to (LOAD)
> a file thats in my CGI-BIN, for example this my work directory:

This shouldn't be a problem... as long as the permissions are set correctly
for the file and/or directory. How you check / change the permissions
depends on what the server is (NT, UNIX etc.) As it's a VB project I guess
it must be NT/IIS?

<snip>

Quote:
> welz, is it posible to load this data into my Visual Basic project
> and write this into a HTML so I can display this on a hyperlink request?

Hmmm.... loading it shouldn't be a problem, you can use any of the normal
file input and ouput commands (open, print, write, input etc) to get the
info. To write it back as an html file you need to write to stdout... not
sure how you do this in VB.

Quote:
> And how can I start my project in a HTML?...

The same way as a normal CGI script:

<a
href=http://www.domain.com/cgi-bin/vb-project/project1.exe?a=2&b=3>Link</a>

in the above snippet everything between the '?' and '>' is optional, and is
a way to pass variables to the exe at run-time.

Hope that helps.

Andrew



Wed, 18 Jun 1902 08:00:00 GMT  
 Visual Basic With CGI help!
First, create the Visual Basic program. You must compile it to a .EXE file
and put that file in the cgi-bin directory. You can use a GET or POST method
from a form, or a HREF command, from your HTML pages. If you have:

/cgi-bin
    test.exe

then the HTML might look like:

<a href=/cgi-bin/test.exe>Test Program</a>

and I think that by using app.path in your VB program you can access data
files from the cgi-bin dir.



Wed, 18 Jun 1902 08:00:00 GMT  
 Visual Basic With CGI help!
Some info when trying to build CGI's with VB:

When testing on a PWS on a win9? computer, several restrictions aren't
active as on a WinNT server!
Don't use forms/msgboxes or anything else that is used to display
something on the screen, the VB-CGI will lock up and will stay in the
memory, thereby risking that the WinNT server will lock up after
several tests (yes it's possible).
Use CGI4VB from Kevin O'Brien, his code is very useful and free.

Greetings,
     Another soul searching for questions regarding VB-CGI,
          Rmy Samulski (the Netherlands)



Quote:
> Hi!,

> I like to know just a few things about CGI,
> hope someone can tell me what to do...

> First, I've finally a CGI-BIN directory, yeah!... :)))

> Now I like to create a thing in Visual Basic, and use this on
> my website. The problem is, I need some help to start...

> First: I need to know if its possible in Visual Basic to (LOAD)
> a file thats in my CGI-BIN, for example this my work directory:

> /CGI-BIN/vbasic-prog/
> project1.exe
> data.txt

> project1.exe is ofcourse my project, this project need to load
> the data.txt file. in this file theres data to do some output.
> Lets make it easy, inside data.txt theres only the text:

> HELLO WORLD

> welz, is it posible to load this data into my Visual Basic project
> and write this into a HTML so I can display this on a hyperlink
request?

> And how can I start my project in a HTML?...

> Would someone, PLEASE PLEASE help me?... PLEASE !!!

>           Ray!

--

Sent via Deja.com http://www.deja.com/
Before you buy.



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. CGI programming with Visual Basic 5.0 - Help please?!

2. Need help to send e-mail from a Visual-Basic CGI Program

3. Visual Basic CGI application help

4. Visual Basic and CGI's

5. Visual Basic 6, C++, CGI Programming Books!

6. CGI with Visual Basic 5.00

7. Cgi in visual basic

8. Visual Basic and CGI

9. CGI & Visual Basic

10. CGI programming with Visual Basic 5

11. cgi script for msiie 3.0 using visual basic 4

12. CGI and Visual Basic: YES!!!

 

 
Powered by phpBB® Forum Software