PDA

View Full Version : PBP and VB6 USB templates



Demon
- 11th April 2015, 00:35
Mister E's USB routine with DT INTs stripped down to a no-frills template:

7780

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
:)

7779

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

Ioannis
- 15th April 2015, 17:56
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

Demon
- 15th April 2015, 20:08
"Resistance to change" :D

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

Ioannis
- 15th April 2015, 21:27
I totally agree!

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

Ioannis

Demon
- 15th April 2015, 21:49
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

HenrikOlsson
- 15th April 2015, 21:56
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.

Ioannis
- 15th April 2015, 22:04
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

PJALM
- 16th April 2015, 12:25
Wow very nice to finally see this.

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

Ioannis
- 16th April 2015, 13:50
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

Demon
- 16th April 2015, 13:54
...
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

PJALM
- 17th April 2015, 23:03
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.