Jump to content
Marty001

CreateleOleObject not working/undeclared

Recommended Posts

I am upgrading a VCL application and have a problem using the following code which has worked in the past, I now have Delphi 12.2 and keep getting CreateOleObject is undeclared even though ComObj is in the uses clause, Has this changed in the new versions of Delphi? or am i missing something

 

procedure MinimizeAll;
var
  Shell: OleVariant;
BEGIN
  Shell := CreateleOleObject('Shell.Application');
  Shell.MinimizeAll;
END;

 

Share this post


Link to post
Posted (edited)
1 hour ago, Nigel Thomas said:

Check your spelling?

Indeed:

CreateleOleObject -> CreateOleObject

 

 

Edited by Remy Lebeau

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×