Click here to Skip to main content
16,011,482 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CProgressBar Pin
AnTri8-Mar-03 7:11
AnTri8-Mar-03 7:11 
GeneralRe: CProgressBar Pin
wavewave8-Mar-03 23:28
wavewave8-Mar-03 23:28 
GeneralRe: CProgressBar Pin
AnTri9-Mar-03 0:39
AnTri9-Mar-03 0:39 
GeneralRe: CProgressBar Pin
AnTri9-Mar-03 0:40
AnTri9-Mar-03 0:40 
GeneralRe: CProgressBar Pin
wavewave9-Mar-03 2:08
wavewave9-Mar-03 2:08 
GeneralRe: CProgressBar Pin
AnTri9-Mar-03 2:23
AnTri9-Mar-03 2:23 
GeneralRe: CProgressBar Pin
wavewave9-Mar-03 3:54
wavewave9-Mar-03 3:54 
GeneralNetWkstaGetInfo () Pin
vin7-Mar-03 23:29
vin7-Mar-03 23:29 
How to use this API to get the info of remote machines? Here is my sample code.. I am getting a memory error . Can anyone suggest me where i went wrong. Is there any other way to pass the first argument(machine name) to the API?

////////////////////
//getting details of machines
wchar_t *tmp4=(wchar_t *)malloc(sizeof( wchar_t ));
strcat(mbstr2,tempname[snum]);
mbstr2[strlen(mbstr2)]='\0';
size_t x=strlen(mbstr2);
mbstowcs(tmp4,mbstr2,x);
WKSTA_INFO_101 *level=NULL;
LPTSTR tmp7=(LPTSTR)tmp4;

NET_API_STATUS nwData=NetWkstaGetInfo(tmp7,101,(LPBYTE*)&level);

if(nwData==NERR_Success)
{
int iLen3=wcslen ((unsigned short *)level->wki101_computername);
for(int j=0;j<ilen3;j++)
{
="" name[j]="*(level-">wki101_computername);
level->wki101_computername++;
level->wki101_computername++;
}
name[j]='\0';
AfxMessageBox(name);
//////////////////

Kindly help.

Regards,



Vini
GeneralRe: NetWkstaGetInfo () Pin
Michael Dunn8-Mar-03 5:22
sitebuilderMichael Dunn8-Mar-03 5:22 
GeneralRe: NetWkstaGetInfo () Pin
vin11-Mar-03 9:39
vin11-Mar-03 9:39 
GeneralRe: NetWkstaGetInfo () Pin
Michael Dunn11-Mar-03 11:04
sitebuilderMichael Dunn11-Mar-03 11:04 
GeneralCHtmlView from a DLL Pin
GoddFadda7-Mar-03 19:59
GoddFadda7-Mar-03 19:59 
GeneralRe: CHtmlView from a DLL Pin
GoddFadda8-Mar-03 4:14
GoddFadda8-Mar-03 4:14 
QuestionHow to create a Photoshop plugin Pin
Larry Antram7-Mar-03 15:20
Larry Antram7-Mar-03 15:20 
AnswerRe: How to create a Photoshop plugin Pin
Larry Antram7-Mar-03 16:13
Larry Antram7-Mar-03 16:13 
GeneralCTabCtrl Pin
Chris Losinger7-Mar-03 14:19
professionalChris Losinger7-Mar-03 14:19 
GeneralRe: CTabCtrl Pin
TomKat14-Mar-03 16:36
TomKat14-Mar-03 16:36 
GeneralRe: CTabCtrl Pin
Chris Losinger15-Mar-03 9:06
professionalChris Losinger15-Mar-03 9:06 
GeneralChanging IP address Pin
Baatezu_Not_Home7-Mar-03 12:42
sussBaatezu_Not_Home7-Mar-03 12:42 
GeneralRe: Changing IP address Pin
Dana Epp8-Mar-03 13:42
Dana Epp8-Mar-03 13:42 
Generalleaked GDI objects! Pin
netx20037-Mar-03 11:21
netx20037-Mar-03 11:21 
GeneralRe: leaked GDI objects! Pin
Christian Graus7-Mar-03 11:42
protectorChristian Graus7-Mar-03 11:42 
GeneralRe: leaked GDI objects! Pin
MAAK7-Mar-03 14:13
MAAK7-Mar-03 14:13 
QuestionCObArray.copy ??? Pin
AnTri7-Mar-03 10:37
AnTri7-Mar-03 10:37 
AnswerRe: CObArray.copy ??? Pin
Chris Losinger7-Mar-03 10:45
professionalChris Losinger7-Mar-03 10:45 

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.