Gryffn,
My objective with this code was to pass only an object to the ABC routine and to be able to generate a local copy of it to edit (the ABC routine will actually be an edit form). If the user hits an OK button then the local copy of the object will be Assigned to the original (aObject)...
Nice try, but this does not quite do it.
The AClass.Create seems to create an object of the type TObject1, but does not call the constructor of TObject1. It calls the constructor of TObject only. In the simple examples above, the TObject1's create is the same as TObject, but in a slightly more...
'Why don't you define the Tobject2 as a child of TObject1 and make the procedure a constructor of TObject1.'
For the same reason you wouldn't make a brother the child if his sister!
TObject1 & TObject2 have the same parent, but other than that they have no further relationship.
I use these (freeware) audio components -they're very good!
http://www.delphiarea.com/products/waveaudio/
There is a volume property, although I haven't used it.
I came across an interesting situation that I shall try to describe.
type
TObject1 = class(TObject)
....
end;
TObject2 = class(TObject)
....
end;
implimentation
procedure ABC(aObject: TObject);
var
LocalObject: TObject;
begin
LocalObject :=...
I need to display powerpoint slides from an existing PPT presentation onto a form. Sounds simple, but I haven't been able to achieve it!
I think there are a number of ways to approach this, including;
1) Using TPowerPointApplication
2) Using TOleContainer
Using TPowerPointApplication, I would...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.