Solved

OLE without MFC

Posted on 1997-08-03
3
353 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

911 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

22 Experts available now in Live!

Get 1:1 Help Now