My employer will not spend the money to get me Visual Basic.Net. I am stuck using Visual Basic 6. I am pretty good with programming embedded C, but have no time to learn to program in Visual C++.
So I am doing some advanced programming, in VB6, using several DLL’s. I have 4 DLL’s, and two of them use callbacks. The problem is the GUI will appear to freeze during a DLL call. When the DLL returns, everything returns to normal. I have partly cured the problem by refreshing the forms, and calling DoEvents during callbacks. This works fine, unless the user clicks on a control button. The button event will not fire until the DLL returns, or during the callback. This makes the app very sluggish.
I have tried various methods of multi-tasking. Several of them work, in the IDE, but crash at runtime. The app will crash with an exception when one of the DLL’s executes a callback.
Posts Tagged ‘Call’
How Do I Make The Visual Basic 6 Gui Remain Responsive During A Dll Call?
Wednesday, August 19th, 2009How Can I Determine The Functions Within A Dll And How Do I Call Them Using A New Language?
Friday, July 24th, 2009I want to be able to write wrapper functions for the functions in the DLL.
For example if there is a xyz.dll that has all the APIs for a particular xyz application, then I want to write a ruby wrapper program for that dll, so that I can call the functions in the DLL from a ruby script. This allows me to pass in the parameters expected by the function and get its result by just calling the function from ruby.