CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 3 123 LastLast
Results 1 to 15 of 34
  1. #1
    Join Date
    May 2006
    Posts
    147

    Creating Website using VB 6.0

    hi all..

    i'm newbie in VB 6. can i know, can we creating a website using vb 6?? if yes, can i know the way how to do it??

    thanks..

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Creating Website using VB 6.0

    Not really, I'd say. Download Expressions Web (90 day trial) or any one of the other packages that claim to write html for you. Some people use Notepad though, and claim it's better.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    May 2006
    Posts
    147

    Re: Creating Website using VB 6.0

    what do you mean.. i dont understand.. can someone give some advice
    Last edited by areon25; November 29th, 2007 at 02:15 AM.

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Creating Website using VB 6.0

    You can write a web page, with anything. Not a web server, or a network.
    Here is html code.

    Code:
    <head>
    </head>
    <body>
    HELLO WORLD!
    </body>
    </html>
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    May 2006
    Posts
    147

    Re: Creating Website using VB 6.0

    where actually we should write the HTML code?? in notepad or VB 6??


    if we write the HTML code in notepad, what is the relation between notepad and VB 6 ??


    Could someone give advise..

    thank you..

  6. #6
    Join Date
    Dec 2006
    Location
    Pune, India.
    Posts
    579

    Re: Creating Website using VB 6.0

    Quote Originally Posted by areon25
    where actually we should write the HTML code?? in notepad or VB 6??


    if we write the HTML code in notepad, what is the relation between notepad and VB 6 ??


    Could someone give advise..

    thank you..
    If you want to develop in VB then you can start with 'DHTML Application' that comes with VB.

    If you want to develop it in Javascript and VBScript then you can use notepad and for server side application ASP. Frontpage is another tool available for your which will generate HTML code automatically. Dreamviewer is there.


    Now choice is your !!

  7. #7
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Creating Website using VB 6.0

    Why not try out Microsoft Visual Web Developer?
    The Express Edition can be downloaded for free. It seems a good choice.

    Why should I try to write HTML code with VB?

  8. #8
    Join Date
    May 2006
    Posts
    147

    Re: Creating Website using VB 6.0

    i actuay want to make a website using vb 6. now i understand a bit. so we can create a website with using HTML code by "DHTML application". can someone please advise me how to start with simple programme using "DHTML Application"??

    can i know, what type of server that suitable for vb 6??

    thank u very much

  9. #9
    Join Date
    May 2006
    Posts
    147

    Re: Creating Website using VB 6.0

    actually i'm doing a system (website) that consist a database and the this system is connected to hardware(RFID) using serial communication. I'm using Visual Basic 6 because i know how to connect VB to RFID and database. the problem is, how to create a website using vb 6 and how to include all these(database, RFID, and website) in one system??


    can someone give advise..

    thank u very much..

  10. #10
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Creating Website using VB 6.0

    Maybe an Active Server Page (ASP) is a suitable solution.
    Please look it up at MSDN. There should be lot of information about that.

  11. #11
    Join Date
    May 2006
    Posts
    147

    Re: Creating Website using VB 6.0

    can someone check the code for me. it's about VB communication..

    i want to check weather RFID reader detect RFID tag.. but nothing happen..

    can someone give some advice...

    thanks..



    Private Sub Form_Load()
    Dim dataID As Long
    Dim data As String

    'Text1.Text = ""
    dataID = "000386090601"


    If MSComm1.PortOpen = False Then MSComm1.PortOpen = True
    End Sub

    Private Sub MSComm1_OnComm()

    If MSComm1.CommEvent = comEvReceive Then
    data = MSComm1.input
    If data = dataID Then
    Text1.Text = dataID
    Else
    Text1.Text = ""
    End If
    End If
    End Sub

  12. #12
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Creating Website using VB 6.0

    Please use code tags around your code for better readability.

    Your OnComm() handler is no good.
    Code:
    Private Sub MSComm1_OnComm()
    
     If MSComm1.CommEvent = comEvReceive Then
       data = MSComm1.input
       If data = dataID Then
         Text1.Text = dataID
       Else
         Text1.Text = ""
       End If
      End If
    End Sub
    Nothing happens because after receiving one character you compare it to the full ID and because this will never turn out true Text1.Text will always be empty.
    You have to understand that the OnComm() event is called for every character received (when RThreshold is 1).
    You have to determine when the apropriate number of characters is received.
    Try this:
    Code:
    Dim Rec as String
    dim dataID as String 'not as Long
    ...
    ' in Form_Load() for instance
    dataID = "000386090601"
    ...
    Private Sub MSComm1_OnComm()
    
     If MSComm1.CommEvent = comEvReceive Then
        Rec = Rec + MSComm1.Input
        Text1.Text=Rec
        if Len(Rec) = Len(dataID) Then
          If Rec = data ID Then beep
        End If
      End If
    End Sub
    and see what happens.
    I dont know what your reader sends out to indicate the end of the number and how all the other protocol is happening.
    Usually you send a command to the reader before it will do anything at all. You cannot simply connect and wait if anything is going to happen.
    If it does, by holding a tag to the reader, then you will see whatever comes from the reader, if you use the above code.
    Last edited by WoF; November 29th, 2007 at 11:46 AM.

  13. #13
    Join Date
    May 2006
    Posts
    147

    Re: Creating Website using VB 6.0

    hi all..

    thanks for the code.. i've already try the code and it's work.. but from that code i've overcome some problems.

    1) i've modified the code as below

    Dim Rec As String
    'Dim Rec1 As String
    Dim dataID As String 'not as Long

    Private Sub Command1_Click()
    'MSComm1.PortOpen = False
    Text1.Text = ""
    Text2.Text = ""
    Text3.Text = ""
    'Rec = 0

    End Sub

    Private Sub Form_Load()

    If MSComm1.PortOpen = False Then MSComm1.PortOpen = True
    End Sub

    Private Sub MSComm1_OnComm()

    'Rec = 0
    If MSComm1.CommEvent = comEvReceive Then
    Rec = Rec + MSComm1.Input
    Text1.Text = Rec
    'If Len(Rec) = Len(dataID) Then
    'If Rec = dataID Then Beep
    If Rec = "0003890601" Then
    Text2.Text = "RapidKL"
    Text3.Text = "T231"

    Else
    If Rec = "0004101893" Then
    Text2.Text = "RapidKL"
    Text3.Text = "T201"

    Else
    If Rec = "0004110179" Then
    Text2.Text = "Metrobus"
    Text3.Text = "91"

    End If
    End If
    End If
    End If

    End Sub

    i've added a button to clear the data(text1, text2 and text3). the problem is the programme cannot received next data after press the button..


    2) using the some code as above, how to store the data(text1, text2 and text3) into the database after the reader received the ID. the database i'm using is microsoft Access

    3) how to store the current time into database?

    4) how to link a same database from 1 form to another form?

    hope someone will give some advise..

    thanks..

  14. #14
    Join Date
    May 2006
    Posts
    147

    Re: Creating Website using VB 6.0

    hi all..

    does someone have any solution for my problems.. hope please someone give some advice...


    thanks..

  15. #15
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Creating Website using VB 6.0

    Can't even read your code. Use code tags. type ]code[ code goes here ]/code[ but reverse the brackets
    Code:
    like so
    Hint: Edit your last post.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured