>I wanna make a function which support MFC become a dll.Have I declaration
the function like this:
>
>extern "C" __declspec(dllexport) TYPE Function(ClassName ¶ment1...);
>
>Must the parament which is a class be a reference?Because if I didn't set
the parament which is
>a class become a reference, the compiler would say can't convert "class
name" to "class name".
>When I want to use a class as a parament, must I have it be a reference?
I think a pointer would work equally as well, and might be better.
However, perhaps we should ask why you feel the need to pass your whole
class to the DLL? Can we ask what you are trying to do, that requires the
whole class? We may be able to suggest a better way to accomplish this
task...
(For information, we call that item a 'parameter' ('param' for short), not a
'parament')
--
Jason Teagle
[EMAIL PROTECTED]
_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.