CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: name mangling

  1. #1
    Join Date
    May 1999
    Posts
    5

    name mangling

    hi ,
    while developing a mapi application , i have included mapi.h header file which is having function declerations.
    mapi32.dll is exporting function MAPISendMail().In file mapi.h header file MAPISendMail()function is declared inside extern "C" block.But my application is searching for _MAPISendMail@20 i.e, with name decorations.Can u please help me to solve the problem.
    Software : VC6 & NT4



  2. #2
    Join Date
    Jun 1999
    Location
    Miami, FL
    Posts
    972

    Re: name mangling

    The "name decorations" you're seeing are for the PASCAL (_stdcall) specifier, not for C++.

    It looks like you're not linking with a required .LIB file (ie. mapi32.lib). However, I've always seen MAPI-related code use LoadLibrary/GetProcAddress to access the MAPI functions. Check out the (nice) MAPI classes here in CodeGuru submitted by Rob Manderson: http://www.codeguru.com/internet/imapi.shtml.

    Good luck!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured