Suddenly this week on my own PC (Windows 7 - 64 bit - Home Premium) all
these programs throw up the error
quote
Run-time error '32765'
The common dialog function failed during initialization. this error
often occurs when insufficient memory is available.
unquote
This error appears in both compiled versions of the programs and when using
the VB6 editor.
Placing an earlier copy of comdlg32.ocx in the same folder as the VB .exe
file and registering it worked for a while, but today
it has reverted back to the error messages.
Has anyone any idea why this is happening? I have 6 gigs of RAM installed so
memory is not the problem. All my programs
work fine on my XP SP3 machine and on many other users world-wide under
Windows 7. I am stumped as to why this is
happening here.
Regards, Mike Simpson
Penrith, NSW, Australia
Toss it out and use the Windows API directly, so there is no need to include
the extra OCX. Here are some samples(Scroll down to "File Dialogs"):
http://vbnet.mvps.org/code/comdlg/
I have now reverted my system to 1st August and all is working correctly
once more.
Either a Microsoft Fix or something else I had installed this month must
have broken the cmdlg box.
Regards, Mike Simpson
Penrith, NSW, Australia
"Nobody" wrote in message news:i3ng2p$mq2$1...@speranza.aioe.org...
You are aware that Win7 does not ship with comdlg32.ocx, aren't you?
This control must be distributed with you app and properly registered
on the target machine in order to use it with Win7.
for a list of other runtimes not shipped with Win7, see this:
http://msdn.microsoft.com/en-us/vbasic/ms788708.aspx
--
Garry
Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc
In my case, the culprit turned out to be in the flags. I had set a
flag that, if I remember correctly,
had something to do with "read only" directories. Changing my code so
that this
flag didn't get set cleared up the problem.
"Mike Simpson" wrote:
> .
>
have you found a solution yet? I have encountered the same issue with a Vb6
app that installed fine on several Win7 machines a month ago.
Additionally I am running into all sorts of issues with the installed about
requiring admin permission to run even when logged in as admin (telling me
my application wants to change the computer system ???) I am guessing that I
am running into multiple issues but the unravelling with my limited
understanding of Win7 is proving difficult ( plus a slow connection for
GoToMeeting)
Any papers that could help me out?
R
Simon
"Mike Simpson" wrote:
> .
>
Nobody's suggestion is still working for me on Win7x64 with VB6.exe
apps. Try it out and see if it serves you to not use the comdlg.ocx.
"Simon Harder" <Simon Har...@discussions.microsoft.com> wrote in message
news:A24E7717-43DF-4970...@microsoft.com...
Const cdlInitialization = 32765 (&H7FFD)
Member of MSComDlg.ErrorConstants
The function failed during initialization.
"Mike Simpson" <ag...@optusnet.com.au> wrote in message
news:e0cuCC1N...@TK2MSFTNGP05.phx.gbl...