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 from the selection below.

COMDLG32 Compile Problems

When I compile applications in VB5 on my machine, the resulting executables
fail due to "unexpected error" due to the presence of COMLDLG32 when they
are run on any machine but my own (the .exe's run just fine on my computer).

I've tried to copy the elements of COMLDLG32 (ocx, dll, etc) from other machines
onto my own, but the only result is that common dialogs do not work anywhere
on my machine (let alone compile).

Another detail is that VB5 applications developed on my machine and then
loaded for compilation on other machines have errors in loading forms where
any common dialogs are present, and the common dialogs turn into picture
boxes and have to be replaced.

Any ideas on a solution to this? I'd like to have the same sort of common
dialog as other machines have, and be able to compile code with common dialogs
that will work on machines other than my own.

Re: COMDLG32 Compile Problems

You definitely have a versioning problem.

Try comparing the version of the Comdlg32 on your machine with the one on
the clients. You may have installed an application (VB6, Office 2000, IE5,
some 3rd party tool, etc ...) which upgraded your controls. If that's the
case, you will need to deploy the newer versions with your app. Also make
sure that the development machine are all at the same level.

If you need more help. just ask, or post your question in the Q&A section of
OSTnet's Developer section.

OSTnet develops software and subcontracts much of the work to registered
developers over the Internet. Members of www.ostnet.com are free to view all
company projects open for tender (in the Projects section of the Developer
Home) and can apply to work on these projects. We prequalify all of our
members to determine their level and areas of expertise. Please feel free to
sign up at your leisure and write the exams in order to qualify yourself for
OSTnet projects.

"Chet" <nonegiven@toavoidspam.com> wrote in message
news:39f6f795$1@news.devx.com...
>
> When I compile applications in VB5 on my machine, the resulting
executables
> fail due to "unexpected error" due to the presence of COMLDLG32 when they
> are run on any machine but my own (the .exe's run just fine on my
computer).
>
> I've tried to copy the elements of COMLDLG32 (ocx, dll, etc) from other
machines
> onto my own, but the only result is that common dialogs do not work
anywhere
> on my machine (let alone compile).
>
> Another detail is that VB5 applications developed on my machine and then
> loaded for compilation on other machines have errors in loading forms
where
> any common dialogs are present, and the common dialogs turn into picture
> boxes and have to be replaced.
>
> Any ideas on a solution to this? I'd like to have the same sort of common
> dialog as other machines have, and be able to compile code with common
dialogs
> that will work on machines other than my own.