473,938 Members | 12,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CommonDialog

Hey,

I'm using the CommonDialog object to load a dialog which allows the
user to select the files they want to upload. This solution works
perfectly on computers that have some Visual Studio applications
installed, but on those without any, it won't work since it doesn't
have the required file registered.

The code I'm currently using:

ComDlg = new ActiveXObject(" MSComDlg.Common Dialog");

ComDlg.Filter = "All Files(*.*)|*.*" ;
ComDlg.FilterIn dex = 1;
ComDlg.Flags = 0x200 | 0x1000 | 0x80000;
ComDlg.MaxFileS ize = 512;

ComDlg.ShowOpen ();
Does anyone have a way I can still use the CommonDialog object on
computers that dont have comdlg32.dll registered correctly? I have no
problem putting the comdlg32.dll file on the users computer, but how
can I register it/use it without registering it?

Any help would be greatly appreciated,
Yaniv

Nov 23 '05 #1
25 11320
ya*********@gma il.com wrote:
Does anyone have a way I can still use the CommonDialog object on
computers that dont have comdlg32.dll registered correctly? I have no
problem putting the comdlg32.dll file on the users computer, but how
can I register it/use it without registering it?


You cannot. There is either support for this control or there is not.
There is no between. And since you have correctly identified the problem
to be not script-related, why are you insisting on posting in to this
newsgroup dealing with _J(ava)Script/ECMAScript_?
PointedEars
Nov 23 '05 #2
ya*********@gma il.com wrote:
I have no
problem putting the comdlg32.dll file on the users computer, but how
can I register it/use it without registering it?


You certainly should have a problem with putting comdlg32.dll on the users'
computers as you don't have a license for that. You may only redistribute
those files which Microsoft list as redistributable and they are quite
explicit that comdlg32.dll is not redistributable .

See http://support.microsoft.com/kb/q216368/
Nov 23 '05 #3
VK

Thomas 'PointedEars' Lahn wrote:
You cannot. There is either support for this control or there is not.
There is no between. And since you have correctly identified the problem
to be not script-related, why are you insisting on posting in to this
newsgroup dealing with _J(ava)Script/ECMAScript_?


Maybe because JScript is used as a tier to access system resources?

To OP: do not pay attention to <Thomas 'PointedEars' Lahn> - he's
trying to be local spooky man, but he's not spooky at all really. Just
say him "grrrh" out loud and he will run away. :-)

Presuming you have all rights in your LAN:

First you have to install free Microsoft .Net Framework package on each
computer.

Patch .Net Framework with 1.1 patch (if needed).

To start using a .dll library first you need to register it in GAC
(Global Assembly Cash). The simplest way I've found so far is using
Windows Explorer:
1. Run two instances of Explorer.
2. In the first Explorer navigate to the folder where your dll is
located
3. In the second Explorer navigate to the folder <Windows>\assem bly
4. Drag and drop dll from the first Explorer window to the second one.
5. It should work now.

NB: it must be Windows Explorer, not a folder window, otherwise the
bird will not fly.

Nov 23 '05 #4
VK

Duncan Booth wrote:
You certainly should have a problem with putting comdlg32.dll on the users'
computers as you don't have a license for that. You may only redistribute
those files which Microsoft list as redistributable and they are quite
explicit that comdlg32.dll is not redistributable .


Damn right! But a wait a second... comdlg32.dll is not a package
library, it native to Windows XP SP2

To OP:
What OS are you running on other machines?

Nov 23 '05 #5
VK wrote:
Thomas 'PointedEars' Lahn wrote:
You cannot. There is either support for this control or there is not.
There is no between. And since you have correctly identified the problem
to be not script-related, why are you insisting on posting in to this
newsgroup dealing with _J(ava)Script/ECMAScript_?


Maybe because JScript is used as a tier to access system resources?


You have not understood that his is not a question very likely to be
answered here since it is off-topic despite the fact that JScript is
the used interface language: it is not a language problem but one of
the underlying system configuration. He could have used VBScript and
any other interface language and nothing changed.

There is a group dealing with ActiveX-specific _configuration_ issues.
It is not this one.
PointedEars
Nov 23 '05 #6
ya*********@gma il.com wrote:
Does anyone have a way I can still use the CommonDialog object on
computers that dont have comdlg32.dll registered correctly? I have no
problem putting the comdlg32.dll file on the users computer, but how
can I register it/use it without registering it?


Registering it without registering it?
Isn't that impossible by definition?

Anyway can't you distribute it like any other activex on the web?
But even then it still needs to be registered.
Nov 23 '05 #7

ya*********@gma il.com wrote:
Hey,

I'm using the CommonDialog object to load a dialog which allows the
user to select the files they want to upload. This solution works
perfectly on computers that have some Visual Studio applications
installed, but on those without any, it won't work since it doesn't
have the required file registered.

The code I'm currently using:

ComDlg = new ActiveXObject(" MSComDlg.Common Dialog");

ComDlg.Filter = "All Files(*.*)|*.*" ;
ComDlg.FilterIn dex = 1;
ComDlg.Flags = 0x200 | 0x1000 | 0x80000;
ComDlg.MaxFileS ize = 512;

ComDlg.ShowOpen ();
Does anyone have a way I can still use the CommonDialog object on
computers that dont have comdlg32.dll registered correctly? I have no
problem putting the comdlg32.dll file on the users computer, but how
can I register it/use it without registering it?

Any help would be greatly appreciated,
Yaniv


Must you really use the active x object to achieve what you want to do?
There is another way. Users can also upload files through a form.
For example:

<form>
....
<input type = "file">
....
</form>

Nov 23 '05 #8
rf
VK wrote:
Duncan Booth wrote:
You certainly should have a problem with putting comdlg32.dll on the users'
computers as you don't have a license for that. You may only redistribute
those files which Microsoft list as redistributable and they are quite
explicit that comdlg32.dll is not redistributable .

comdlg32.dll by itself is not redistributable but it *is* redistrubitable
as part of other other redistributable objects, the reason being
comdlg32.dll and comctrl.dll (for example) go together. Change only one of
them and your system will break.
Damn right! But a wait a second... comdlg32.dll is not a package
library, it native to Windows XP SP2
Where did you get that idea?

comdlg32.dll has been around since before windows 95. It shipped as part of
win32s, the 32 bit addon to windows 3.1, about eighteen years ago.
To OP:
What OS are you running on other machines?


Indeed. I doubt that comdlg32.dll would install on a Mac :-)

--
Cheers, Richard.
If you are reading this using google groups then also read this:
http://www.safalra.com/special/googlegroupsreply/ if you have not done so
already. If you reply to this post without correct quoting and attribution,
as per the above, I, and others, may just totally ignore you.
Nov 23 '05 #9
rf wrote:
Duncan Booth wrote:
You certainly should have a problem with putting comdlg32.dll on the
users' computers as you don't have a license for that. You may only
redistribute those files which Microsoft list as redistributable and
they are quite explicit that comdlg32.dll is not redistributable .


comdlg32.dll by itself is not redistributable but it *is*
redistrubitable as part of other other redistributable objects, the
reason being comdlg32.dll and comctrl.dll (for example) go together.
Change only one of them and your system will break.


Do you have evidence for this? Everything I can find says comgld32.dll is
not redistributable .
Nov 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1867
by: Norbert Staiger | last post by:
Hi, is there a possibility to center the commondialog control on screnn? Thanks Norbert
0
3556
by: Basil Fenix | last post by:
I use a commondialog control to open a file.It was working perfectly that is showing it in the center of the screen. I then added a toolbar and a imagelist. Now it shows it bottom left of screen.Is there a way of forcing it to show in the center of the screen. Thanks Basil
3
3517
by: Joanny | last post by:
Hi, there, When I open a VB6 application on VB.net, it automatically upgrade to VB.net. But I got the error message said: "Upgrade failed: Exception occurred: The referenced components CommonDialog SSTab are missing design time licenses." I can't find than answer on the support centre, does
1
12985
by: D Wigg | last post by:
Hello all, I'm using VB6.0 to write an application which prints a report. The problem I have occurs when I try to allow the user to select the number of copies and which pages to print. Using the code below doesn't show the printer box to allow the selections to be made but printing happens anyway. The PrintRoutine subroutine (not shown) is copied from the MS knowledge base
2
6273
by: Patrick Blackman | last post by:
I want to create my own custom common dialog derived from the base class"CommonDialog" to display my custom form any ideas how to accomplish this with an example. Thanks Patrick
1
2296
by: Simon | last post by:
Does anyone have the definitive snippet of code for how to inherit from CommonDialog? I want to add an extra control into the OpenFileDialog. I know you cannot inherit from this or from FileDialog, but that you have to inherit from CommonDialog and override RunDialog and Reset. However, I don't know what to put into RunDialog or Reset, and the IDE also comes up with an error about it cannot create an instance of the component. Thanks,
3
1946
by: Michael C# | last post by:
Anyone know of a good resource that details how to inherit from CommonDialog? Thanks.
1
3481
by: DMc | last post by:
Hi, I have been searching for tutorials and tips on how to create my own Dialog box using the CommonDialog abstract class, and I have not been able to find anything useful. Can anyone have any example they would be willing to share or suggest a decent tutorial? Thanks
2
1294
by: abhijeetroy | last post by:
Can anybody help me to save a particular file from one system to another system through commondialog in vb6 Thanks Abhijeet
0
10133
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9963
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11521
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11104
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10653
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9854
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8216
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3498
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.