OLE - early binding without library file ?

Hi all,
1. I am developing an MFC application and need to use an OLE Automation Server, that was written using OWL (Borland C++). The problem is that I do not have any .tlb, .dll, .odl files, or something like that. All I got is the .exe file of the server.
Can I still use it with early binding using MFC wizard?
I am quite a beginner in this area, so excuse me if I use incorrect keywords or mix-up something.
2. Assuming I will get the C++ sources of the server, how do I export a type-library or some equivalent to be used later with the MFC (for example by "adding new class from a type library" in the Class Wizard) ?

thanks,
    Dagan
daganAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chensuCommented:
Simply use CoCreateInstance to get the interfaces and call the methods.
0
daganAuthor Commented:
Thanks, but if I get it right CoCreateInstance() does not allow early binding. I want to create my own wrapping class to hide all the calls to the OLE server (the InvokeHelper(..) calls).
Actually I found out how to create a type library from Borland (you simply compile it with -typelib flag), but it caused some compatibility problems.
That's because the MFC Wizard (I think) didn't recognize all var types defined in the server (especially the BYTE) and did not create a wrapping method to many of the functions.
So it's basically a Borland vs MFC question:

How should I let the MFC Wizard add a class from a type-library (*.olb) defined in Borland C, while using ALL var types?

(was that clear?)
0
chensuCommented:
Using IDispatch is late binding. Using other interfaces directly is early binding. InvokeHelper uses IDispatch.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

daganAuthor Commented:
ehmm...
I guess I should learn a little more about that subject. Anyway I am over that. What leaves me with the question of creating a .olb file from Borland C, which will be fully understood by MFC Wizard.
Meanwhile I'll do some job by hand using Cut&Paste technologies to complete the missing funcs...
0
daganAuthor Commented:
chensu, please propose an answer...
0
chensuCommented:
Thank you.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.