Quantcast
Viewing all articles
Browse latest Browse all 2341

New Post: Save Shape to sqlite using ExportToBinary method

Hellow,

I am using mapwingis in Embarcadero RAD Studio C++.
I want to save Shape object in sqlite by using ExportToBinaryMethod.

The problem is that ExportToBinary function wants parameter of type tagVARIANT* to give serialization of Shape object. Serialization of Shape object was returned in IDispatch* field of tagVARIANT structure and I don't know it's size. I need to know the size in bytes (count of bytes in binary array) of object to save it in sqlite blob field. I can cast IDispatch* to char* without problems, but how get the size?

String serialization works properly, but it is slowly in case of many shapes.

Viewing all articles
Browse latest Browse all 2341

Trending Articles