Discussion:
Dynamic Array insert of new record
(too old to reply)
Ronald Stubbe
2008-08-04 07:37:33 UTC
Permalink
Hi,

I am trying to use a Dynamic array that gets created by WSDL import.

The structure that the import utility creates is:

class permissionrecord : public TRemotable {
private:
WideString Fpermission;
public:
__published:
__property WideString permission = { read=Fpermission,
write=Fpermission };
};

typedef DynamicArray<permissionrecord*> permissions;


When i receive data via the SOAP server, I can read it.

When I need to send data back to the server using this structure, I am
not able to write data into the structure.

Is there anyone who can give me a clue how to use this structure by
creating a new instance, and adding data.

I am stuck on this one for 5 days, and can't figure it out.

Thanks
Remy Lebeau (TeamB)
2008-08-04 16:49:23 UTC
Permalink
Post by Ronald Stubbe
When I need to send data back to the server using this structure,
I am not able to write data into the structure.
Why not? You need to be more specific. What have you tried so far that did
not work for you?
Post by Ronald Stubbe
Is there anyone who can give me a clue how to use this
structure by creating a new instance, and adding data.
permissions PermissionArray;
...
permissionrecord *record = new permissionrecord;
record->permission = "...";
...
PermissionArray.Length = PermissionArray.Length + 1;
PermissionArray[PermissionArray.High] = record;
...


Gambit
Ronald Stubbe
2008-08-04 19:53:27 UTC
Permalink
Hi,

Thanks, the example you send is working for me.

I am fairly new in C++ so these structures puzzels me sometimes.

Thanks.
Post by Remy Lebeau (TeamB)
Post by Ronald Stubbe
When I need to send data back to the server using this structure,
I am not able to write data into the structure.
Why not? You need to be more specific. What have you tried so far that did
not work for you?
Post by Ronald Stubbe
Is there anyone who can give me a clue how to use this
structure by creating a new instance, and adding data.
permissions PermissionArray;
...
permissionrecord *record = new permissionrecord;
record->permission = "...";
...
PermissionArray.Length = PermissionArray.Length + 1;
PermissionArray[PermissionArray.High] = record;
...
Gambit
Loading...