Re: DLL and VB problems

2003-10-16 Thread Paul Bezzam
The options I gave to gcc are: For building the DLL: gcc -c -o dllhello.o dllhello.c gcc -shared -o dllhello.dll dllhello.o -Wl,--out-implib,libdllhello.a For building the program: gcc -c -o hello.o hello.c gcc -mwindows -o hello.exe hello.o -L. -ldllhello The GCC version I am using is: gcc (GC

Re: DLL and VB problems

2003-10-16 Thread Paul Bezzam
Hello, Please ignore my previous message; I made a mistake in the client C file. I corrected it, and the C client calls the DLL perfectly. But I tried calling from a VB client, and it works fine for the first time; Running again causes the application to close. Any insight would be greatly ap

Re: DLL and VB problems

2003-10-16 Thread Paul Bezzam
Hello, I am sorry that I am not very clear... Below is the problem: I wrote C client to this dll and when I try to compile the client to use the dll using the command: gcc -o hello.exe hello.o -L. -ldllhello, I get the following error: /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libcygwin.a

Re: DLL and VB problems

2003-10-16 Thread Igor Pechtchanski
On Thu, 16 Oct 2003, Paul Bezzam wrote: > Hello, > > I have created a DLL using gcc on Cygwin, and I wrote a client in VB > accessing this DLL. The application runs fine for the first time, but > when run again, it crashes. I have to close the application and run it to > work successfully. > > C

DLL and VB problems

2003-10-16 Thread Paul Bezzam
Hello, I have created a DLL using gcc on Cygwin, and I wrote a client in VB accessing this DLL. The application runs fine for the first time, but when run again, it crashes. I have to close the application and run it to work successfully. Can anyone please give me some directions. Thanks. Pa