Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!! 
Author Message
 Please help!!!!Please help!!!!Please help!!!!Please help!!!!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!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!

It would seem that the linker cannot find the code for the
NetWkstaUserEnum function. Maybe you are not linking with the right
library...

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!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!

Quote:
>[stuff deleted]
>when I try to build my program I get
>getinfoDlg.obj : error LNK2001: unresolved external symbol

>executing link.exe.
>[stuff deleted]

It has nothing to do with the code.  You simply forgot to link the
NetWorkstation library.  Assuming you are using Developer Studio, go to the
project setting from the menu and find the "Link" tab.  Add the library
"netapi32.lib" (obviously without the quotes) to the "Object/library
modules" edit control.

                - krosz



Mon, 26 Jun 2000 03:00:00 GMT  
 Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!Please help!!!!

Online help says link to import lib netapi32.lib.  Are you doing this?

Quote:
> It would seem that the linker cannot find the code for the
> NetWkstaUserEnum function. Maybe you are not linking with the right
> library...
> > when I try to build my program I get
> > getinfoDlg.obj : error LNK2001: unresolved external symbol




Mon, 03 Jul 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. 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