Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TBackendUser - assigning Provider at run-time



Permlink Replies: 0
Mike Collins

Posts: 46
Registered: 9/23/05
TBackendUser - assigning Provider at run-time
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 18, 2015 8:14 AM
Hi all,

I'm sure this is a really simple task but I cant work out how to code it. I'm creating a thread to do some BaaS admin tasks and as such I need to dynamically create my TKinveyProvider and TBackendUser. No problems here. However I need to assign the TKinveyProvider as the Provider property of the TBackendUser. If I was doing this at design time, I would simply select the instance of the TKinveyProvider from the drop-down list that appears in the Object Inspector for the TBackendUser.Provider property.

However, I'm not sure how to specify this at run-time. I tried something like this:
KinveyProv = new TKinveyProvider( NULL );
BackendUsers = new TBackendUsers( NULL );
BackendUsers->Provider = KinveyProv;

but I get the compile error: E2034 Cannot convert 'TKinveyProvider *' to '_di_IBackendProvider'

Obviously I need to reference the Interface but I have know idea how you do that in code.

Any help would be gratefully received.

Best regards,

Mike
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02