12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

350 Day 9<br />

Quiz<br />

Q I’ve got a bunch of old objects <strong>in</strong> the Object Repository that I don’t use anymore.<br />

How can I get rid of them?<br />

A Choose Options | Repository from the ma<strong>in</strong> menu. The Object Repository<br />

configuration dialog box is displayed. To remove an object, first select the object <strong>in</strong><br />

the Objects list box, and then click the Delete Object button. The object will be<br />

removed from the Object Repository.<br />

Q I had an object stored <strong>in</strong> the Object Repository. Now when I try to use that<br />

object I get a message box that says Unable to f<strong>in</strong>d both a form and a source<br />

file. What’s the problem?<br />

A You have either moved or deleted the source and/or form file for the object. The<br />

Object Repository keeps track of the directory where the object is stored. If you<br />

move or delete the object, the Object Repository is unable to f<strong>in</strong>d the object and<br />

reports an error.<br />

Q Can I add objects to the New page of the Object Repository?<br />

A No. The New page of the Object Repository is fixed. It cannot be deleted or<br />

modified. You’ll have to place your objects on another page.<br />

Q I added a function to my ma<strong>in</strong> form class. Now I can’t compile. What’s the<br />

problem?<br />

A You probably added the function declaration to the published section of the class<br />

declaration accidentally. Be sure that the declaration for your class is <strong>in</strong> either the<br />

public or the private section of the class declaration.<br />

Q I have a resource editor that allows me to decompile resources conta<strong>in</strong>ed <strong>in</strong><br />

other programs. This lets me “borrow” bitmaps and other resources from<br />

other programs. Is this okay?<br />

A The short answer is “No.” You should assume all resources <strong>in</strong> other programs to be<br />

copyrighted material that cannot be freely copied. Consult a lawyer for a qualified<br />

op<strong>in</strong>ion.<br />

Q I have a lot of bitmaps and sound files that go with my application. Can I put<br />

all those resources <strong>in</strong> a file other than the program’s executable file?<br />

A Yes. You can have resources stored <strong>in</strong> a dynamic l<strong>in</strong>k library (DLL).<br />

1. When do you use the Inherit option when select<strong>in</strong>g an object <strong>in</strong> the Object<br />

Repository?<br />

2. What is the procedure for sav<strong>in</strong>g a project to the Object Repository?<br />

3. What happens to <strong>in</strong>herited forms when you change the base form?<br />

4. Where <strong>in</strong> the form’s class declaration do you place user function declarations?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!