Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

The espresson On Click you entered as the event property setting produced the following error

Posted on 2006-11-22
4
Medium Priority
?
1,046 Views
Last Modified: 2012-05-05
I get the error below when a user attempts to open a file on disk using the GetOpenFileName() function:

The espresson On Click you entered as the event property setting produced the following error: License information for this component not found. You do not have an appropriate license to use this functionality in the designed environment.

* The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure].

* There may have been an error evaluating the function, event, or macro.

This program works fine on all but one workstation in the office. It even runs fine on the offending workstation until the user attempt to open a file. I have the following declaration in the program:

Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long

Why would this one computer be blowing up on this? As usual, the error message sounds like it is telling me something, but I can't decipher its meaning.
0
Comment
Question by:jmarkfoley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
MessHallMan earned 1000 total points
ID: 17997950
Is this DLL (comdlg32.dll) registered on the workstation that the program is not working on?  Based on the error it appears like the DLL is not registered or is missing on the computer.
0
 
LVL 34

Assisted Solution

by:jefftwilley
jefftwilley earned 1000 total points
ID: 17998530
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 17998539
You're treading new ground for me. I can probably do a search to find out if it is missing, but how do I determine whether it is registered? I thought this dll was standard with Windows or Office or Access.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 18065784
It turned out that it was not comdlg32.dll causing the problem, but use of a 3rd party progress bar dll that I attempted to call just before the comdlg32. I eventually figured that out by commenting out the code to the progress bar and everything else worked file.

The solution was to register this dll as MessHallMan sugested, but jefftwilley's link gave me the actual "how to" command to do that: regsvr32. So, I'll split the points. Running regsvr32 with the path to my rouge dll fixed the problem.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

618 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