I have an MFC application that querries an ODBC responder.
There is a particular set of messages which is unique to the system which are send to the server through the winsock to register and then to querry the ODBC. Once the application receives the data from the winsock control it is in a string which has to be parsed, right now I got the string separated by the "|"( that's the symbol that separates these messages). Then, the information from the ODBC comes in this format,
{ 1 1 administrator Default {} {} 0 {}}
I am having a hard time parsing the information
out of the curly braces. I was thinking of finding the position of the first "{" brace and then finding the position of the last "}" brace, and then extracting the content in between. If any of you guys have any suggestions, methods or any sample code wchich could help me out it would be great Thanks ;-)
There is a particular set of messages which is unique to the system which are send to the server through the winsock to register and then to querry the ODBC. Once the application receives the data from the winsock control it is in a string which has to be parsed, right now I got the string separated by the "|"( that's the symbol that separates these messages). Then, the information from the ODBC comes in this format,
{ 1 1 administrator Default {} {} 0 {}}
I am having a hard time parsing the information
out of the curly braces. I was thinking of finding the position of the first "{" brace and then finding the position of the last "}" brace, and then extracting the content in between. If any of you guys have any suggestions, methods or any sample code wchich could help me out it would be great Thanks ;-)