Click here to Skip to main content
15,900,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Excel Automation - Please help ... Pin
thready26-Dec-08 5:30
thready26-Dec-08 5:30 
GeneralRe: Excel Automation - Please help ... Pin
David Crow5-Jan-09 3:55
David Crow5-Jan-09 3:55 
Questionmove to offscreen [modified] Pin
david_joung26-Apr-07 1:15
david_joung26-Apr-07 1:15 
AnswerRe: move to offscreen Pin
Nibu babu thomas26-Apr-07 1:42
Nibu babu thomas26-Apr-07 1:42 
QuestionRe: move to offscreen Pin
David Crow26-Apr-07 4:02
David Crow26-Apr-07 4:02 
AnswerRe: move to offscreen [modified] Pin
david_joung26-Apr-07 6:44
david_joung26-Apr-07 6:44 
QuestionRe: move to offscreen Pin
David Crow26-Apr-07 8:14
David Crow26-Apr-07 8:14 
QuestionRe: Taking more time to create active-x component Pin
praveen kumar agarwal26-Apr-07 0:57
praveen kumar agarwal26-Apr-07 0:57 
sir,

I am working on vc++ 7.0 project and it is based on MDI Compound document view architecture and I am trying to embed an active-x component into my project.
why it takes more time, when i try to create a component on the display document for the first time. The same component when i try to create subsequent time it takes less time. could you please throw some light on it.
Is there any efficient way to write code by which we reduce time while creation of Active-x component.

Below is the code which creates the component

CView* pActiveView = pInterfaceObject->GetActiveView();//getting the handle of active view

if (pActiveView)
{
COleServerDoc* pActiveDocument = (COleServerDoc*)pActiveView->GetDocument(); //assigning the handle to the COleServerDoc.
ASSERT_KINDOF(COleServerDoc, pActiveDocument);

m_pClientItem = new COleClientItem (pActiveDocument,this);//creating a container
}
m_pClientItem->CreateNewItem((REFCLSID)(clsid)); //creating the Active X control through known classid
ASSERT_VALID(m_pClientItem);

if(m_pClientItem)
{
IDualChart *pDualChart;
if (FAILED(m_pClientItem->m_lpObject->QueryInterface(__uuidof(pDualChart), (void**)&pDualChart)))
{
AfxMessageBox(_T("Query interace failed"));
return bStatus;
}
m_pChart.Attach(pDualChart);

Thanks & Regards,
Praveen A.
praveena@navayuga.co.in
pv_pravin@yahoo.co.in

QuestionHow to desgin network security project Pin
sharmaarvind26-Apr-07 0:25
sharmaarvind26-Apr-07 0:25 
QuestionHow can i assign character array to cstring object Pin
Mushtaque Nizamani26-Apr-07 0:14
Mushtaque Nizamani26-Apr-07 0:14 
AnswerRe: How can i assign character array to cstring object Pin
Paresh Chitte26-Apr-07 0:17
Paresh Chitte26-Apr-07 0:17 
AnswerRe: How can i assign character array to cstring object Pin
viral_umang@hotmail.com26-Apr-07 2:25
viral_umang@hotmail.com26-Apr-07 2:25 
GeneralRe: How can i assign character array to cstring object Pin
Mark Salsbery26-Apr-07 7:29
Mark Salsbery26-Apr-07 7:29 
AnswerRe: How can i assign character array to cstring object Pin
Arman S.26-Apr-07 2:31
Arman S.26-Apr-07 2:31 
QuestionMPEG 2 Watermarking Pin
jk chan25-Apr-07 23:59
jk chan25-Apr-07 23:59 
AnswerRe: MPEG 2 Watermarking Pin
KarstenK26-Apr-07 2:37
mveKarstenK26-Apr-07 2:37 
Questionstoping midi file Pin
neha.agarwal2725-Apr-07 23:59
neha.agarwal2725-Apr-07 23:59 
AnswerRe: stoping midi file Pin
Arman S.26-Apr-07 2:23
Arman S.26-Apr-07 2:23 
QuestionOwner of a Window Pin
HakunaMatada25-Apr-07 23:39
HakunaMatada25-Apr-07 23:39 
AnswerRe: Owner of a Window Pin
GuyM25-Apr-07 23:47
GuyM25-Apr-07 23:47 
GeneralRe: Owner of a Window Pin
HakunaMatada26-Apr-07 0:09
HakunaMatada26-Apr-07 0:09 
GeneralRe: Owner of a Window Pin
Mark Salsbery26-Apr-07 7:33
Mark Salsbery26-Apr-07 7:33 
GeneralRe: Owner of a Window Pin
HakunaMatada26-Apr-07 17:28
HakunaMatada26-Apr-07 17:28 
GeneralRe: Owner of a Window Pin
Mark Salsbery29-Apr-07 7:26
Mark Salsbery29-Apr-07 7:26 
QuestionHelp required regarding IRIS Pin
numan12125-Apr-07 23:30
numan12125-Apr-07 23:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.