
I need help from a vb and vc++ expert
Don't worry, I figured out the problem. I was allocating an array of 0
elements
because the VB constant I was pasing to redim was not declared public in the
bas
module so therefore the program was gpfing when the dll tried to access memory
it wasn't allowed to access.
Quote:
> Jonathan,
> When you are calling the VC++ DLL's from your program , check the
> declaration , the data types and ByRef / ByVal properties. You may need to
> change the data-types from VC DLL to VB , probably that's what is causing
> the problem.
> Regards,
> Adheer.
> > I am having trouble getting vb to call my vc++ dll. Everytime I run my
> > demo,
> > I get a GPF. The visual c++ demo program I wrote works fine. If there is
> > anyone
> > out there who is an expert on matters concerning the use of and writing
> > of vc++
> > dlls for vb then e-mail me and I will send you the visual c++ dll and
> > source
> > and the vb demo program and source. BTW I am using visual studio 6 to do
> > all this.
> > --
> > Jonathan Wilson
> > http://members.xoom.com/wilsonj/
--
Jonathan Wilson
http://members.xoom.com/wilsonj/