好像.h和.lib是必须的。但是.dll有是要,有时不要,这是怎么回事,请大家帮忙。

解决方案 »

  1.   

    不要DLL怎么能加载?你说有时不要可能是因为这个DLL刚好处在系统自动搜索的路径中:
    1:The directory from which the application loaded. 
    2:The current directory. 
    3:The system directory. 
    4:Windows NT/2000/XP: The 16-bit system directory. 
    5:The Windows directory. 
    6:The directories that are listed in the PATH environment variable.
      

  2.   

    当然必须要dll了,不用.h .lib还可以显式加载,没了dll就啥都没喽~~
      

  3.   

    加载DLL可以不使用.h与.lib,可以使用GetProcAddress()