CString and Huge SQL Queries
-
Hi, Does the CString has a max character limit ? Because i can not save to the member variables of CString type very big SQL queries (about 500 characters long). Any suggestion ? sdancer
sdancer75 wrote:
Does the CString has a max character limit ? Because i can not save to the member variables of CString type very big SQL queries (about 500 characters long). Any suggestion ?
CString has limits but it certainly isn't limited to 500 characters. How are you saving your query into the CString? Michael CP Blog [^] Development Blog [^]
-
Hi, Does the CString has a max character limit ? Because i can not save to the member variables of CString type very big SQL queries (about 500 characters long). Any suggestion ? sdancer
sdancer75 wrote:
Does the CString has a max character limit ?
Yes, something on the order of 231 bytes, give or take a few.
"Take only what you need and leave the land as you found it." - Native American Proverb
-
Hi, Does the CString has a max character limit ? Because i can not save to the member variables of CString type very big SQL queries (about 500 characters long). Any suggestion ? sdancer
CString doesn't have limits, your code does. Before blaming someone elses code for an error, first try to find the bug in your code. CString does not have a limit of 500 characters. You are wasting your time looking for your problem in CString. Tim Smith I'm going to patent thought. I have yet to see any prior art.
-
Hi, Does the CString has a max character limit ? Because i can not save to the member variables of CString type very big SQL queries (about 500 characters long). Any suggestion ? sdancer
-
"A CString object can store up to INT_MAX (2,147,483,647) characters." That is what it says in the MSDN libraray.