CredUIPromptForCredentials

  • Thread starter Thread starter neotx
  • Start date Start date
N

neotx

Guest
Trying to use CredUIPromptForCredentials function but it gives me errors when
compiling?

I am using the headers: Windows.h and WinCred.h


- Error message (if any):



fatal error LNK1120.
Error LNK2019: unresolved external symbol
__IMP__CredUIPromptForCredentailsW@40 refrenced in fucntcition "public:void
__thisCall CMMC::OnBnClickedOk(void)"(?OnBnClickedOk@CMMC@@QAEXXZ)


- Please state what you did and where the process failed:

I just compiled it. and I get this errors. I am using the proper header
files and followed instructions.



- Additional information (if any):

I just followed the MSDN instructions.
 
Re: CredUIPromptForCredentials

neotx wrote:

>Trying to use CredUIPromptForCredentials function but it gives me errors
>when
>compiling?
>
>I am using the headers: Windows.h and WinCred.h
>
>- Error message (if any):
>
>fatal error LNK1120.
>Error LNK2019: unresolved external symbol
>__IMP__CredUIPromptForCredentailsW@40 refrenced in fucntcition "public:void
>__thisCall CMMC::OnBnClickedOk(void)"(?OnBnClickedOk@CMMC@@QAEXXZ)
>
>- Please state what you did and where the process failed:
>
>I just compiled it. and I get this errors. I am using the proper header
>files and followed instructions.
>
>- Additional information (if any):
>
> I just followed the MSDN instructions.


Well, you probably want to ask in a programming group, but "unresolved
external symbol" suggests that you've not got a complete set of headers or
includes or something.

--
Steve Foster [SBS MVP]
---------------------------------------
MVPs do not work for Microsoft. Please reply only to the newsgroups.
 
Re: CredUIPromptForCredentials

Add Credui.lib to your link as per MSDN.

Drew

"neotx" <neotx@discussions.microsoft.com> wrote in message
news:FF3E1390-F938-43EE-80FC-17C6566E5255@microsoft.com...
> Trying to use CredUIPromptForCredentials function but it gives me errors
> when
> compiling?
>
> I am using the headers: Windows.h and WinCred.h
>
>
> - Error message (if any):
>
>
>
> fatal error LNK1120.
> Error LNK2019: unresolved external symbol
> __IMP__CredUIPromptForCredentailsW@40 refrenced in fucntcition
> "public:void
> __thisCall CMMC::OnBnClickedOk(void)"(?OnBnClickedOk@CMMC@@QAEXXZ)
>
>
> - Please state what you did and where the process failed:
>
> I just compiled it. and I get this errors. I am using the proper header
> files and followed instructions.
>
>
>
> - Additional information (if any):
>
> I just followed the MSDN instructions.
 
Back
Top