I am trying to insert a variable in a SQL string but am not having any success in finding the proper sytax. I am coding in C++. Listed below is code section I am trying to figure out. This code is part of an ADO routine that adds a field in an Access Database.
Then you should use std::string, std::cout, and std::cin instead of the C stuff you are using.
Anyway, as to your problem...the "L" makes the string "wide", which means you cannot use char* with it anyway. I would suggest putting it all into an std::string (or wstring if you have to), and then setting the text using the .c_str() method.