| |

VerySource

 Forgot password?
 Register
Search
View: 754|Reply: 9

What the IOleClientSite site does and what role it plays in ActiveX controls

[Copy link]

2

Threads

9

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-2-4 11:00:01
| Show all posts |Read mode
What the IOleClientSite site does and what role it plays in ActiveX controls

After reading for a long time, I haven't figured out this concept!
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-26 18:00:02
| Show all posts
Look inside ole2
Reply

Use magic Report

2

Threads

9

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-3-30 08:45:01
| Show all posts
However a container decides to provide storage elements, it will also need some sort of data structure or internal C ++ object to manage that storage and all the other information about the content object itself. This structure or object is called a client site, or container site . For every content object in a compound document, the container creates a site to manage that content object. The site itself also exposes container-side functionality to the content object in question through two interfaces of its own: IOleClientSite and IAdviseSink, as illustrated in Figure ...

---- from inside ole2, chapter 17
... manage that storage and all the other information ...
I'm sorry, I still don't understand.
Reply

Use magic Report

0

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-4-25 22:30:01
| Show all posts
The concept is not clear!
Who will talk about it!
Reply

Use magic Report

0

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-5-6 18:00:01
| Show all posts
This interface is an excuse that must be inherited when your control needs inplace edit
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-5-14 00:45:01
| Show all posts
Also encountered this problem
Borrow to ask, the DLL control I wrote originally did not have the IOleClientSite interface, but later because I needed to access the JAVASCRIPT function on the web page, so I added it, and then my control can not be registered when it is downloaded, but manually use regsvr32 You can register, why is this?
Reply

Use magic Report

2

Threads

9

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-5-19 09:15:01
| Show all posts
Files cannot be registered when they are downloaded
------------
This may be the consideration of ie security. May need to implement other interfaces ISafe ****
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-5-25 19:15:01
| Show all posts
TOwaiw123()

It was downloadable before, but only after adding the IOleClientSite interface, it could not be registered, and I must have implemented the security interface and anything. It is really strange, why?
Reply

Use magic Report

2

Threads

9

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-5-28 11:45:01
| Show all posts
As far as I know: If IOleClientSite is NULL, the following behavior will be

msdn: IOleObject :: SetClientSite
 The NULL pointer says that that no client site is available and thereby defers notifying the object handler of the client site until the object is initialized.
....
Reply

Use magic Report

2

Threads

9

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-5-29 16:30:01
| Show all posts
You can use GetClientSite () to try to get a site,
If it doesn't work, I don't know how to get a ClientSite,
I also did not find which default implementation ClientSite
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list