Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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.


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:43 PM.


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