Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MFC using Common dialogs in Win NT and 2000

Status
Not open for further replies.

cdraycott

Programmer
Joined
May 24, 2001
Messages
57
Location
GB
I have an MFC application that runs under windows NT and windows 2000.

It has standard File Open and File Save commands added through Class wizard.

The problem is when i install on windows NT and click the File Open menu option, the file Open dialog appears.

When in Windows 2000 doing the same thing , the program just hangs?

Any ideas why this might be.

Same thing occurs for the File Save option.

Thanks
 
Sounds like it could be more machine specific rather than operating system specific. Have you tried it on other Windows2000 machines or even other Windows versions besides NT and 2000?????
If you can get it to work on other machines AND your project is dynamically linked to MFC then I think it could be a mfc42.dll conflict. You could try replacing the mfc42.dll on the 2000 machine.

This is mainly a guess but I can't see any reason why, if it works on NT, it shouldn't work on 2000. Usually it would be the other way around!

tellis.gif

programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
 
The problem has occurred on 2 Windows 2000 Professional machines with Service pack 2.

I have also tried it on two Windows NT 4.0 Sp6 machines and it works fine.

Maybe it could be something to do with the common controls that are being used.

Maybe i need to install some ocx files or dll's, but i thought that internet explorer installed these anyway.

Any ideas.

I do notice that my program will open a document when i pass it as a command line parameter. This works and when the application has been opened this way , it is then possible to open other documents using the open menu item.

So it seems that it happens when i start my program with a new document and then try to open a document.

Just turns to an hour glass and hangs the program. Have to kill it from task manager.

Any ideas??
 
Never heard of a problem like this before! I think you need to try and test the program on some other Windows OS like 98 or XP and see what happens. Without having the prject to hand and testing on several machines I'm afraid this one is beyond me! I'm assuming you're using the box standard common dialogs - if so, they should work fine on all the Windows OS's 95 and later without trouble. Sorry!
tellis.gif

programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top