|
Hi,
How can i use IQueryAssociations interface to get all applications & its executable path associated to a specified file extensios such as .txt.
ie I mean , I wanted to a construct a list of applications associated to .txt file extesion.
thanks
Nitheesh
Jose Jo Martin
http://www.simpletools.co.in
|
|
|
|
|
Hello together,
I'm using VC++ 6.0 for developing a Unicode application. It works fine, but I have a problem with Unicode output in the debug window. As described everywhere, I checked "Tools->Options->Debug->Display Unicode strings" and I use the TRACE0, TRACE1, etc. macros. But Unicode characters are still shown as '?'.
Does anyone has a solution for this? Thanks in advance...
Kind regards
Marcus
|
|
|
|
|
Try displaying L"Unicode Text" from your program. If you see proper output, then it might probably be that the actual Unicode text (language) you're trying to display is not installed on your system.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Thank you for your reply Rajesh. Using L"..." shows correct characters if I just type Latin characters. If I use a message box then, for example, Russian characters are shown correctly but not for the debug window. Do you have any further advice for me?
Kind regards
Marcus
|
|
|
|
|
You're welcome, Marcus. Have you tried setting a valid Russian Unicode font as the default font for debugger output window? (I'm assuming that the language is installed on your machine, because you say it appears properly on a message box).
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I tried all fonts that I can select in VC6's settings but none did the trick. Is there a way to add new fonts? I never figured out how to do this...
Kind regards
Marcus
|
|
|
|
|
Is it possible to write a program that monitors dialog creation in all processes and auto-fills some edit controls when a particular dialog is detected?
I have an application that prompts the user to login. I also know where the login details are stored so I'd like to be able to auto-fill the username and password controls whenever the login dialog is created. I'm trying to avoid building a back door into the application that could be exploited by end-users.
|
|
|
|
|
Windows CBT Hooks[^]?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Looks like a good place to start. Thanks for the info.
|
|
|
|
|
No, you don't need hooks.
Just use W32 System notifications
|
|
|
|
|
Tell the OP that, then, rather than me.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I have a application which is need windows media player control to play video file.
For that I inserted a Windows Media Player control through Insert ActiveX control in my application. And I Create a variable m_WMPlayer for that media player by Add variable option. Now the system adds a Class called CWMPlayer and adds line of code in DoDataExchange() as
DDX_Control(pDX, IDC_GUI_GAM_TRAILER, m_WMPlayer); // Query1
And I use this m_WMPlayer variable for set URL and uiMode.
m_WMPlayer.put_URL(strTrailerPath);
m_WMPlayer.put_uiMode(_T("mini"));
Here my query is, When I execute the code, The above line (Query1) doesn't create window handle for m_WMPlayer object. CWnd handle still null.
~Sakthi
|
|
|
|
|
I think you'll find that the media player control is windowless (i.e. it's not contained within its own window). If you use Spy++, I think you'll see there's no window associated with teh control.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
The problem is video is playing well but the controls (Play, Stop and volume) doesn't visible. when I move the cursor in Media player control the tooltip text show "Play", "Stop", ...
|
|
|
|
|
Can't duplicate that - I get the controls on an instance of the Windows Media Player that I've added to a sample dialog app.
I even tried setting the control's uiMode property to 'none' in the designer and 'mini' in the dialog's OnInitDialog, to see if that caused issues, but it worked as expected, with the player's controls being displayed.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi , i have developed a program to read registry from local machine,now when i run the exe in a machine which is logged in as admin then my exe gives correct value but when i run in a machine that do not logged in as a user which is not part of admin group then i cannot access to registry why it so.
If i use wmi to read registry then will the above problem get solved ???
|
|
|
|
|
This is a Vista related issue, I suppose. A program having 'standard' user privileges can only access the HKEY_CURRENT_USER tree, as far as I 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]
|
|
|
|
|
No i am running in windows xp network and i am reading this key
HKEY_CURRENT_USER\\Software\\Policies\\Microsoft\\Windows\\Control Panel\\Desktop\\ScreenSaveTimeOut
This key is set through group policy by the system admin for a particular domain but i am unable to read this key in non admin rights , but in admin rights i can read this key.
Why it is soooooooooo ??
Below is my code
void GetScreenSaverTimeOutInfo()
{
try
{
HKEY hKey;
strCategory=SysAllocString(L"ScreenSaverInfo");
strItemName=SysAllocString(L"ScreenSaveTimeOut");
strInstallDate=SysAllocString(L"-NA-");
strVersion=SysAllocString(L"-NA-");
strValue1=SysAllocString(L"-NA-");
strValue2=SysAllocString(L"-NA-");
strValue3=SysAllocString(L"-NA-");
if (RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Software\\Policies\\Microsoft\\Windows\\Control Panel\\Desktop"), 0, KEY_ALL_ACCESS, &hKey)!=ERROR_SUCCESS)
{
WriteToFile(GetNewRow());
}
else
{
DWORD dwType = REG_SZ;
TCHAR buf[10] ;
DWORD dwBufSize = 10;
if( RegQueryValueEx(hKey,TEXT("ScreenSaveTimeOut"),0, &dwType, (LPBYTE)&buf, &dwBufSize) == ERROR_SUCCESS)
{
strValue1=SysAllocString(buf);
WriteToFile(GetNewRow());
SysFreeString(strValue1);
SysFreeString(buf);
}
else
{
WriteToFile(GetNewRow());
}
RegCloseKey(hKey);
}
SysFreeString(strCategory);
SysFreeString(strItemName);
SysFreeString(strInstallDate);
SysFreeString(strVersion);
SysFreeString(strValue1);
SysFreeString(strValue2);
SysFreeString(strValue3);
}
catch(char *error)
{
error="Error occurred in function GetScreenSaverSecureInfo()";
throw error;
}
}
|
|
|
|
|
It's because that key is protected from user access - registry keys can have permissions and ACLs just like files can. You can see and manipulate those using regedit.
The group policy stuff does a lot of this sort of thing - you'll find even if you change the values under the key, they'll get reset again when you next login.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
is there any way i can read this key ??????????
|
|
|
|
|
Member 6392036 wrote: is there any way i can read this key ???
Of course, open it with KEY_QUERY_VALUE or KEY_READ access rights instead of KEY_ALL_ACCESS .
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
It's amazing to see how people cannot take care of little things like that. They just throw anything at it and expect it to work. Not to mention they'll blame UAC then.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: Not to mention they'll blame UAC then.
I've been blaming UAC[^] for basically everything the latest 15 or so years.
I can assure you that my first encounter wasn't really friendly.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: It's amazing to see how people cannot take care of little things like that
which little things you are talking please elaborate it.
|
|
|
|