|
Try passing hGlobalMemory instead of lpGlobalMemory in SetClipboardData function.
|
|
|
|
|
Can we use SetLocaleInfo for non-union code to support unicode strings.
If, so please give me an example not declaration.
|
|
|
|
|
I am not able to create a "Test" shared Registry key under
"HKEY_LOCAL_MACHINE\Software\".
Description: I am looking to create a key that will be shared by 32bit as well as 64 bit process.Since I m looking to run a 32/64 bit process on Windows 7.
Could you some one assist me.
Monu_TCS
Pune
|
|
|
|
|
|
But I want to make it shared. Is it any way to make shared.
since "HKEY_LOCAL_MACHINE\software\Policies"
&
"HKEY_LOCAL_MACHINE\software\RegisteredApplications "
are shared for both. I want create in similar fashion
"HKEY_LOCAL_MACHINE\software\Test" How to do
Monu_TCS
Pune
|
|
|
|
|
Monu_TCS wrote: I am not able to create a "Test" shared Registry key under
"HKEY_LOCAL_MACHINE\Software\".
Why not?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Monu_TCS wrote: I am not able to create a "Test" shared Registry key under "HKEY_LOCAL_MACHINE\Software\".
Ummm - access permissions?
You know, most Windows functions return error codes and set the thread's error status (see GetLastError[^]), just so that you can tell why failure's occurred....
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Actually I want to make the Key as shared key, That will be accessible by 32 and 64 bit both application.
Monu_TCS
Pune
|
|
|
|
|
KarstenK told you that there are separate 32- and 64-bit registries. That says to me that your desire isn't going to be fulfilled. Get over it and use a file instead - I believe Microsoft kind of recommend using files for configuration information (rather than the registry) these days.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I think we can use symbolic link insted of shared link.
Monu_TCS
Pune
|
|
|
|
|
Hello
I am beginner in VOIP.I try to make simple calling and answering application.
Here i face this problem -I can hear only one side(calling).
Please check this following code.
//Calling-Ip Calling Function
gpAddress->CreateCall(bstr,LINEADDRESSTYPE_IPADDRESS,TAPIMEDIATYPE_AUDIO,&gpCall);
hr=SelectTerminalsOnCall(gpCall);
hr=gpCall->Connect(0);
//Answer -I add Answer method in event.
LRESULT CVOIPCallDlg::OnTAPIEvent(WPARAM wParam, LPARAM lParam)
{
CString csName;
switch(wParam)
{
case TE_CALLNOTIFICATION:
{
AddLog("call notification event has occured");
// Get the ITCallNotification interface.
IDispatch* pEvent=(IDispatch *)lParam;
Answer(pEvent);
}
break;
case TE_CALLSTATE:
ITCallStateEvent *a=(ITCallStateEvent *)lParam;
ITCallInfo *b;
if(a->get_Call(&b) != S_OK)
AddLog("get_Call()",hr);
CALL_STATE pCallState;
if(a->get_State(&pCallState)!= S_OK)
AddLog("get_State()",hr);
switch(pCallState)
{
case CS_INPROGRESS:
AddLog("dialing");
break;
case CS_CONNECTED:
AddLog("Connected");
break;
case CS_DISCONNECTED:
AddLog("Disconnected");
break;
case CS_OFFERING:
AddLog("A party wants to communicate with you!");
break;
case CS_IDLE:
AddLog("Call is created!");
break;
}
break;
}
pEvent->Release();
return 0;
}
LRESULT CVOIPCallDlg::Answer(IDispatch* pEvent)
{
HRESULT hr;
ITCallNotificationEvent * pNotify;
pEvent->QueryInterface( IID_ITCallNotificationEvent,(void **)&pNotify);
ITCallInfo * pCallInfo;
pNotify->get_Call(&pCallInfo);
ITBasicCallControl * pBasicCall;
hr = pCallInfo->QueryInterface(IID_ITBasicCallControl,(void**)&pBasicCall);
hr = pCallInfo->get_Address(&gpAddress);
ITStreamControl * pStreamControl;
pBasicCall->QueryInterface(IID_ITStreamControl,(void **) &pStreamControl);
IEnumStream * pEnumStreams;
ITStream * pStream;
hr = pStreamControl->EnumerateStreams(&pEnumStreams);
pEnumStreams->Next(1, &pStream, NULL);
long lMediaType;
TERMINAL_DIRECTION dir;
pStream->get_MediaType(&lMediaType);
hr = pStream->get_Direction( &dir );
ITTerminal * pTerminal;
ITTerminalSupport * pTerminalSupport;
gpAddress->QueryInterface(IID_ITTerminalSupport,(void **)&pTerminalSupport);
hr = pTerminalSupport->GetDefaultStaticTerminal(lMediaType,dir,&pTerminal);
hr = pStream->SelectTerminal(pTerminal);
hr = pBasicCall->Answer();
return hr;
}
Can you help me how it resolve.
Thanks
Mahendra
|
|
|
|
|
Hi ,
When i try to do as follows.
CString strString=_T("testing");
int nSize=sizeof(strString);
now nSize gets a value =4;
how the size is getting 4 strString is a pointer..? i guess it is an object...
Please clarify..
|
|
|
|
|
p_1960 wrote: i guess it is an object...
Yes...
If you look into the code of CString you will get the answer.
- ns ami -
|
|
|
|
|
then why the size of CString is 4..?
|
|
|
|
|
The size of a class object is the sum of size of all the non static members. If you check the CString class (as I told before) you can find only one member inside it. ie., LPTSTR m_pchData;
- ns ami -
|
|
|
|
|
thanks for a convincing explanation.
actually i got carried away by some other false assumption.
|
|
|
|
|
p_1960 wrote: i guess it is an object...
No need to guess: CString is a ATL/MFC class [^]. A class instance is an object.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CString is an object which has some methods as GetLength() which will return the lenght of the incorporated string.
Plaese clarify your question...
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
We have non-unicode application where it has to support different language strings like korean, chinese etc.
I had installed the required language packages. I have to change the language dynamically through a menu item.
Until unless teh language settings have been done in regional/language settings and reboot the machine the language strings doesn't change. Is there any way to by-pass teh reboot so that I can update the required registry values for changing different language???
Even there's The Microsoft AppLocale Utility for this but I shouldn't use that utility in my application.
Please post your views
|
|
|
|
|
CPallini - Expecting reply from you
|
|
|
|
|
Sorry, I don't know...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
It depends how the different languages are involved in your program. (But for Unicode characters you will need a Unicode-app.) I have done this via code by changing the resource dlls.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
That's not as "easy" as it may seems, because sometimes even the hardware is involved...
Let me go back in the early days when the fist IBM PC comes to light: there was the ASCII charset (7 bit) that IBM extended adding 128 more character, fitting 1 byte, and adding gliphs to satisfy many latin-derived alphabets (accented vovels, diacritics. etc, pus some "semigraphics").
This did't in fact satisfy any of the langags since all of the supported ones always had something missing.
When windows comes along, a number of "localizations" had been done by basically replacing some useless glyphs (for a specific language) with more useful ones. This led to a number of different character maps (the so called "codepages") some of them still fitting the 256 glyphs space and some other going ahead of that number by using particular "escapes" (and hence requiring MBCS or DBCS support from the string manipulation functions and from the font definitions, as well from the graphics drivers.
Unicode then standardized all that stuff by giving to any existing "glyph" a specific and unique ID. That makes -in theory- possible to depict all the glyphs in any font but - beware - that requires lot of space so not all font makers does that (or does that in different packaging).
So: non-unicode applications to properly display characters must not only rely on the specification of the langID, but also require the corresponding codepage in the system, and since they cannot be contemporary used (a same code means a different glyph within a different codepage) the kernel (better: the user-side of it: user.dll and gdi.dll) must know which codepage has to use.
But this requires dismounting a driver and mounting another one, affecting the system globally.
That's makes your problem not solvable as an "application local problem".
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
I am using WebBrowser to display power point file. When I right click on the slide it shows a context menu. How can I get the control of the context menu? I need to get all the SubItems of the context menu.
|
|
|
|
|
you got to incorporate the "right" COM-Interfaces, which often have an interface for the IContextMenu-interface.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|