Error In Loading Dll In Vb6.0
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Reference Trappable Errors Core Visual Basic Language Errors Core Visual Basic Language Errors 48 Error in loading DLL 48 Error in loading DLL 48 Error in loading DLL 3 Return without GoSub 5 Invalid procedure call or argument 6 Overflow 7 Out of memory 9 Subscript out of range 10 This array is fixed or temporarily locked 11 Division by zero 13 Type mismatch 14 Out of string space 16 Expression too complex 17 Can't perform requested operation 18 User interrupt occurred 20 Resume without error 28 Out of stack space 35 Sub, Function, or Property not defined 47 Too many DLL application clients 48 Error in loading DLL 49 Bad DLL calling convention 51 Internal error 52 Bad file name or number 53 Can't find specified file 54 Bad file mode 55 File already open 57 Device I\O error 58 File already exists 59 Bad record length 61 Disk full 62 Input past end of file 63 Bad record number 67 Too many files 68 Device unavailable 70 Permission denied 71 Disk not ready 74 Can't rename with different drive 75 Path\File access error 76 Path not found 91 Object variable or With block variable not set 92 For loop not initialized 93 Invalid pattern string 94 Invalid use of Null 96 Can't sink this object's events because it's already firing events... 97 Can't call Friend procedure on an object that isn't an instance of... 98 A property or method call cannot include a reference to a private ... 321 Invalid file format 322 Can't create necessary temporary file 400 Form already displayed; can't show modally 422 Property not found 429 ActiveX component can't create object or return reference to this... 430 Class doesn't support Automation 432 File name or class name not found during Automation operation 438 Object doesn't support this property or method 440 Automation error 442 Connection to type library or object library for remote process h... 443 Automation object doesn't have a default value 445 Object doesn't support this action 446 Object doesn't support named arguments 447 Object doesn't support current locale setting 448 Named argument not found 449 Argument not optional 450 Wrong number of arguments
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question View Unanswered Questions View All Questions... C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam https://msdn.microsoft.com/en-us/library/aa232611(v=vs.60).aspx and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About http://www.codeproject.com/Questions/253481/VB-Error-in-loading-DLL our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ VB6 Error in loading DLL Rate this: Please Sign up or sign in to vote. See more: VB6 DLL In our programming department we have some programs still in VB6. And every now and then an error will popup after compiling a dll. The error just states "Error in loading DLL." No error number or anything. From then on every time we try to open the dll project that error pops up. We have checked all the references for the project and they are fine. The issue seems to be with VB6 wanting to open the DLL of the project. So far sometimes restoring from a backup of the project fixes it for a while, sometimes re-registering it fixes it for a while. I looked at MSDN and found code to use the LoadLibrary API function and ran it on the most recent offending dll and it gave the error code 0, which means "System was out of memory, executable file was corrupt, or relocations were invalid." I checked the machine and there as no memory issue. As for the other 2 options, I am not sure how to check for those. Any help would be appreciated. Thanks, Chris Posted 12-Sep-11 9:35am buzzl
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit http://www.vbforums.com/showthread.php?546602-VB6-complie-error-loading-dll from the selection below. Results 1 to 20 of 20 Thread: VB6 - complie error : loading dll Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Nov 11th, 2008,12:05 PM http://computer-programming-forum.com/72-visual-basic-vb/cf1f94a5d554022a.htm #1 jimjai View Profile View Forum Posts Thread Starter Junior Member Join Date Dec 2007 Posts 18 VB6 - complie error : loading dll Hi, I inherited this VB program from the former employee, I don't know much about VB. I updated error in a line of code and try to compile the code and I got an error "compile error: error in loading dll" and it points to the word ".Recordset". I tried to re-register DAO351. Any help would be appreciated it thanks Reply With Quote Nov 11th, 2008,12:07 PM #2 Hack View Profile View Forum Posts Super Moderator Join Date Aug 2001 Location Searching for mendhak Posts 58,335 Re: VB6 - complie error : loading dll What was the line of code before you changed it and error in loading what did you change it to? Do you know what DLL it is referring to? Please use [Code]your code goes in here[/Code] tags when posting code. When you have received an answer to your question, please mark it as resolved using the Thread Tools menu. Before posting your question, did you look here? Got a question on Linux? Visit our Linux sister site. I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section. Creating A Wizard In VB.NET Paging A Recordset What is wrong with using On Error Resume Next Good Article: Language Enhancements In Visual Basic 2010 Upgrading VB6 Code To VB.NET Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked Reply With Quote Nov 11th, 2008,12:08 PM #3 LaVolpe View Profile View Forum Posts VB-aholic & Lovin' It Join Date Oct 2007 Location Beside Waldo Posts 15,368 Re: VB6 - complie error : loading dll Does your project have a reference to that DLL? Select IDE menu: Project | References Then see if Microsoft DAO 3.51 Object Library is checked at the top. If not, scroll down the list until you find it and check it. Then try again. Insomnia is just a byproduct of, "It can't be done" Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum. Read the HitchHiker's Guide to Getting Help on the Forums. Here is the list of TAGs you can use to format your posts Here are VB6 Help Files online {Alpha Image Control} {Memory Leak FAQ} {GDI+ C
from the former employee, I don't know much about VB. I updated a line of code and try to compile the code and I got an error "compile error: error in loading dll" and it points to the word ".Recordset". I tried to re-register DAO351. Any help would be appreciated it thanks Sun, 01 May 2011 04:21:14 GMT Lori#2 / 11 VB6 - Compile error: error in loading dll Never save anything when you exit, especially when you have an unknown error. Save it will hide that error. The next time you open you will have another problem that does not relate to the original problem. Restart it all. Then check Project Resources menu to see if anything is missing. Many times an error is falsely pointing to something in code that is not wrong. I have this happen when a referenced item is missing or has changed location. I get an error on a line that has nothing to do with the actual problem. If this is the case, uncheck the referenced item but write down what is is and look below to find the original path and close the reference window. Save the project, the reopen the reference window and locate the missing item and checkit. That should clear that type of error. Hope this is what it is. Quote: > Hi, > I inherited this VB program from the former employee, I don't know much > about VB. I updated a line of code and try to compile the code and I got an > error "compile error: error in loading dll" and it points to the word > ".Recordset". I tried to re-register DAO351. > Any help would be appreciated it thanks Sun, 01 May 2011 08:32:05 GMT VB M#3 / 11 VB6 - Compile error: error in loading dll were released on Tue, 11 Nov 2008 12:21:14 -0800 bearing the following fruit: Quote:>Hi, >I inherited this VB program from the former employee, I don't know much >about VB. I updated a line of code and try to compile the code and I got an >error "compile error: error in loading dll" and it points to the word >".Recordset". I tried to re-register DAO351. >Any help would be appreciated it thanks Did it compile before you change? If so, show us what change you made. Are you opening the project on the same machine as the former employee used? -- Jan Hyde (VB MVP) https://mvp.support.microsoft.com/profile/Jan.Hyde Sun, 01 May 2011 17:15:23 GMT Jimja#4 / 11 VB6 - Compile error: error in loading dll I tried that already, it didn't help. And I did revert back to the original project and getting the same error, it was the line that I changed. so