I've been using MetaKit very successfully with VC++ and haven't had any
trouble with it.  

If you're having compilation errors for passing in c4_View, it's likely
that you didn't include the metakit header files in the right place.
What I usually do is a forward class declaration in my header file and
then include the metakit header files in the cpp file.

So your .h file would have 

class c4_View;

class myclass {
        myclass(c4_View &view);
        ~myclass();
};

And your .cpp file would include the <mk4.h> files.

If you want to post or e-mail back more details, I'll see if I can help
you.

Cheers --

jeffrey kay 
personal weblog <www.k2.com>
pgp key <www.k2.com/keys.htm>

"first get your facts, then you can distort them at your leisure" --
mark twain 
"if the person in the next lane at the stoplight rolls up the window and
locks the door, support their view of life by snarling at them" -- a
biker's guide to life
"if A equals success, then the formula is A equals X plus Y plus Z. X is
work. Y is play. Z is keep your mouth shut." -- albert einstein


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of Barbara Menzel
> Sent: Tuesday, January 21, 2003 6:20 PM
> To: [EMAIL PROTECTED]
> Subject: [Metakit] Question on Views
> 
> 
> 
> Hello!
> We are using MetaKit with Visual C++.  Often, we find there 
> is a need to
> initialize or perform some initial action on a view within a 
> new class.
> I've tried passing the view into the object via the 
> constructor and get
> several compile errors, primarily, c4_view is not a recognized type.
> However, passing a view as a parameter in a member function, 
> there are no
> errors and everything works fine.  The view can even be 
> updated within the
> member function and returned with the updates included.  Has 
> anyone tried
> this or something similar with any success?
> (Embedded image moved to file: pic07483.gif)
> 

_______________________________________________
metakit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to