PDA

Click to See Complete Forum and Search --> : Any opinion?


rocsana
Aug 21st, 2001, 06:50 AM
Hello dear friends,
I'm preparing for the 70-176 Microsoft Cert. exam and I have two questions that I'm not sure of the answer. Maybe you can help.

1. You have two components: a server and a client . After compiling both server and client, you discover an error in your server code. You correct the error and recompile the server. When you run the client, you receive an error message stating "class does not support automation or does not support expected interface". Which two steps must you take to correct this error and prevent to happen again (two answers are correct):
a. Set the version compatibility property of the client project to binary compatibility with the version of the COM now on your hard drive
b. Set the version compatibility property of the server project to binary compatibility with the version of the COM server now on your hard drive.
c. Recompile the client project
d. Recompile the server project.
e. Set the version compatibility property of the server project to no compatibility with the version of the COM server now on your hard drive.
I should say answer b,d. What's your opinion?

2. You have created a VB application that will asynchronously communicate with a set of out-of-process COM components by passing its own objects to them. This application will supply the user interface for the entire group of components by displaying a form named frmMain. You have set frmMain as the startup object for your application. Which project properties must you set to ensure that frmMain will be shown when your application in first started?
a. Set the Project type to ActiveX DLL and Start Mode to ActiveX component
b. Set the Project type to ActiveX EXE and Start Mode to ActiveX component

My answer could be b, but many others would say a.
What do you say?

:cool:

wolfofthenorth
Aug 21st, 2001, 09:27 AM
Hi,

On question 1, I would say b & c.

B. Will stop the servers GUIDs from changing again
C. Will give the client the current version of the GUIDs


On question 2, I believe the best answer is b. A dll is loaded in the process space of an exe. And, it may be considered bad form to expose screens to users from a dll.


Stand alone start mode on an ActiveX exe might be a better choice.

Maybe someone else will offer a better opinion on question 2.

:)