Click here to Skip to main content
15,921,694 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem in exporting a dll function Pin
Cedric Moonen1-Dec-06 2:00
Cedric Moonen1-Dec-06 2:00 
Questioncaption buttons Pin
radhika281-Dec-06 0:12
radhika281-Dec-06 0:12 
AnswerRe: caption buttons Pin
toxcct1-Dec-06 0:14
toxcct1-Dec-06 0:14 
GeneralRe: caption buttons Pin
radhika281-Dec-06 0:26
radhika281-Dec-06 0:26 
GeneralRe: caption buttons Pin
David Crow1-Dec-06 3:20
David Crow1-Dec-06 3:20 
QuestionExe's GUI not visible in Remote Access Pin
nsurendran30-Nov-06 23:34
nsurendran30-Nov-06 23:34 
AnswerRe: Exe's GUI not visible in Remote Access Pin
Galatei1-Dec-06 0:37
Galatei1-Dec-06 0:37 
Questionproblem invoking method of active-x control Pin
pv_pravin30-Nov-06 23:11
pv_pravin30-Nov-06 23:11 
sir,
I want to invoke active-x control method.
The object for which is getting created on use of methods(CoGetClassObject , RequestLicKey ,CreateInstanceLic), but i couldn't able to invoke methods of Active-x control.
Here is the code which explains the problem. please suggest me for further action.

void CContainerView::OnRButtonDown(UINT nFlags, CPoint point)
{
IClassFactory* pclsf;
IClassFactory2* pclsf2;
IUnknown* pUnk;
ICalendar* pmydll;

BSTR lickey;

//for mmcontour clsid
static CLSID const clsid = { 0x621464c0, 0x5e90, 0x4da2, { 0x9a, 0x6b, 0x9b, 0x7f, 0xdd, 0x31, 0x91, 0x98 } };

//get the IClassFactory Interface pointer
IDispatch *pDisp = NULL;
HRESULT hr = CoGetClassObject(clsid,CLSCTX_INPROC_SERVER,NULL,
IID_IClassFactory,(void**)&pclsf);

hr = pclsf->QueryInterface(IID_IClassFactory2, (void**)& pclsf2);

if (FAILED(hr))
pclsf->Release();


IMmContrs *pObj;

//To get License key
hr = pclsf2->RequestLicKey(20,&lickey);

//To create instance of object using License key
HRESULT hr2 = pclsf2->CreateInstanceLic(NULL,NULL, IID_IOleObject ,
lickey, (void **)&pObj);


TRY
{
BOOL blTitle;
//Getting Following Error on Execution of methods in MMContour :
//Unhandled exception at 0x78303ba4 (mfc80d.dll) in Container.exe: //0xC0000005: Access violation reading location 0x00000000.
blTitle=pObj->AboutBox();
}
CATCH_ALL(e)
{
THROW_LAST();
}
END_CATCH_ALL
//finally
//{
pclsf2->Release();
}

waiting for your reply.

regards,
praveen A.
praveena@navayuga.co.in

praveen kumar agarwal.
AnswerRe: problem invoking method of active-x control Pin
Galatei1-Dec-06 0:33
Galatei1-Dec-06 0:33 
GeneralRe: problem invoking method of active-x control Pin
pv_pravin1-Dec-06 18:16
pv_pravin1-Dec-06 18:16 
Questionusing an ADT object [modified] Pin
Spherelin30-Nov-06 22:54
Spherelin30-Nov-06 22:54 
AnswerRe: using an ADT object Pin
Cedric Moonen30-Nov-06 23:12
Cedric Moonen30-Nov-06 23:12 
GeneralRe: using an ADT object Pin
Spherelin30-Nov-06 23:41
Spherelin30-Nov-06 23:41 
QuestionProblems in Client/Server Implementation of an MFC application Pin
Vinod Sankaranarayanan30-Nov-06 22:10
Vinod Sankaranarayanan30-Nov-06 22:10 
AnswerRe: Problems in Client/Server Implementation of an MFC application Pin
Galatei1-Dec-06 0:22
Galatei1-Dec-06 0:22 
QuestionRe: Problems in Client/Server Implementation of an MFC application Pin
Vinod Sankaranarayanan1-Dec-06 1:30
Vinod Sankaranarayanan1-Dec-06 1:30 
QuestionPasting same file version to multiple cells using ORCA Pin
rp_suman30-Nov-06 21:03
rp_suman30-Nov-06 21:03 
Questionhow to get correct ppd file for a given printer? Pin
chandkavi30-Nov-06 20:48
chandkavi30-Nov-06 20:48 
QuestionRetrieve URLS of all opened browser Windows? Pin
kiranin30-Nov-06 20:45
kiranin30-Nov-06 20:45 
AnswerRe: Retrieve URLS of all opened browser Windows? Pin
kanduripavan3-Dec-06 2:08
kanduripavan3-Dec-06 2:08 
GeneralRe: Retrieve URLS of all opened browser Windows? Pin
kiranin3-Dec-06 7:06
kiranin3-Dec-06 7:06 
GeneralRe: Retrieve URLS of all opened browser Windows? Pin
kanduripavan3-Dec-06 21:04
kanduripavan3-Dec-06 21:04 
Questionwant the result of child process Pin
Mushtaque Nizamani30-Nov-06 20:36
Mushtaque Nizamani30-Nov-06 20:36 
AnswerRe: want the result of child process Pin
Mike_V30-Nov-06 20:48
Mike_V30-Nov-06 20:48 
GeneralRe: want the result of child process Pin
Mushtaque Nizamani2-Dec-06 3:58
Mushtaque Nizamani2-Dec-06 3:58 

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.