如题,最近下载了COM技术内幕源码学习,但里面就只有源文件和Makefile文件,请问怎么样生成工程呢?

解决方案 »

  1.   

    1.打开VS2008命令提示窗口(在Visual Studio Tools里);
    2.将当前命令窗口的路径转到你的Makefile文件目录下;
    3.执行nmake命令就可以了。
      

  2.   


    直接nmake报错如下:
    Cmpnt.def(2) : warning LNK4017: DESCRIPTION statement not supported for the targ
    et platform; ignored
    Cmpnt.def : warning LNK4222: exported symbol 'DllGetClassObject' should not be a
    ssigned an ordinal
    Cmpnt.def : warning LNK4222: exported symbol 'DllCanUnloadNow' should not be ass
    igned an ordinal
    Cmpnt.def : warning LNK4222: exported symbol 'DllRegisterServer' should not be a
    ssigned an ordinal
    Cmpnt.def : warning LNK4222: exported symbol 'DllUnregisterServer' should not be
     assigned an ordinal
       Creating library Cmpnt.lib and object Cmpnt.exp
            regsvr32 -s Cmpnt.dll
      

  3.   

    不都是warning吗?
    看上去是com组件,自己建立ATL工程,然后导入代码也可以