A
Adam Dempsey
From C++ using UserProp->Name I can get the name of a UserProperty,
but UserProp->Value.bstrVal always returns nothing, anyone have any
ideas what I could be doing wrong and has anyone ever accessed
UserProperties from C++?
UserPropertiesPtr UserProps = Con->UserProperties;
if (UserProps->Count > 0)
{
tot = UserProps->Count;
UserPropertyPtr UserProp;
for (i=1;i < tot + 1;i++)
{
UserProp = UserProps->Item(i);
MessageBox(NULL,UserProp->Name,"Test - Name",MB_OK);
char* sText;
sText = (char*)UserProp->Value.bstrVal;
MessageBox(NULL,sText,"Test - Value",MB_OK);
}
}
but UserProp->Value.bstrVal always returns nothing, anyone have any
ideas what I could be doing wrong and has anyone ever accessed
UserProperties from C++?
UserPropertiesPtr UserProps = Con->UserProperties;
if (UserProps->Count > 0)
{
tot = UserProps->Count;
UserPropertyPtr UserProp;
for (i=1;i < tot + 1;i++)
{
UserProp = UserProps->Item(i);
MessageBox(NULL,UserProp->Name,"Test - Name",MB_OK);
char* sText;
sText = (char*)UserProp->Value.bstrVal;
MessageBox(NULL,sText,"Test - Value",MB_OK);
}
}