Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

all done problem

Status
Not open for further replies.

bubak

Programmer
Jun 25, 2001
208
SK
I've finished a project, it's a dialog with many components,functions,etc... Now I want this little think: I have another, bigger dialog, with an frame in it. Is there some easy way? Or should I create activex component from it? One more thing: I use OnMOuseMove from the dialog windows, will it work?
thx
 
There are many ways. I am thinking about:
- create a COM component as a Wrapper for your dialog and create the dialog with COM and CoCreateInstance or CreateInstance in an IClassFactory. (with ATL or with raw COM)
- create an ActiveX but your dialog will have to depend or MFC library.
- create a DLL with an exported function let's say ShowMyDialog and attach the .h and .leb resulted to the other project.
- why not even create an exe and call it from the other project.
- include the files from current project in the project you want to use (of course this is not a very good method, but is a posibility)

Maybe there are other posibilities. the choice is yours anyway. I think mouse move will work.(more atention if you create an activeX, also if you have some drawing functions that rely o specific map mode of the client containere.g. your other project)

Hope this helps, s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top