Exports

Hi. All of my exports are being exported as _<functionname>@24, how can I export them as <functionname> I'd appreciate a step by step explanation :)


Answer this question

Exports

  • JeriC_hsk

    Do a search on .DEF files and find out.

    http://msdn2.microsoft.com/en-us/library/d91k01sh(VS.80).aspx.



  • MMuffett

    A def file is simply a text file with the contents:

    LIBRARY BTREE
    EXPORTS
    x

    (assumes your DLL will be called BTREE.dll). Once you have created this file, drag into your project. To tell the linker to use this file, go to Project Properties -> Linker -> Input -> Module Definition File, and type the name of the def file.

    Then rebuild



  • GoPro

    Thankyou very much sir. Works perfectly :)

  • melvin77

    Hi. I took a look but I don't understand that url. I've heard of .def files before but I've never seen anything explaining how to actually add one to your project.

    If it helps, I'm already using __declspec(dllexport):

    extern "C" __declspec(dllexport) int __stdcall x(HWND mwnd,HWND,char *data,char*,BOOL,BOOL)
    {
    MessageBox(mwnd,"test~!","test!",MB_OK);
    strcpy(data,"hi");
    return 3;
    }

  • Exports