473,396 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Common Dialog Control Error

22
Hi All

I have written an Access Database Application with the use of VB6 that makes use of the “CommonDialog” ActiveX control to call a Browse File facility. Because I have Visual Basic 6.0 installed on my system all the function works fine.

The problem occurs when another user who has not got Visual Basic 6.0 in their system comes to use the same application. When they use the browse facility an error message “438 Object doesn’t support this property or method”.

At first I believed that the issue stemmed from a problem with the references that Access was using but upon matching both systems to use the same reference the same error occurs.

Any Ideas?
Feb 16 '07 #1
9 6222
Rabbit
12,516 Expert Mod 8TB
I'm not sure but I think compiling the code should solve your problem.
Feb 16 '07 #2
ADezii
8,834 Expert 8TB
Hi All

I have written an Access Database Application with the use of VB6 that makes use of the “CommonDialog” ActiveX control to call a Browse File facility. Because I have Visual Basic 6.0 installed on my system all the function works fine.

The problem occurs when another user who has not got Visual Basic 6.0 in their system comes to use the same application. When they use the browse facility an error message “438 Object doesn’t support this property or method”.

At first I believed that the issue stemmed from a problem with the references that Access was using but upon matching both systems to use the same reference the same error occurs.

Any Ideas?
Wouldn't a VB 6 Setup/Installation Package solve the problem?
Feb 16 '07 #3
nico5038
3,080 Expert 2GB
You found out why I never use ActiveX controls :-)
You'll need to trace the .dll and/or the .ocx control used and transfer that together with your application to make sure it will work on every PC.
An alternative might be to use the Developer edition to create a package that will include the .ocx control, but you could also try to use the windows class modules from:
http://www.mvps.org/access/modules/mdl0013.htm

Nic;o)
Feb 16 '07 #4
Quish
22
I'm not sure but I think compiling the code should solve your problem.

The code is fully compiled, all other functions run apart from the function that requires the Common Dialog Control. Im still thinking that it has something to do with references.
Feb 19 '07 #5
Quish
22
Wouldn't a VB 6 Setup/Installation Package solve the problem?
I would very much like to install VB 6 on the other systems, but then there is the small issue of licences that would need to be considered, which i do not have.
Feb 19 '07 #6
Quish
22
You found out why I never use ActiveX controls :-)
You'll need to trace the .dll and/or the .ocx control used and transfer that together with your application to make sure it will work on every PC.
An alternative might be to use the Developer edition to create a package that will include the .ocx control, but you could also try to use the windows class modules from:
http://www.mvps.org/access/modules/mdl0013.htm

Nic;o)
Thank You, after reading you post I was slightly optimistic about getting this issue sorted but after having transferred the "COMDLG32.ocx" file used on my system and placed it in the system32 folder on the other system, but the problem still remains. I also matched the other systems references to those of the working system, but still no joy.

I also took a look at the file from the link you gave me, but it’s too complex and requires a greater amount of user input for what my system is required for. My system makes use of the FindFirstFile function, which takes the user directly to the file area they require based on what parameters are passed to it.

As another way to try and solve this issue I then tried to replace the control on the other system, by deleting and then recreating it, this then presented me with a run time licence error.

And ideas of what path to take from here?
Feb 19 '07 #7
debasisdas
8,127 Expert 4TB
this problem i sbecause of the missing ocx file
since vb 6 is not installed in other pc its not working
to solve this u need to create the setup and install in that system.
simply compiling the EXE will not work

still if the problem persists copy that OCX file to the system32 folder and register the file with windows by using REGSVR32 key

at RUN

REGSVR32 'complete path of the file'


difinately it will work
Feb 19 '07 #8
Quish
22
Thanks for you help but I’m sorry to say that the problem is still not fixed. Is their any setting within Access, which may prevent the ActiveX controls from working?

The reason why I say this is because I have another totally separate database application on both systems, which uses the same ActiveX control and it works perfectly.
Feb 19 '07 #9
Quish
22
THANKS for all the help. I managed to solve the problem by creating a dummy form with a Common Dialog Control and basic file browse function. I then loaded that along with the rest of the database onto the other system, from there I recreated the form I needed using the dummy form on the second system and it now works! Though I still don’t know why the form/code did not work in the first place. Ah well – All’s well that ends well. Thanks again
Feb 19 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: John Lauwers | last post by:
Hello, Is there a way to move the commondialog to a specific position ? Greets John
1
by: Gord | last post by:
Hello, Does anyone know how to access the caption property on a command button within the common dialog control? Specificaly, I'm trying to change the caption of the 'Open' button in the 'Open...
3
by: S.W. Rasmussen | last post by:
With the risk of being accused of multi-posting I would like to draw the attention to a serious visual basic/windows issue discussed in the microsoft.public.vb.bugs newsgroup. As pointed out below...
1
by: Paul Shea | last post by:
When I try to place a Common Dialog ActiveX control onto a form I get the error message "The OLE server isn't registered. To register the OLE server, reinstall it." Does anyone know how I can...
4
by: Ron Nolan | last post by:
Re: Access 2000 Has anyone been able to find information in the online help on the topic of "Common Dialog Control? If so, what did you type in your search to receive the information? I've been...
1
by: Dalan | last post by:
To avoid having potential conflicts and problems with different versions of Common Dialogs Controls, I have decided to change the ones I have used to API calls; however, this is somewhat new...
0
by: Bo Gusman | last post by:
A curious problem, one that I think I've seen before. I have a .250 MLOC vb6 app that uses the common dialog control. If I select File/Open in my app to display the file open dialog and then...
6
by: Steve Barnett | last post by:
I need to include a wizard in my application that will, as one of the steps, ask the user to select a file to open and (later) a file to save it as. The naff way to do this would be to have a...
1
by: sirimanna | last post by:
I want to know how can i open some text file data using microsoft common dialog control.6 I know how to save text data using microsoft common dialog control.6 code are here, ...
8
by: Arno R | last post by:
Hi all. When I need to search for pictures, I always have too choose thumbnail-view manually. Is it possible to open the common dialog in thumbnail-view programmatically? Example ?? At the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.