NETMEETING SDK 和 Direct Play 等都是建立在 M$的 DirectX 组件基础上的多媒体应用开发系统;快速掌握这类系统的关键均是从了解其架构和接口入手;系统自身附带的例程是最好的学习代码。
我编译了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文件夹大虾们指点一下呀~~~~~~~~~~~~~
这个程序是个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.
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的错误,可是错在哪儿呢??
To Un1(): 你说的avphone是指的你写出来连结中的,还是NETMEETINGSDK中的avphone?? 如果是后者,请详细指点一下好么?
在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
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
我不是很明白,我有NETMEETINGSDK的原代码,就是不知道怎么用
我在看COM
你说的Direct Play是什么东西啊??
--------------------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文件夹大虾们指点一下呀~~~~~~~~~~~~~
还有就是包含什么文件呢??
急,指点一下
2.如果是sdk的example,有可能会和MFC申明冲突,包含路径中,把MFC移到最后
可是却出现了上述的错误
他的说明书如下:
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.
我试了,还是不行,我把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的错误,可是错在哪儿呢??
你说的avphone是指的你写出来连结中的,还是NETMEETINGSDK中的avphone??
如果是后者,请详细指点一下好么?
我还发现了一个问题,就是我编译NetMeetingSDK中其它的工程是可以的,比如Chat,这就说明了是atlwin.h的问题了,会不会是我的MFC的SDK的版本太老了?我的是98年的
还有就是,为什么我在运行例如CHAT的工程时,工程还要打开NETMEETING呢??
我可不可以不用打开NETMEETING?是不是CHAT的东西有移部分是要用到其中的功能,所以要打开,如果我们自己编写SDK的话就不用打开了??
渴望各位PASSER指点指点!!
谢谢
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
我不懂哦
大哥教教我吧还有就是怎么用NETMEETING的SDK啊?我要开始动手做了,可是不知道从何下手!
书上写的都是如何写COM,
可是现成的COM我怎么用呢??尤其是上述的COM??
里面,选择vc,下载sp5(English),运行即可(有100多MB)
我把\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
是版本号的问题To adm117224(双飞燕):
我用我自己的方式解决了我的问题,当然,还要谢谢许多人给我的启迪,包括大家,谢谢