Solved

OLE without MFC

Posted on 1997-08-03
3
350 Views
Last Modified: 2013-11-25
I am writing an addin required an OLE component to be inserted into a dialog box edited by VC++ 5.0.  

1) I start writing it without using any project wizard ( and I do not need them in fact ).  When I insert an OLE component, it does appear in the resource view and there is no error when I compile it.  Nevertheless, the dialog box cannot start and an error comes out : Not enough memory.
This situation will not occur if I remove the inserted OLE component.  Also, I have tried out the same dialog box configuration by starting it with MFC appWizard.  There is no error in this case.

2) If I really use the OLE control in my dialog box, how can I use the OLE control's method without using MFC or how can I accommodate my non-MFC code with the MFC-model OLE control class ?
0
Comment
Question by:Harvey
  • 2
3 Comments
 
LVL 1

Author Comment

by:Harvey
ID: 1166656
Edited text of question
0
 
LVL 1

Author Comment

by:Harvey
ID: 1166657
Adjusted points to 300
0
 
LVL 8

Accepted Solution

by:
gelbert earned 300 total points
ID: 1166658
Your addin application must be OLE container to include OLE component.
I think that the reason of your problem. And You do not have to use MFC to write OLE container since your code is not MFC based. You need just provide set of interfaces which are standard for OLE container. Detail information with sample non-MFC code for OLE container you can find in "Inside OLE" book.(MS Press). You also can find this book on MSDN CD.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now