HerbertMunch New Member Sep 11, 2008 #1 hi all, does anyone know how to use the windows api type constructs such as PTSTR together with the normal C functions such as strcopy. For instance strcopy requires strings defined as char* whereas the API returns strings defined with eg LPSTR. Code: char* str = "Hello"; // OK LPSTR str = "Hello"; // Compiler error If you declare LPSTR pszz; , how do you assign it to point to a string? Thanks
hi all, does anyone know how to use the windows api type constructs such as PTSTR together with the normal C functions such as strcopy. For instance strcopy requires strings defined as char* whereas the API returns strings defined with eg LPSTR. Code: char* str = "Hello"; // OK LPSTR str = "Hello"; // Compiler error If you declare LPSTR pszz; , how do you assign it to point to a string? Thanks