RE: DLL And Visual Basic

2002-01-21 Thread Tim
Kevin, > Third - you called your test function from within Form_Load. This will > only > (normally) run once for any particular form. So, I added a button to > your > form, and moved "i = doit(100)" into the new Button1_Click function. > > Works perfectly for me... I had placed it in Form_Load f

RE: DLL And Visual Basic

2002-01-21 Thread Roth, Kevin P.
FWIW - when following exactly the recipe you provided, mine worked OK. Three small changes though: You had this in your VB form: Private Declare Function doit Lib "bar.dll" (ByVal ... However, since the function's name in MyTest.c is testit (not doit), I added Alias "testit", like: Private D

Re: DLL And Visual Basic

2002-01-21 Thread Pavel Tsekov
Tim wrote: > Ok, I've gotten a little further in my endeavors and am stumped again. > Actually this is pretty much where I was stumped in the beginning, but I > have made some moderate headway. > > I have successfully created a dl that can be called (successfully mind you) > from Visual Basic,

Re: DLL And Visual Basic

2002-01-20 Thread Mader, Alexander
Hallo, from my understanding during the development of DLLs for VB there are the following important things: 1. Compile with stdcall: VB uses the stdcall (Pascal) calling convebtion. Either hardcode it (_I_ wouldn't do that) or use the -mrtd with gcc. 2. When passing structs mind the sick pa

Re: DLL And Visual Basic

2002-01-20 Thread Tim
Ok, I've gotten a little further in my endeavors and am stumped again. Actually this is pretty much where I was stumped in the beginning, but I have made some moderate headway. I have successfully created a dl that can be called (successfully mind you) from Visual Basic, but unfortunately only on

DLL and Visual Basic

2002-01-18 Thread Tim Bynum
Greets! Could someone provide me an example(s) of creating a DLL under Cygwin that can be used by Visual Basic (an example of this would be nice to). For the second time now (could'nt let it get the best of me) I'm trying to create a DLL and then use it in a VB app. I've successfully created th