Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

OLE without MFC

Posted on 1997-08-03
3
Medium Priority
?
379 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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 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.

618 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