Solved

References Library

Posted on 2004-09-22
10
1,801 Views
Last Modified: 2011-10-03
Hi Expert,

I have a VB project and in it contains functions/routines like LCase(), UCase, and Mid() which are basic functions that VB should have.  But when I tried to run or compile it, it gives me an error.  So I checked in the References Libraries and found that "MISSING: Microsoft Common Dialog 2.0".  But when I tried on another computer, it works without any Libraries Missing.  Is there a way to fix this problem?  In your opinion, what is the problem by the way?


Thanks a mil!
JB
0
Comment
Question by:JamesBing
  • 3
  • 2
  • 2
  • +3
10 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 12128601
What is the error?
0
 
LVL 13

Expert Comment

by:Michael_D
ID: 12128755
Check File : C:\{WinDir}\System32\COMDLG32.ocx
Is it exist?
0
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 100 total points
ID: 12128787
James,
I have seen this problem a couple of times before - none of the string functions work - but it was a long time ago, so any info, such as the Error message,  you could give might remind me.

I think the missing Common Dialog is a red herring.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 4

Accepted Solution

by:
avi247 earned 300 total points
ID: 12128857
Whats your VB version and Service Pack?

1. Open up a new project. In Form Load, type Lcase( and check to see if you get Intellisense from VB.
2. Is it giving an error for those functions LCase(), UCase, and Mid() or is it throwing an error somewhere else i.e where common dialog functionality is used. I opened up a new project with default references (Visual Basic for Applications,  Visual Basic runtime objects and procedures, Visual Basic objects and Procedures, OLE Automation) and those string functions work fine.

I would say,
Reinstall VB on that machine, I think either runtime or dependent libraries are corrupt.
0
 
LVL 50

Assisted Solution

by:Ryan Chong
Ryan Chong earned 50 total points
ID: 12129393
You may try use/call common dialog boxes from API instead, which No need to use additional library of M$ Common Dialog control, ya.. then you need to change the code a bit but it will eliminate your MISSING Library problem.

A good example by Ark:
CDlgEx -- Encapsulates Windows Dialog Functions into One Class
http://www.freevbcode.com/ShowCode.Asp?ID=631

Else another suggestion is to ensure that you always includes the M$ Common Dialog Control in your setup package/ installer, so that it will install on target machine and eliminate MISSING Library problem.

regards
0
 
LVL 32

Assisted Solution

by:Erick37
Erick37 earned 50 total points
ID: 12129400
The string functions you mentioned are in the VBA (visual basic for applications) module.  Add a reference to that, if it is available.
0
 
LVL 32

Expert Comment

by:Erick37
ID: 12129422
BTW, while in the VB IDE, press F2.  This brings up the object browser.  There is a dropdown which lists all references your project is holding.  You can search <all libraries> for Lcase and see what pops up.

Good luck!

P.S.
You said "thanks a mil" Isn't a mil = 0.001?  Shouldn't it be "Thanks a Gig?"  :]]
0
 
LVL 32

Expert Comment

by:Erick37
ID: 12129495
Interesting.

In my References, there are 6 listings for Visual Basic for Applications

c:\windows\system32\msvbvm50.dll
c:\windows\system32\vbaend32.olb
C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLL
C:\WINDOWS\System32\VEN2232.OLB
C:\WINDOWS\System32\VBAEN32.OLB

and this one is currently referenced by default (how did it end up in a setup directory?):
C:\Program Files\Microsoft Visual Studio\VB98\proj\DM2000\setup\Support\MSVBVM60.DLL

0
 

Author Comment

by:JamesBing
ID: 12138709
Reinstalled, it works!!  I guess I'm missing Microsoft Common Dialog 6.0 (SP3).

Thanks guys
0
 
LVL 13

Expert Comment

by:Michael_D
ID: 12138832
That what I've asked at the very begining of the thread if the file exist. It is very "common" problem. I think you have uninstalled some program recently. COMDLG32.ocx was removed as well. Do you remember what application you had uninstalled the last. I would like to  recreate this situation if possible
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB error "Type mismatch" 2 53
vb6 - Transfer from MSHFlexgrid1 to xls issue 8 51
Problem to With line 4 57
Advice in Xamarin 21 78
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question