newbee Posted July 31, 2011 Share Posted July 31, 2011 when i attempt to compile fgdump in visual studio 2010 i recieve 2 error messages: 1 in pwservice.cpp @ line 100 typedef DWORD NTSTATUS throws an error because NTSTATUS is declared as long in the header file 2 in Pwdump6.cpp @ line 698 & 762 'NetShareEnum' : cannot convert parameter 1 from 'LPSTR' to 'LPWSTR' my question is do i cast these variables (LPSTR & NTSTATUS) or change them to match the (respectively) the header and function declarations? also has anyone else recieved these errors in VS 2010 Quote Link to comment Share on other sites More sharing options...
newbee Posted August 1, 2011 Author Share Posted August 1, 2011 when i attempt to compile fgdump in visual studio 2010 i recieve 2 error messages: 1 in pwservice.cpp @ line 100 typedef DWORD NTSTATUS throws an error because NTSTATUS is declared as long in the header file 2 in Pwdump6.cpp @ line 698 & 762 'NetShareEnum' : cannot convert parameter 1 from 'LPSTR' to 'LPWSTR' my question is do i cast these variables (LPSTR & NTSTATUS) or change them to match the (respectively) the header and function declarations? also has anyone else recieved these errors in VS 2010 so pwservice compiles if built as a release but pwdump6 still has a problem with ^ @ line 698 Quote Link to comment Share on other sites More sharing options...
Netshroud Posted August 1, 2011 Share Posted August 1, 2011 Check the compile options aren't set to wchar by default. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.