locked
how to solve a linker problem...occured while using a api return by 3rd party...i donot have the code for it... RRS feed

  • Question

  • Dear all,
                      i am working on windows mobile...i need to use a 3rd party api in my programmbut we i use it i getas...struct IImage * __cdecl LoadImage_FromFile(wchar_t *) (?LoadImage_FromFile@@YAPAUIImage@@PA_W@Z) referenced in function "int __cdecl LGMenu_OnCreate(struct HWND__ *,struct tagCREATESTRUCTW *)" (?LGMenu_OnCreate@@YAHPAUHWND__@@PAUtagCREATESTRUCTW@@@Z)...
    similar 5 issues...plz help me..ppl..for more info plz revert to me...
    Monday, July 6, 2009 10:00 AM

Answers

  • Hello Avinash Reddy,
    U can load the Dll dynamically,

    and then call GetProcAddress Api.

    hopefully this can solve ur problem.


    HWND hWnd = LoadLibrary(dll name);

    GetProcAddress(hWnd, function name);

    Thanks
    Arpit Pradhan

    WinCE CODER
    • Marked as answer by warrentang Friday, July 10, 2009 2:02 AM
    Wednesday, July 8, 2009 9:31 AM

All replies

  • Could you rephrase your description? It's hard to read. In particular please describe the error more clearly. It's also a good idea to contact the support of the 3rd party library. 
    Please mark the post that helps you, and unmark that does not. This benefits our community members.
    • Edited by warrentang Wednesday, July 8, 2009 4:22 AM
    Wednesday, July 8, 2009 4:21 AM
  • Hello Avinash Reddy,
    U can load the Dll dynamically,

    and then call GetProcAddress Api.

    hopefully this can solve ur problem.


    HWND hWnd = LoadLibrary(dll name);

    GetProcAddress(hWnd, function name);

    Thanks
    Arpit Pradhan

    WinCE CODER
    • Marked as answer by warrentang Friday, July 10, 2009 2:02 AM
    Wednesday, July 8, 2009 9:31 AM