GetQueueEntry

Author Message
PierreWoodman 02/19/2005 08:41 pm
Hello, i have a problem with GetQueueEntry method

i wanted to parse the .mpx project file with GetQueueEntry to see the downloaded files, but instead of the name it gives me only empty null strings back, so i took a look at the mpx file in hex editor and indeed there are lots of 0 bytes in it..i assume u used a special format to save project, or maybe there is some other problem?

Thx for answering!
Oleg Chernavin 02/21/2005 09:10 am
I just tried and it is working well. Here is the procedure (in Delphi) - you can see how the Tree is populated in the OLE Automation sample included in Offline Explorer Enterprise installation:

procedure TForm1.btnMapClick(Sender: TObject);
var
I: Integer;
J: Integer;
V: Variant;
begin
MapList.Items.Clear;
V := OE.GetProjectByIID(Integer(Tree.Selected.Data));
if not VarIsEmpty(V) then
begin
I := V.MapEntriesCount;
if I > 0 then
For J := 0 to I - 1 do
MapList.Items.Add(V.GetMapEntry(J));
end;
end;

Best regards,
Oleg Chernavin
MP Staff
PierreWoodman 02/21/2005 01:24 pm
Yes, you are right ! It worx perfectly!

Thx for your kind help!
Oleg Chernavin 02/22/2005 03:26 am
You are welcome! What was the problem in your first attempt?

Oleg.
PierreWoodman 02/22/2005 04:56 am
I made a really stupid mistake, instead of GetMapEntry , i used GetQueueEntry :(
But it was already late and i was sleepy , hehehe :)
Oleg Chernavin 02/22/2005 05:34 am
I see.

Oleg.