Jump to content

How to fix Cannot convert LPTSTR [] TO LPCTSTR * error?

- - - - -

  • Please log in to reply
No replies to this topic

#1
freiza

freiza

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
Book : Windows System Programming 4th edition.
program number : 2-2
Program Name : Cat.c

I compiled solution cat.sln provided with the cd, it runs fine.

But when I added cat.c support.h environment.h and exclude.h manually to a new solution. And tried to build it I got always get error.
Error msg: C2662 : Cannot convert LPTSTR [] TO LPCTSTR *.

Please show me the steps so that I can compile the file manually. (I am using Visual Studio 2010)

download code at
JMH Associates, Inc.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users