I'm currently writing a game in DirectX without using the MFC structure. I am manually crating the window by including windows.h and manually creating the window by using windows functions.
I am a bit confused when it comes to using strings. I would like to use the CString class, as it seems extremely easy, versatile, and memory-efficient. I have a number of functions that require the LPCSTR type, and I have read the CString class is interchangeable with LPCSTR/const char*. This also seems the best and easiest to work with while coding.
However, it seems CString is only included for MFC projects. In order to use CString, I must include the AFX header, and apparently if I include the windows.h header (which I need to draw my window) I cannot include the AFX header.
I am curious if there is a certian header I can specifically include in order to use the CString class, or if anyone has a written-up header file custom made for the CString class, if I could obtain that and use it in my project. Thanks for the help!
I have tried #include <cstring> which gave me no errors, however when I try to use the CString class is still gives me an error about it being an undeclared identifier.