How to copy the cmComment in code below to clipboard in order to paste in comment field of a polygon.
If I click a button in my plugin the comment for that should be copied to clipboard. Can someone add/modify the code snippet for that in below code sample?
static mgbool b1Func (mgrec* db, mgrec* parent, mgrec* rec, void* userData)
char* cmtComment="<AttributeList><MATERIAL NAME=\"CEMENT\" /></AttributeList>";
The OpenFlight API does not provide a function for this. It is out of scope for the OpenFlight API capability.
However, you can use the C-runtime to help. I did a simple Google search on how to copy string to windows clipboard and found plenty of options. Here is a good one that should help you: