|
type some code to get more detail
|
|
|
|
|
hello..
sipxmngr::EventCallbackProc(SIPX_EVENT_CATEGORY category,void* pInfo,void* pUserData)
{
SIPX_CALLSTATE_INFO* pCallInfo = (SIPX_CALLSTATE_INFO*) pInfo ;
switch (category)
{
case EVENT_CATEGORY_CALLSTATE:
{
switch (pCallInfo->event)
{
case CALLSTATE_OFFERING:
error here sipxmngr::handleCallStateEvent(pCallInfo);
break ;
}
}
return true ;
}
int sipxmngr::handleCallStateEvent(SIPX_CALLSTATE_INFO* pCallInfo)
{
switch (pCallInfo->event)
{
case CALLSTATE_NEWCALL:
sipxmngr::handleNewCall(pCallInfo->hCall, pCallInfo->cause);
break ;
}
return 1;
}
plz tell me the solution.
|
|
|
|
|
U cant call a non-static function like this
<br />
sipxmngr::handleCallStateEvent(pCallInfo);<br />
U need to have an object of the class sipxmngr or make the second function static
|
|
|
|
|
aavesh wrote: when i try to access the function in the secont function.....
The function. Which function ? The second function. Which one ?
Dude, post some code to explain your situation more in detail.
The only solution I can give you here is to make the second function static.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
hello..
sipxmngr::EventCallbackProc(SIPX_EVENT_CATEGORY category,void* pInfo,void* pUserData)
{
SIPX_CALLSTATE_INFO* pCallInfo = (SIPX_CALLSTATE_INFO*) pInfo ;
switch (category)
{
case EVENT_CATEGORY_CALLSTATE:
{
switch (pCallInfo->event)
{
case CALLSTATE_OFFERING:
error here sipxmngr::handleCallStateEvent(pCallInfo);
break ;
}
}
return true ;
}
int sipxmngr::handleCallStateEvent(SIPX_CALLSTATE_INFO* pCallInfo)
{
switch (pCallInfo->event)
{
case CALLSTATE_NEWCALL:
sipxmngr::handleNewCall(pCallInfo->hCall, pCallInfo->cause);
break ;
}
return 1;
}
plz tell me the solution.
|
|
|
|
|
aavesh wrote: plz tell me the solution.
I already told you. Did you try it ? What is the problem ?
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
|
In the OnInitDialog function,
Add a member
HICON m_hIcon;
in the ctor or OnInitDialog, load the icon
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
call SetIcon to set the Icon
SetIcon(m_hIcon, TRUE);
SetIcon(m_hIcon, FALSE);
It's over, now comile compile and run, you can see the icon
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
My Blog | Understanding State Pattern in C++
-- modified at 4:23 Friday 30th June, 2006
|
|
|
|
|
thx a lot
|
|
|
|
|
I try to spy some game using directx8 graphic but I do not get any document about direct8 (only Direct9 Sad). May some one send me somethings.
My mail: sea.loves.you@gmail.com
Very thank.
|
|
|
|
|
Hi I've a requirement to hook into the PrintDlg/StartDoc/EndDoc API's using a global hook to obtain information when the end user does a print from any application that has a File/Print interface.
Any ideas as to what might be the best way to do this ? I'm considering using APIHijack - A Library for easy DLL function hooking by Wade Brainerd (http://www.codeproject.com/dll/apihijack.asp[^])
Any ideas/suggestion would be welcome.
|
|
|
|
|
Hello
Can I able to use the windows explorer context menu in my application.
If possible give me a hint so that I can try.
Regards
Anil
|
|
|
|
|
|
Thanks I will try my best.
ANd hope for some help if I will stuck some where in future.
Regards
Anil
|
|
|
|
|
|
void CParseView::GetEmbeds()
{
IHTMLElement* pDocElem;
IHTMLElementCollection* pElemCollections;
IHTMLDocument2 * pHTMLDoc2 = NULL;
pHTMLDoc2 = (IHTMLDocument2*)(this->GetHtmlDocument());
pHTMLDoc2->get_all(&pElemCollections);
COleVariant varName;
varName = SysAllocString(L"OBJECT");
IDispatch* spDispEmbed;
VARIANT name;
name.vt = VT_I4;
pElemCollections->tags(varName, &spDispEmbed);
IHTMLElementCollection* spCollectEmbed;
spDispEmbed->QueryInterface(IID_IHTMLElementCollection, (void**)&spCollectEmbed);
if (spCollectEmbed)
{
long lLen;
spCollectEmbed->get_length(&lLen);
for (long i = 0; i < lLen; i++)
{
IDispatch* pItem;
name.lVal = i;
spCollectEmbed->item(NULL, name, &pItem);
IHTMLElement* spElement;
pItem->QueryInterface(IID_IHTMLElement, (void**)&spElement);
if(pItem)
pItem->Release();
if(spElement)
spElement->Release();
}
}
if(pHTMLDoc2)
pHTMLDoc2->Release();
}
use the code, I got the length:lLen=4;but I can only fetch the first two Items,when i=2,pItem got a NULL. How could this happen?
|
|
|
|
|
Maybe instead of
spCollectEmbed->item(NULL, name, &pItem);
you should use
spCollectEmbed->item(name, NULL, &pItem);
or
VARIANT v2; v2.vt = VT_I4; v2.lVal = 0;
spCollectEmbed->item(name, v2, &pItem);
I hope it helps.
|
|
|
|
|
Thank you.
But all the same.
VARIANT varIndex;
varIndex.vt = VT_I4;
varIndex.lVal = 2;
VARIANT var2;
VariantInit( &var2 );
spCollectEmbed->item(varIndex, var2, &pItem);
I tried above. I give the varIndex a const:2;
pItem is not NULL now which would be null if I use a for loop when i==2;
so strange.
|
|
|
|
|
See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
Hi guys,
I want to mask two bitmaps which are in memory(used CreateComaptibleDC() API and selected the bitmaps loaded into it.) and results into third one...
I want to use the masked bitmap for outlook customization ( for buttons face )
Hey, If any one have idea about it let me know..
Look forward to your reply.
Regards
Laxman
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
U look into MaskBlt API. This will solve u'r problem.
Jubin Chawda
braindrain1@rediffmail.com
-----------------------------
Come online at:-
fitiyal@yahoo.com
|
|
|
|
|
Could you provide some code snippet so that i can start with it??
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Hi,
When socket_error on server during accept function, is that mandatory to close the server socket(listening socket)?
If the error is not critical why can't the server skip the error & again wait for new connection?
Any suggestions please...
Rove
-- modified at 2:48 Friday 30th June, 2006
|
|
|
|
|
In OnRclickMyTree
pTree->GetSelectedItem returns the item which is selected previously.
How to use right click to change the selected item?
|
|
|
|
|