Click to See Complete Forum and Search --> : PROBLEM WITH NETMEETING


bozon128
March 28th, 2000, 10:03 AM
hello,

I develop a visioconferencing application with Visual C++ 6.0 under
Windows NT 4.0 SP6 and I use NetMeeting 2.1 SDK.
When I try to connect to an other remote computer, no problem !
When I try to share a program between two computers, I can't share
it...but I found the location of the mistake in my program and I don't
know how to resolve it.

When I want to share an application, one function is called and I give
you a part of the code:

HRESULT back_code = S_OK;

INmChannelAppShare *pChannelAppShare;
INmChannel *pChannel;
IEnumNmSharableApp *pEnumNmSharableApp;
INmSharableApp *pSharableApp;
BSTR bstrName;
CHAR strName[LONGUEUR];
BOOL Share_Application_OK;



back_code = Looking_For_Channel(&pChannel, NMCH_SHARE);
if (back_code == S_OK) {

back_code = pChannel->QueryInterface(IID_INmChannelAppShare,
(void **)&pChannelAppShare);

if (back_code == S_OK) {
back_code =
pChannelAppShare->EnumSharableApp(&pEnumNmSharableApp);

if (back_code == S_OK) {
Share_Application_OK = FALSE;

/************************************************************
// THE PROBLEM IS HERE the following function return S_FALSE
/*************************************************************

back_code = pEnumNmSharableApp->Next(1, &pSharableApp,NULL);

while ((back_code == S_OK) &&
(Share_Application_OK == FALSE)) {
back_code = pSharableApp->GetName(&bstrName);
if (back_code == S_OK) {

..............................

Now , I'm going to describe you the steps of this function:
1- we obtain one pointer to the share channel: *pchannel
2- after, we use *pchannel to point to the
NetMeeting interface: InmChannelAppShare, and we obtain a new
pointer : *pchannelappshare
3- then, an enumerator, which contains all sharable applications, is
used and return a pointer tothe enumerator: *pEnumNmSarableApp
4- at the end, we use Next instruction to find our sharable
application, among all, in the enumerator.
But the code returned by this instruction is S_FALSE, which means
that there areno more InmSharableApp interfaces to retrieve.


In the menu Tools (NetMeeting), I choose "Enable Sharing" option and reboot my computer...but I can't share any applications.
I don't know how NetMeeting finds the sharables programs to save them in
the enumerator?

it seems that no shared program had been found because the enumerator is
empty (Enumsharableapp).

More, I read that two DLLs are necessary to allow the sharing: nmas.dll and mnmdd.dll, so I download them and install them in my computer, but nothins changes: I can't share any application. I try to share an application with NetMeeting interface in the both computers and all is OK; so this test shows that all share DLL are in my computer.
I don't know what is missing in my program?

does anybody have any ideas?


Thanks in advance for your help

Bozon128