Posts Tagged ‘Call’

How Do I Make The Visual Basic 6 Gui Remain Responsive During A Dll Call?

Wednesday, August 19th, 2009

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.

I Am Getting The Error “run-time Error ‘743′: Unble To Create..” When Trying To Call An Ocx Drwan Form From Vb

Monday, August 3rd, 2009

I am getting the error “Run-time error ‘743′: Unble to create or activate new instance of ” when trying to call an ocx drwan form from VB. I am using the application through CITRIX software. (that is the application is installed only in server and clients are accessing it nusing CITRIX software). But the error is coming occassionally. Can any body help me?

How Can I Determine The Functions Within A Dll And How Do I Call Them Using A New Language?

Friday, July 24th, 2009

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