PBP and VB6 USB templates


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,979

    Default PBP and VB6 USB templates

    Mister E's USB routine with DT INTs stripped down to a no-frills template:

    USBDemon1.zip

    1. toggle the checkboxes to send the values to the PIC.
    2. the values are displayed on the LCD.
    3. the PIC automatically returns the values.
    4. the values are displayed in the listbox.

    Original release:
    - removed all the analog logic from Mister E's version.
    - added logic to check the USB connection within the loop.

    April 11 2015:
    - simplified the GUI.

    April 11 2015:
    - shortened file name.
    - cleaned up comments.
    - increased polling speed to 1ms.

    April 12 2015:
    - simplfied code.
    - added DT notes.

    Robert


    Name:  GUI.JPG
Views: 1989
Size:  28.4 KB

    18F4550
    Hitachi 44780 compatible LCD, 2 x 20 char
    PIC Basic Pro v2.60C
    MicroCode Studio Plus v2.2.1.1
    MPASM v5.46
    Win XP
    Lab X1 board
    Last edited by Demon; - 12th April 2015 at 15:23. Reason: Simplified further and added DT notes

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,993

    Default Re: PBP and VB6 USB templates

    Nice Robert, thanks.

    I see that I am not the only on fond of the VB6!

    I do not know why, but cannot follow the new VB IDE and the new commands. Also the new free IDE do not produce executables to distribute.

    I wonder if there is a way to have the graphic result of the more elegant VB2005 and newer on the VB6. Buttons, sliders etc.

    Ioannis

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,979

    Default Re: PBP and VB6 USB templates

    "Resistance to change"

    I paid good money for this Visual Studio package and I'm going to use it if it kills me.

    That, and I don't trust Microsoft. I always had a fear of switching to a newer FREE platform, only to have to become a subscription service later on.

    And I don't want to learn something new. VB6 has USB support and that's about all I need for now. USB v2 is good enough for my project, so is PBP v2.60c really.

    I can't concentrate as well any more so learning new stuff is a last resort. Shoot, I'm having a hard enough time getting a simple 50mS Timer0 to fire at will. LOL

    Robert

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,993

    Default Re: PBP and VB6 USB templates

    I totally agree!

    Who needs USB3 to transfer 1kb of data? And the money paid of course is a very good reason!

    Ioannis

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,979

    Default Re: PBP and VB6 USB templates

    I do remember something about an executable I needed in order to distribute my VB6 executables (can't remember which one). But it came with the Enterprise edition of Visual Studio, don't know how I'm going to get a hold of that thing.

    I don't like bootleg stuff either, has to be legit.

    Robert

  6. #6
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,569

    Default Re: PBP and VB6 USB templates

    Hi,
    Also the new free IDE do not produce executables to distribute.
    Sure it does, it's normal behaviour is to create an installer for your project, that you can distribute, which will check if the target system has the needed files (like the .net framework you're targeting etc) but if you don't need that it's pretty easy to simply "extract" the bare .exe file. Last time I did it was on Visual Studio 2005 Express and I'm just now fooling around with the 2013 version and it seems to work the same.

    /Henrik.

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,993

    Default Re: PBP and VB6 USB templates

    Well, I found that the new Visual Studio after VB6, did not had the ability to create an installer but had something different. I suppose as you describe Henrik. I do not have much experience so cannot say more, but once that I tried this beast, it made its tricks and somewhere deep in my hard disk, it copied an exe file and put a shortcut in StartMenu.

    Had to search too much to find where the exe file was. Anyway, it is too complicated in general for me.

    Ioannis

  8. #8
    Join Date
    Jan 2006
    Location
    Toronto
    Posts
    109

    Default Re: PBP and VB6 USB templates

    Wow very nice to finally see this.

    Be warned any apps made in VB6 are not gonna work in newer versions of Windows.

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,993

    Default Re: PBP and VB6 USB templates

    Are you sure about this?

    I think you mean te IDE of VB6 will not work in newer windows (Vista and newer).

    The exe and installers work just fine.

    Ioannis

  10. #10
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,979

    Default Re: PBP and VB6 USB templates

    Quote Originally Posted by PJALM View Post
    ...
    Be warned any apps made in VB6 are not gonna work in newer versions of Windows.
    I'd be curious as to why. I don't see why an app wouldn't work as long as all required components are included.

    Robert


    EDIT: Hmm, googled and found several links on the subject.

    https://msdn.microsoft.com/en-us/magazine/jj133828.aspx
    Last edited by Demon; - 16th April 2015 at 14:57.

  11. #11
    Join Date
    Jan 2006
    Location
    Toronto
    Posts
    109

    Default Re: PBP and VB6 USB templates

    I apologize then, I was under the impression they don't work as I had many issues trying to get mine working so I gave up. But I am also using windows 10 not windows 8 so that could be why.

Similar Threads

  1. Replies: 1
    Last Post: - 19th February 2011, 19:35
  2. Replies: 10
    Last Post: - 11th April 2010, 10:12
  3. 18F4550 + Usb + VB6 + Reg Shifting
    By MeSaKu in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th June 2009, 11:43
  4. USB and PBP
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th June 2004, 14:36

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

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