Thread: exporting class methods to library results in .lib and .exp

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Shadow12345
    Guest

    exporting class methods to library results in .lib and .exp

    I'm trying to export some class methods to dll and lib files, but instead of creating a dll it's creating a .exp file, is it supposed to be doing this? I haven't seen class methods being exported before so I wasn't entirely sure what to do, but in my header file i've got:
    __declspec(dllexport) return type Name(parameters);
    and then in the implementation file i've got:
    __declspec(dllexport) return type Name(parameters) {
    //implementation
    };

    Have I exported correctly? I don't know what I'm doing...

    EDIT: Well I made an app to test the library and it doens't work, gives me an error saying the application couldn't initialize successfully

    Hmmmm, I don't know what I did wrong!
    Last edited by Shadow12345; 01-05-2003 at 06:48 PM.

Popular pages Recent additions subscribe to a feed