¿ªÔÆÌåÓý

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

Re: Beginner's Guide to OCX Implementation Request


Mark Tucker
 

--- 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.