Searching \ for '[OT]: Tripping over Visual Basic' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/language/index.htm?key=basic
Search entire site for: 'Tripping over Visual Basic'.

Exact match. Not showing close matches.
PICList Thread
'[OT]: Tripping over Visual Basic'
2003\04\15@010355 by Lyle Hazelwood

flavicon
face
Hi Piclisters,
While in the midst of trying to write a CAN bootloader, I found
Microchip AN247, a CAN bootloader design and software package.

Lucky for me, their schematic is almost identical to the board I have
built for this project.

I DL'ed the ZIP and unpacked it easily enough. I tried to start their
PC side software, apparently written in Visual Basic, and I just can't
get the executable to open.

I am assuming that the exe file would not require me to purchase visual
basic to run it. I do have Visual C++ on this machine, with visual studio.

If anyone on the list either knows enough about VB to know what I'm
missing, or better yet if someone has sucessfully run the software from
AN247, I'd love to find out what I'm doing wrong.

Thanks Thanks,
Lyle

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body

2003\04\15@012230 by Alex Kilpatrick

flavicon
face
I don't know about your particular application, but VB apps need the
VBRUN DLL.

Try here:  http://www.freesoft97.mcmail.com/vbrun.html

Alex

> {Original Message removed}

2003\04\15@033014 by M. Adam Davis

flavicon
face
You'll need three things to get this program working on your machine:

VB 6 runtime files
MSCOMCTL.OCX
COMDLG32.OCX

You can get the vb6 runtime files from
http://support.microsoft.com/default.aspx?scid=FH;[LN];vbruntime&
The other two can probably be found with a search for them.

The problem with the other two is that you typically need to register
them with the system.  This is usually done via an installer, but they
do not provide one.  You might have luck putting them in the same
directory as the EXE.

If that fails, look for a file on your system called "REGSVR32.EXE".
You can move the OCX files to the system directory, then run regsvr32
with the file's full path and name.  It'll tell you once they are
registered.

As far as your first question, yes, they expect most developers playing
around with these app notes to have VB installed.

Good luck!

-Adam

Lyle Hazelwood wrote:

{Quote hidden}

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body

2003\04\15@082902 by Hazelwood Lyle

flavicon
face
>I am assuming that the exe file would not require me to purchase visual
>basic to run it. I do have Visual C++ on this machine, with visual studio.
>
>If anyone on the list either knows enough about VB to know what I'm
>missing, or better yet if someone has sucessfully run the software from
>AN247, I'd love to find out what I'm doing wrong.

Thanks to Jake,Alex,Adam, Robert, and all who have offered help so far.

I have tried the suggestions offered, and so far, no luck.
More details were requested:
I am trying to run the VB app included in the source for AN247.
The source is available at:
http://www.microchip.com/download/appnote/pic18/00247.zip

I have tried running it at home on a WIN98SE machine, and also at work
on a Win2K machine. Both have Visual C++ V6 installed. (Along with visual
studio 6, of course)

In both cases, I get a polite "bing" and nothing else. No window, no error
message no indication of what might have failed. I also tried running from
an MSDos command shell, hoping for an error message. No luck.(If there is an
error message, I don't know where to look for it)

Reading further from the Microsoft website, I found that VB programs that use
ActiveX controls may need more support files on the target machine than usual.
According to the app note, this program is using ActiveX. This may be the problem.

We have a programmer that uses VisualBasic in one of our Ohio offices.
I think I'll write him an E-Mail and see if he can sort this out.

Even if I can't get the PC side working, the rest of the package is worthwhile for me. Having learned in "C" on a _very_ different platform, I get a bit frustrated
when I can't get a simple application to run in windows. I am not very adept at
the Windows way of doing things. (Nor is windows very good at doing things my way!)

Thanks to everyone, and I'll keep plugging away at it.

Lyle

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam.....mitvma.mit.edu with SET PICList DIGEST in the body

2003\04\15@094538 by Hugo Harming

flavicon
Hi!

It seems to work after a recompile (VB6 SP5).

New .exe sent directly to OP.

/Hugo



-----Original Message-----
From: EraseMELHazelwoodspam_OUTspamTakeThisOuTMFGNC.COM [LHazelwoodspamspam_OUTMFGNC.COM]
Sent: Tuesday, April 15, 2003 2:30 PM
To: @spam@PICLISTKILLspamspamMITVMA.MIT.EDU
Subject: Re: [OT]: Tripping over Visual Basic


>I am assuming that the exe file would not require me to purchase visual
>basic to run it. I do have Visual C++ on this machine, with visual studio.
>
>If anyone on the list either knows enough about VB to know what I'm
>missing, or better yet if someone has sucessfully run the software from
>AN247, I'd love to find out what I'm doing wrong.

Thanks to Jake,Alex,Adam, Robert, and all who have offered help so far.

I have tried the suggestions offered, and so far, no luck.
More details were requested:
I am trying to run the VB app included in the source for AN247.
The source is available at:
http://www.microchip.com/download/appnote/pic18/00247.zip

I have tried running it at home on a WIN98SE machine, and also at work
on a Win2K machine. Both have Visual C++ V6 installed. (Along with visual
studio 6, of course)

In both cases, I get a polite "bing" and nothing else. No window, no error
message no indication of what might have failed. I also tried running from
an MSDos command shell, hoping for an error message. No luck.(If there is an
error message, I don't know where to look for it)

Reading further from the Microsoft website, I found that VB programs that use
ActiveX controls may need more support files on the target machine than usual.
According to the app note, this program is using ActiveX. This may be the problem.

We have a programmer that uses VisualBasic in one of our Ohio offices.
I think I'll write him an E-Mail and see if he can sort this out.

Even if I can't get the PC side working, the rest of the package is worthwhile
for me. Having learned in "C" on a _very_ different platform, I get a bit frustrated
when I can't get a simple application to run in windows. I am not very adept at
the Windows way of doing things. (Nor is windows very good at doing things my way!)

Thanks to everyone, and I'll keep plugging away at it.

Lyle

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email KILLspamlistservKILLspamspammitvma.mit.edu with SET PICList DIGEST in the body

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email RemoveMElistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body

2003\04\17@190437 by Mike Singer

picon face
Lyle,

I've downloaded and unzipped 00247.zip about half an hour ago.

The main project CANBoot.vbp is located in CANBoot_V7 folder.
(Place it on C:\ , cause placing project folders on C: root
is usual for lazy developers(mchip's definitely are))

Try to open this project with VB6. VB will tell you
'C:\CANBoot_V7\CANCtl.ocx could not be loaded-Continue
loading Project?'

Press 'Yes'

Through 'Project - Components - Browse' choose CANCtl.ocx
manually(located in C:\CANBoot_V7 folder also)

Run the project. VB will tell you
'Method or data member not found'

Shit. Compiled component, they supplied, is old version.
Well, let's recompile it.

Close the project. Open CANCtl.vbp project.
VB will tell you
'Path not found 'C\CANBoot_V5\MCHP_CAN.ctl''

Bas..rds, they forgot to re-reference this
project to MCHP_CAN.ctl in C:\CANBoot_V7 folder after
moving from their old V5 version.

I never worked with *.ctl, so I created C:\CANBoot_V5 folder
and placed there MCHP_CAN.ctl from C:\CANBoot_V7.

Close and open CANCtl.vbp project again.
Compile(File - Make) it to C:\CANBoot_V7 folder.

Open and launch CANBoot.vbp again. It should work now.


Good luck.
Mike.
_________
PS. I'll download docs about CAN. I'm intrigued.
PS.PS. Using non-so-nice words is a style of
thinking rather then an attempt to offend anybody.



Hazelwood Lyle wrote:
{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

2003\04\17@194951 by Tom Messenger

flavicon
face
At 03:02 AM 4/18/03 +0400, you wrote:
>PS.PS. Using non-so-nice words is a style of
>thinking rather then an attempt to offend anybody.

???
All I saw there were the usual programming words and syntax associated with
VB6! I have a copy of VB6 and frequently use that syntax.  It's difficult
to do otherwise...
Tom M.

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

More... (looser matching)
- Last day of these posts
- In 2003 , 2004 only
- Today
- New search...