CompuServe Thread

#loading a dll

3 messages in this thread
#30330From: Israel BurmanJul 8, 1994 6:24 PM
Hi Mary Thanks for your help. I have a dll that is used both in a C++ application and in a Visual Basic application. I have some differences of behaviour and I think it may be because of the diference on when the dll is loaded. I understood from your answer that in the C++ application the dll will be loaded when the application is loaded. In Visual Basic, as I dont have an import library, will it be loaded only when I call the first function that uses the dll? Thanks Israel
#30352From: Mary Kirtland [MFCJ]Jul 8, 1994 10:17 PM
Israel, I don't know how VB handles calls into DLLs. I suspect that somewhere in your VB app, you call LoadLibrary() or an equivalent. If so, the DLL gets loaded when that call is made. You might check with folks in the MSBASIC forum to see how VB does its stuff. Or maybe someone will jump in here and bail me out… Mary Kirtland MFCJournal
#30508From: Israel BurmanJul 11, 1994 10:10 AM
Hi Mary Thanks for your answer. I will try to find out with the MSBASIC forum if they know something about this. (I also dont know much about VBasic, but the dll I'm buildin must be used by VB applications). Thanks Israel