Click here to Skip to main content
15,925,369 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPlatform SDK Problem Pin
Bernhard25-May-04 23:14
Bernhard25-May-04 23:14 
GeneralRe: Platform SDK Problem Pin
Antony M Kancidrowski26-May-04 3:55
Antony M Kancidrowski26-May-04 3:55 
GeneralUsing Pipes on Win 98 Pin
Member 33928725-May-04 22:29
Member 33928725-May-04 22:29 
GeneralRe: Using Pipes on Win 98 Pin
Ryan Roberts26-May-04 3:42
Ryan Roberts26-May-04 3:42 
GeneralGetting BoderStyle At Runtine Pin
IceBerG7125-May-04 22:28
IceBerG7125-May-04 22:28 
GeneralRe: Getting BoderStyle At Runtine Pin
Diddy26-May-04 0:05
Diddy26-May-04 0:05 
QuestionIs what possible??? Pin
El'Cachubrey25-May-04 22:17
El'Cachubrey25-May-04 22:17 
AnswerRe: Is what possible??? Pin
Ryan Binns25-May-04 23:48
Ryan Binns25-May-04 23:48 
Generaldebugger out of step with code Pin
bryce25-May-04 21:13
bryce25-May-04 21:13 
GeneralRe: debugger out of step with code Pin
Antony M Kancidrowski25-May-04 22:28
Antony M Kancidrowski25-May-04 22:28 
GeneralRe: debugger out of step with code Pin
MrContact26-May-04 2:39
MrContact26-May-04 2:39 
GeneralRe: debugger out of step with code Pin
bryce26-May-04 13:27
bryce26-May-04 13:27 
GeneralRe: debugger out of step with code Pin
bryce27-May-04 0:51
bryce27-May-04 0:51 
GeneralProblems in Enumerating network Pin
abdul moeed25-May-04 21:12
abdul moeed25-May-04 21:12 
i am trying to enumerate the whole network using RESOURCE_GLOBALNET arguement in the WNetOpenEnum(.,.,.,.,.) function. Program is not running properly it just gives me name of the first domain it finds and then the it terminates. When i use the RESOURCE_CONTEXT arguement in the WNetOpenEnum(.,.,.,.,.) i am able to get all the machines of the particluar sub domain, in which the application is running. For test purposes i am using the following code can any one point out the problem in this code

#include <iostream.h>
#include<windows.h>
#pragma message("network library is linking with \"mpr.lib\"")
#pragma comment(lib, "mpr.lib")


BOOL GetResources(NETRESOURCE *);

int main()
{

cout<<"hello"<<endl;

="" getresources(null);
="" return="" 0;
}



bool="" getresources(netresource="" *pnetresource)

{

="" dword="" dwscope="RESOURCE_GLOBALNET;
" netresource="" *netresource="NULL;
" handle="" henum;
="" wnetopenenum(dwscope,="" null,="" null="" ,="" pnetresource,="" &henum);

="" if="" (henum)
="" {
="" count="0xFFFFFFFF;
" buffersize="2048;
" lpvoid="" buffer="new" char[2048];

="" wnetenumresource(henum,="" &count,="" buffer,="" &buffersize);
="" netresource,="" for="" (uint="" i="0;" <="" sizeof(netresource);="" i++,="" netresource++)
="" (netresource-="">dwUsage == RESOURCEUSAGE_CONTAINER && NetResource->dwType == RESOURCETYPE_ANY)
{

if (NetResource->lpRemoteName)
{
if(NetResource->dwDisplayType == RESOURCEDISPLAYTYPE_DOMAIN)
{
cout<<endl<<"domain "<<="" netresource-="">lpRemoteName;
GetResources(NetResource);
continue;
}

cout<<endl<<"machine "<<netresource-="">lpRemoteName;
GetResources(NetResource);
continue;

}
}

GetResources(NetResource);

}
}

return true;

}
GeneralRe: Problems in Enumerating network Pin
David Crow26-May-04 3:15
David Crow26-May-04 3:15 
GeneralRe: Problems in Enumerating network Pin
abdul moeed26-May-04 19:05
abdul moeed26-May-04 19:05 
GeneralRe: Problems in Enumerating network Pin
David Crow27-May-04 2:31
David Crow27-May-04 2:31 
GeneralRe: Problems in Enumerating network Pin
abdul moeed27-May-04 19:08
abdul moeed27-May-04 19:08 
General1 function multiple buttons Pin
V.25-May-04 21:01
professionalV.25-May-04 21:01 
GeneralRe: 1 function multiple buttons Pin
Johan Rosengren25-May-04 21:32
Johan Rosengren25-May-04 21:32 
GeneralSetting plain text in Outlook Pin
ptrbr25-May-04 20:52
ptrbr25-May-04 20:52 
Questionhow to override the Close or X button of a FormView Pin
elephantstar25-May-04 19:58
elephantstar25-May-04 19:58 
AnswerRe: how to override the Close or X button of a FormView Pin
*Dreamz25-May-04 20:33
*Dreamz25-May-04 20:33 
GeneralRe: how to override the Close or X button of a FormView Pin
elephantstar26-May-04 6:14
elephantstar26-May-04 6:14 
GeneralRe: how to override the Close or X button of a FormView Pin
*Dreamz26-May-04 17:44
*Dreamz26-May-04 17:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.