Please help!!!!Please help!!!!Please help!!!! 
Author Message
 Please help!!!!Please help!!!!Please help!!!!

All,
when I try to build my program I get
getinfoDlg.obj : error LNK2001: unresolved external symbol

executing link.exe.
every thing looks finne what should I do?  Please Look at the code below
and let me know if anything is wrong.
{
NET_API_STATUS getinfo;
char buffername[30];
LPTSTR username, logon_domain, oth_domains, logon_server;
LPBYTE bufptr;
DWORD prefmaxlen; short one1 = 1;
LPDWORD entriesread, totalentries, resumehandle;
WKSTA_USER_INFO_1 userinfo;

GetDlgItemText(IDC_COMPUTERNAME,m_computer);
strcpy(buffername,m_computer);
m_computer.MakeUpper();

getinfo = NetWkstaUserEnum(buffername, one1, &bufptr, prefmaxlen,

entriesread,totalentries, esumehandle);

username = userinfo.wkui1_username;
logon_domain = userinfo.wkui1_logon_domain;
oth_domains = userinfo.wkui1_oth_domains;
logon_server = userinfo.wkui1_logon_server;

Quote:
}

Please help!!!!




Sun, 25 Jun 2000 03:00:00 GMT  
 Please help!!!!Please help!!!!Please help!!!!

You need to link with netapi32.lib
(Go to the Build Settings 'Link' property page, and enter "netap32.lib"
(without
the quotes) in the Object/Library modules edit box.

Les

Quote:

>All,
>when I try to build my program I get
>getinfoDlg.obj : error LNK2001: unresolved external symbol

>executing link.exe.
>every thing looks finne what should I do?  Please Look at the code below
>and let me know if anything is wrong.
>{
>NET_API_STATUS getinfo;
>char buffername[30];
>LPTSTR username, logon_domain, oth_domains, logon_server;
>LPBYTE bufptr;
>DWORD prefmaxlen; short one1 = 1;
>LPDWORD entriesread, totalentries, resumehandle;
>WKSTA_USER_INFO_1 userinfo;

>GetDlgItemText(IDC_COMPUTERNAME,m_computer);
>strcpy(buffername,m_computer);
>m_computer.MakeUpper();

>getinfo = NetWkstaUserEnum(buffername, one1, &bufptr, prefmaxlen,

>entriesread,totalentries, esumehandle);

>username = userinfo.wkui1_username;
>logon_domain = userinfo.wkui1_logon_domain;
>oth_domains = userinfo.wkui1_oth_domains;
>logon_server = userinfo.wkui1_logon_server;

>}

>Please help!!!!





Sun, 25 Jun 2000 03:00:00 GMT  
 Please help!!!!Please help!!!!Please help!!!!

I assume you're writing a Win32 app, and #including LM.H.  Note that the
APIs declared in there are available only on NT and not on Win95.  Also
note that in spite of any parameter or structure declarations to the
contrary, all strings handled by the Net* APIs _must_ be Unicode (wide
character).

Good luck!

Quote:

> You need to link with netapi32.lib
> (Go to the Build Settings 'Link' property page, and enter "netap32.lib"
> (without
> the quotes) in the Object/Library modules edit box.

> Les


> >All,
> >when I try to build my program I get
> >getinfoDlg.obj : error LNK2001: unresolved external symbol

> >executing link.exe.
> >every thing looks finne what should I do?  Please Look at the code below
> >and let me know if anything is wrong.
> >{
> >NET_API_STATUS getinfo;
> >char buffername[30];
> >LPTSTR username, logon_domain, oth_domains, logon_server;
> >LPBYTE bufptr;
> >DWORD prefmaxlen; short one1 = 1;
> >LPDWORD entriesread, totalentries, resumehandle;
> >WKSTA_USER_INFO_1 userinfo;

> >GetDlgItemText(IDC_COMPUTERNAME,m_computer);
> >strcpy(buffername,m_computer);
> >m_computer.MakeUpper();

> >getinfo = NetWkstaUserEnum(buffername, one1, &bufptr, prefmaxlen,

> >entriesread,totalentries, esumehandle);

> >username = userinfo.wkui1_username;
> >logon_domain = userinfo.wkui1_logon_domain;
> >oth_domains = userinfo.wkui1_oth_domains;
> >logon_server = userinfo.wkui1_logon_server;

> >}

> >Please help!!!!



-- Aaron [MVP]
---------------------
Aaron J Margosis

ScrnSaveSwitch/Plus - Screen Saver Control Utility:
http://www.ssswitch.com


Mon, 26 Jun 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!

2. help: Guru needed please please please

3. NEED HELP WITH PRITING AN ARRAY, PLEASE PLEASE HELP

4. PLEASE PLEASE HELP HELP...question on interleaving C functions

5. HELP please on QUEUES!! please, please, please, please,please...

6. Please Please Help!!!!!!

7. ICloneable - Please help.....please....

8. simulate dragDrop of ListView Item -- Please Please Help!!!!

9. Very Urgent !!! please please help

10. SOMEONE HELP ME, HELP ME, HELP ME PLEASE...

11. HELP HELP HELP ME PLEASE!!

12. please help with algorythm, PLEASE

 

 
Powered by phpBB® Forum Software