Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 17th, 2005, 05:18 AM
Registered User
 
Join Date: May 2004
Location: Cochin, Kerala, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Richy Send a message via Yahoo to Richy
Default Error when complie SSPI.h file

I have project dependent on "SSPI.h".
However, during the conversion to the .NET 2.0 Framework,
when I try to complie "SSPI.h", I get the following error.

error C2440: '=' : cannot convert from '__const_Char_ptr' to 'wchar_t __pin *'

Following is the piece of code which gives error:

wchar_t __pin* pwszServerPrincipalName = NULL;

if ((credential->SecurityPackage == Credential::Package::Kerberos) || (credential->SecurityPackage == Credential::Package::Negotiate))

pwszServerPrincipalName = PtrToStringChars(serverPrincipalName);

I tried out by changing Project properties->C/C++->Language->Treat wchar_t as BuiltInType to "No (/Zc:wchar_t-)" and comiling again. But still the problem is there.
Any suggestions how to proceed.




Similar Threads
Thread Thread Starter Forum Replies Last Post
SSPI security with SSIS forkhead SQL Server 2005 0 February 20th, 2008 07:11 PM
File upload error balesh.mind ASP.NET 2.0 Professional 2 August 20th, 2007 02:52 PM
how to complie java program fafa Apache Tomcat 1 June 15th, 2006 05:10 AM
file error ...being used by another process rreynolds Pro VB.NET 2002/2003 6 January 11th, 2005 11:56 AM
cannot generat SSPI Context mateenmohd SQL Server 2000 1 January 14th, 2004 03:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.