Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. P/Invoke can not find dll

P/Invoke can not find dll

Scheduled Pinned Locked Moved Mobile
helpcomquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xibeifeijian
    wrote on last edited by
    #1

    When I use mapirule.dll like this way:http://msdn.microsoft.com/en-us/library/aa446561.aspx[^] I get a error "Could not find P/Invoke dll 'mapirule.dll' " Who can help me to resolve this problem? I'm sure the mapirule.dll is exist both the program's directory and ./Windows directory. Thanks very much.

    :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)

    L 1 Reply Last reply
    0
    • X xibeifeijian

      When I use mapirule.dll like this way:http://msdn.microsoft.com/en-us/library/aa446561.aspx[^] I get a error "Could not find P/Invoke dll 'mapirule.dll' " Who can help me to resolve this problem? I'm sure the mapirule.dll is exist both the program's directory and ./Windows directory. Thanks very much.

      :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, unmanaged code DLLs are looked up through the PATH evironment variable, which holds a list of folders. So they all must reside in folders from that list. Furthermore if one such DLL calls for another one, the second one must be either in the same folder, or in a folder DOWN the list (not sure which it is). It is often a good idea to prefix ".;" to the PATH so the own folder is looked in first. Hope this helps. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Voting for dummies? No thanks. X|


      X 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, unmanaged code DLLs are looked up through the PATH evironment variable, which holds a list of folders. So they all must reside in folders from that list. Furthermore if one such DLL calls for another one, the second one must be either in the same folder, or in a folder DOWN the list (not sure which it is). It is often a good idea to prefix ".;" to the PATH so the own folder is looked in first. Hope this helps. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Voting for dummies? No thanks. X|


        X Offline
        X Offline
        xibeifeijian
        wrote on last edited by
        #3

        Thanks.

        :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups