¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Beginner's Guide to OCX Implementation Request


 

Hi, Mark

Do you feel like sharing VB code?
This OCX is driving me nuts.
here is what I suggest:
We agree on a name for the OXC (say ArtsMotion, or simply M like in
motion to save typing)
We agree on some common routines that one needs
We prototype the functions and Subs and then distribute them for
general testing and feed back.
We can also distribute the exe files for people that are willing to
test our code, without getting into the VB details

If you see any value in this please respond to peterd@...

best regards
peter

PS:
?? Have you used M.StraightFeed ?
I can not figure out why VB doesn't accept the syntax, according to
the object browser this is a sub but it seems to be a function






--- In mach1mach2cnc@..., "Mark Tucker" <rmtucker@l...>
wrote:
--- In mach1mach2cnc@..., Les Newell <les@l...> wrote:
Hi Art,

There is still something wrong. If I compile the program then run
the
exe it mostly works. If I try and run the program from within the
VB IDE
then VB bombs with a protection fault.

There are also some major redrawing problems when using the OCX
from VB.
Labels don't get redrawn correctly if the main window is resized
or
another window is dragged over it. Also when you switch from one
page to
another the controls on the new page don't always get drawn and
the
controls from the previous pages don't get erased. Forcing a
refresh by
moving another window over the application sorts it out apart
from
the
labels.

With Borland C++ builder the IDE doesn't crash but I get the same
redraw
problems. I also had to use SetWindowHandle to stop everythig
getting
drawn on the desktop. Also for some reason I get an access
violation
when I try to call SetProfileName()

Les
Les/Art

I thought it was my poor vb understanding but i am getting all the
faults above of which the first one (vb crashing when in ide is a
pain).
I have been writing progs and having to compile to exe to check
them
which does not make debugging very easy.I also can not get the
about
box to display the license,it displays "demo mode" even though
everything is in the same directory (license.dat,Project,ocx).

At least i know i am not going mad.

Regards
Mark

Join [email protected] to automatically receive all group messages.