Make it as activex control.
If your app is dialog based read this article
http://atcsoft.freeservers.com/thele...gToControl.htm


Please rate the article if it is of any use to you. This encourages me to reply more and more and more.