DLL function names

Hello, world !
I'm using MS Visual C++ 6.0. Can I (and if, how) affect the names of the functions that are stored in my self-made DLL ? I mean, ?ssana@@YGHPAUHWND__@@0PAD1HH@Z is not very good name :)
How could I access it with name 'ssana', for example ?
thnx

Comments

  • hello

    what you see is called "C++ name mangling", c++ compiler do that to support overloading.

    DLLs usually exports C functions and not C++, so if your OK with this rule add this around the exported function names in your H file:
    #ifdef __cplusplus
    extern "C" {
    #endif

    // exported functions
    void blah1(int x);
    void blah2(int x);
    // etc

    #ifdef __cplusplus
    }
    #endif


    : Hello, world !
    : I'm using MS Visual C++ 6.0. Can I (and if, how) affect the names of the functions that are stored in my self-made DLL ? I mean, ?ssana@@YGHPAUHWND__@@0PAD1HH@Z is not very good name :)
    : How could I access it with name 'ssana', for example ?
    : thnx
    :


  • Thanks a lot

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