• Advertisement


This topic is now archived and is closed to further replies.

ADO paremeter object and null or non printable charcters

This topic is 5847 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Let''s say I have a pointer to char: char *someString... someString contains non printable characters such as HEX 0x20 and under,like Unit Separtors, Break, Esc etc... Now when I pass the pointer to my parameter object and execute my stored procedure, which makes an insert.... the String is not in the table or it gets cut at the first null character... This is unavoidable since my string cointains a 4 byte length header at the begining and I would like to store the entire string. // Initialize DB command parameters. cmd1Param2->Name = "@StringReceived"; cmd1Param2->Type = adVarChar; cmd1Param2->Size = bankResponseLength; cmd1Param2->Direction = adParamInput; cmd1Param2->Value = (char *)someString; cmd1->Parameters->Append(cmd1Param2); Is there a way to fix this...

Share this post

Link to post
Share on other sites

  • Advertisement