export class

hi i have two dlls

in first dll:
1 . derived_class1 -> base_calss
1.1 . derived_class2 -> base_calss
2. dllexport void func(base_calss* bb);

-------------------
in second dll :
i want to call the func several times one time with the first derived class other time with the second derived class
but i need to create the classes how i export the classes so i can send the pointer to other dlls

Comments

  • [b][red]This message was edited by stober at 2005-7-18 8:26:40[/red][/b][hr]
    : hi i have two dlls
    :
    : in first dll:
    : 1 . derived_class1 -> base_calss
    : 1.1 . derived_class2 -> base_calss
    : 2. dllexport void func(base_calss* bb);
    :
    : -------------------
    : in second dll :
    : i want to call the func several times one time with the first derived class other time with the second derived class
    : but i need to create the classes how i export the classes so i can send the pointer to other dlls
    :
    :

    I export the entire class, not just some methods. This is how I export classes in the *.h file

    [code]
    #ifdef _AITEXPORT // define this in the DLL project
    #define DllExport __declspec( dllexport )
    #else
    #define DllExport __declspec( dllimport )
    #endif

    class DllExport CMyDateTime
    {
    // blabla
    };
    [/code]




Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion