我问的是一般性的可能,我学COM不久,公司要做这个,只有5天,大哥给个建议,我好有个准备,就算是死也要提前知道呀:(
我是很想完成,因为我刚来公司!
大家也给个思路好么!谢谢各位指点

解决方案 »

  1.   

    可能得看NETMEETING SDK的复杂度;不过我试过Direct Play,简单的应用费时不多,主要的精力可能会花在故障处理上。
      

  2.   

    这位大哥可不可以说清楚点好么?
    我不是很明白,我有NETMEETINGSDK的原代码,就是不知道怎么用
    我在看COM
    你说的Direct Play是什么东西啊??
      

  3.   

    NETMEETING SDK 和 Direct Play 等都是建立在 M$的 DirectX 组件基础上的多媒体应用开发系统;快速掌握这类系统的关键均是从了解其架构和接口入手;系统自身附带的例程是最好的学习代码。
      

  4.   

    我编译了netmeetingsdk的sample中的关于语音部分的代码,可是总是出现如下的错误:
    --------------------Configuration: avphone3 - Win32 Debug--------------------
    Compiling...
    avphone3.cpp
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2039: 'ShowWindowAsync' : is not a member of '`global namespace''
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2660: 'ShowWindowAsync' : function does not take 2 parameters
    callntfy.cpp
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2039: 'ShowWindowAsync' : is not a member of '`global namespace''
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2660: 'ShowWindowAsync' : function does not take 2 parameters
    clutil.cpp
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2039: 'ShowWindowAsync' : is not a member of '`global namespace''
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2660: 'ShowWindowAsync' : function does not take 2 parameters
    cnfntfy.cpp
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2039: 'ShowWindowAsync' : is not a member of '`global namespace''
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2660: 'ShowWindowAsync' : function does not take 2 parameters
    conf.cpp
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2039: 'ShowWindowAsync' : is not a member of '`global namespace''
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2660: 'ShowWindowAsync' : function does not take 2 parameters
    mgrntfy.cpp
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2039: 'ShowWindowAsync' : is not a member of '`global namespace''
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2660: 'ShowWindowAsync' : function does not take 2 parameters
    Error executing cl.exe.avphone3.exe - 12 error(s), 0 warning(s)
    我已经在options->directories中包含了netmeetingsdk的include文件夹大虾们指点一下呀~~~~~~~~~~~~~
      

  5.   

    光包含文件夹有什么用啊,大哥,你不会没#include <...>吧
      

  6.   

    上面的大哥,请问在哪个文件中#include<..>?
    还有就是包含什么文件呢??
    急,指点一下
      

  7.   

    好像和c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h这个文件没关系吧??
      

  8.   

    这个只是SAMPLE中的例子呀,不是我写的呀
      

  9.   

    1.看看你用到的类定义放在那个.h文件内,在stdafx.h中#include它
    2.如果是sdk的example,有可能会和MFC申明冲突,包含路径中,把MFC移到最后
      

  10.   

    这个程序是个SAMPLE,在他的.TXT说明书中说,只要重新编译就行了,当然要在options->directories中包含了netmeetingsdk的include文件夹
    可是却出现了上述的错误
    他的说明书如下:
    Windows NetMeeting SDK 3 AVPHONE Readme File
                               April 1999
    ------------------------------------------------------------------             (c) Copyright Microsoft Corporation, 1999CONTENTS
    ========OVERVIEW OF THE AVPHONE SAMPLE
    BUILDING THE AVPHONE SAMPLE
    OVERVIEW OF THE AVPHONE SAMPLE
    ==============================AVPHONE is a Windows sample that demonstrates how to use the
    Microsoft NetMeeting Audio & Video API.
    BUILDING THE AVPHONE SAMPLE
    ===========================Building the sample application requires VC++ Version 6.0 or later.To build the sample from Visual C++, open the project makefile
    (avphone.dsw) as a Microsoft VC++ project, and build as usual.  The 
    NetMeeting SDK directories must be added to your VC++ environment.If your DOS environment is correctly configured, you can build the sample
    from the command line by typing "nmake avphone.mak".  The DOS path, include and lib
    environment variables must point to the VC installation and the 
    NetMeeting SDK directories.
    Known Issues: This sample is best viewd on 1024X768 pixels setting. Painting problems are seen sometimes
          Right after the launch, work around is to minimize and maximize avphone3's window
          so that UI is reapinted.
      

  11.   

    用 avphone 一天就行:http://www.banasoft.net/AVPhone.htm
      

  12.   

    2.如果是sdk的example,有可能会和MFC申明冲突,包含路径中,把MFC移到最后这个试过了吗?readme文档不会说明编译器设置的,特别是sdk程序,默认你不用MFC库的
      

  13.   

    To harry202(harry):
    我试了,还是不行,我把MFC移到了最后,不行啊!还是上面的12个错误!
    这位大哥,你有VC么?可以帮我编一下吧?NetMeetingSDK可以在microsoft下载
    我也可以发给你,
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2039: 'ShowWindowAsync' : is not a member of '`global namespace''
    从这个错误看,好像不是包含路径的错误,而是atlwin.h的错误,可是错在哪儿呢??
      

  14.   

    To Un1():
    你说的avphone是指的你写出来连结中的,还是NETMEETINGSDK中的avphone??
    如果是后者,请详细指点一下好么?
      

  15.   

    我这边网不好,大不开
    我还发现了一个问题,就是我编译NetMeetingSDK中其它的工程是可以的,比如Chat,这就说明了是atlwin.h的问题了,会不会是我的MFC的SDK的版本太老了?我的是98年的
    还有就是,为什么我在运行例如CHAT的工程时,工程还要打开NETMEETING呢??
    我可不可以不用打开NETMEETING?是不是CHAT的东西有移部分是要用到其中的功能,所以要打开,如果我们自己编写SDK的话就不用打开了??
    渴望各位PASSER指点指点!!
    谢谢
      

  16.   

    在atlwin.h中的关于ShowWindowAsync()这个函数的定义如下:
    BOOL ShowWindowAsync(int nCmdShow)
    {
    ATLASSERT(::IsWindow(m_hWnd));
       错误指向-->    return ::ShowWindowAsync(m_hWnd, nCmdShow);
    }
    但在编译时就出现如下的错误:
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2039: 'ShowWindowAsync' : is not a member of '`global namespace''
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2660: 'ShowWindowAsync' : function does not take 2 parameters
      

  17.   

    你的vc升到sp5看看,有些函数在sp5中加了参数,我以前碰到过一个。
      

  18.   

    怎么升啊??
    我不懂哦
    大哥教教我吧还有就是怎么用NETMEETING的SDK啊?我要开始动手做了,可是不知道从何下手!
    书上写的都是如何写COM,
    可是现成的COM我怎么用呢??尤其是上述的COM??
      

  19.   

    www.microsoft.com/download
    里面,选择vc,下载sp5(English),运行即可(有100多MB)
      

  20.   

    用NETMEETING的SDK是不是一定要启动NETMEETING呀??
      

  21.   

    TO harry202(harry)
    我把\sample中的程序放到别人的计算机中运行时,就没有问题,但在我的计算机中就有问题,同样时98的vc,我的机子是2000的,别人的是xp的,我把\vc98\atl\include这个文件夹都拷了过来,颗是还是没有用,是::ShowWindowAsync(int,BOOL)的问题,可我相不明白,是什么问题?在atlwin.h中的关于ShowWindowAsync()这个函数的定义如下:
    BOOL ShowWindowAsync(int nCmdShow)
    {
    ATLASSERT(::IsWindow(m_hWnd));
       错误指向-->    return ::ShowWindowAsync(m_hWnd, nCmdShow);
    }
    但在编译时就出现如下的错误:
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2039: 'ShowWindowAsync' : is not a member of '`global namespace''
    c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h(1078) : error C2660: 'ShowWindowAsync' : function does not take 2 parameters
      

  22.   

    但是我在别的工程里加入::ShowWindowAsync(m_hWnd, CW_HIDE);时]并没有报错,只有在这个工程里有错误
      

  23.   

    恭喜自己,问题解决了!!!在2.14这个日子里终于解决了,让人哭笑不得呀
    是版本号的问题To adm117224(双飞燕):
    我用我自己的方式解决了我的问题,当然,还要谢谢许多人给我的启迪,包括大家,谢谢