怎么用的?我想用串口程序结合DLL,可以做成的程序有哪些?DLL可以用来干些什么有什么好处?

解决方案 »

  1.   

    DLL`````````三种模式``````````
      

  2.   

    用可以DLL方便软件升级,HOOK别的进程就一定要把它写在DLL里
      

  3.   

    是不是一般用扩展模式?extern dll??
      

  4.   

    typedef int(*lpAddFun)(int, int); 
    这个怎么看
      

  5.   

    LoadLibrary(x.dll)
    好象找不到怎么办?
    放同一目录下?]
    我用32 CONCOLE APPLICATION
    测试的
      

  6.   

    放在调用dll的程序的目录中就可以了 
    你试着在32 Dynamic-Link Libray 或是MFC(dll)中编写dll
      

  7.   

    HINSTANCE hmod;
    hmod = ::LoadLibrary ("mfcdll.dll");和HINSTANCE hmod;
    hmod = LoadLibrary ("mfcdll.dll");::有什么区别?
      

  8.   

    fatal error C1010: unexpected end of file while looking for precompiled header directive我
    第一步:   
        
         运行appwizard,定义项目名为mydll,选择mfc   appwizard(dll),而不是mfc   appwizards(exe)。   
        
        第二步:   
        
         在这个例子中,只有一个appwizard屏幕出现,选择mfc扩展dll(mfc   extension   dll   (using   shared   mfc   dll),点击   
        
      finish生成工程。   
    第三步:   
        
         点击file中的new,选择c/c++   header   file,file   name中输入dll,点击ok,创建dll.h。输入extern   "c"   __declspec(dllexport)     
        
      int   fun(int   x1,int   x2,int   x3);   ,保存。   
        
        第四步:   
        
         点击file中的new,选择c++   source   file,file   name中输入dll,点击ok,创建dll.cpp。输入   
        
        #include   "stdafx.h"   
        #include   "dll.h"   
        extern   "c"   __declspec(dllexport)   int   fun(int   x1,int   x2,int   x3)   
         {   
          return   x1+x2+x3;   
         }   
        
        编译生成mydll.dll和mydll.lib。   
        
        
    =======================================
    就出现上面那个错误了, 怎么办?
        
        fatal error C1010: unexpected end of file while looking for precompiled header directive
      

  9.   

    我已经创建一对话框控件,怎么调用MFC 扩展的DLL?