?
Solved

OLE without MFC

Posted on 1997-08-03
3
Medium Priority
?
375 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

764 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