|
I need to find applications installed on Windows XP. Using HKEY_LOCAL_MACHINE\...\Uninstall does not work for the Office software (Word, Excel, Access...), unfortunately.
Does anybody know how to get such a list of applications like to be seen in the "Installed Apps Enumerator" Dialogbox of XP ?
I'd appreciate any code snippet in C/C++ which could help
Best regards
Gerhard
-- modified at 6:19 Tuesday 21st March, 2006
|
|
|
|
|
windows keeps the list of installed application in that uninstall key that you mentioned and also in the MSI database.
You will have to query the MSI database for installed applications
look here[^] for more info
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
HKCR\Applications
Nibu thomas
Software Developer
|
|
|
|
|
Not correct.
what if i install a toolbar or bho which only has a dll file? Then there will be no entry in HKCR\Aplications, correct way is to query the msi database.
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
Hi all,
I am new to Windows Programming. i need some help regarding the listview control.
Can anyone tell me how to make subitems of list view editable using ATL/WTL?
i have seen some MFC articles,but found it hard to make use of them
|
|
|
|
|
Hi comunity,
With the VS2003 C++ compiler option /RTC1 writing:
char sz [ 5 ];
strcpy ( sz, "Hello World" );
I can produce the following error messagebox
Debug Error!
Program: c:\DbgTest\debug\DbgTest.exe
Module: c:\DbgTest\debug\DbgTest.exe
File: c:\DbgTest\DbgTest.cpp
Line: 92
Run-Time Check Failure #2 - Stack around variable 'sz' was corrupted.
On my developing machine it works fine. On other machines, VS2003 not installed,
Filename and Linenumber are missing. I use C:\DbgTest with relative subdir.
Everything is copied, pdb, idb, etc.. Help would be great.
Mattens
|
|
|
|
|
hey mattens, what is your question ??
the only thing i see is that the code is obviously wrong because you write a 12 chars wide string in a 5 chars array, but it seems that you already know that. so, what is your question ?
|
|
|
|
|
My guess is that there is no debugger present in the other machines.
So there are no debug-window to put the debug text in...
Makes sense?
|
|
|
|
|
You are right. There is no debugger and there shouldn't be any.
The message comes up, but without file and line. But it would be great,
if my customer can tell me: "Your progam crashes at file <x> and
line <y>." The absolut pdb - path ist written by the linker to the exe
or dll. The MsVCrt should obtain the pdb from the exe and expose
the correct file and line in the message.
Thank you for answering.
Mattens
|
|
|
|
|
|
Hi, i need help with this code;
---------------------------------------------------------------
LRESULT iresult;
LVFINDINFO plvfi;
plvfi.flags = LVFI_STRING;
plvfi.psz = "test"
iresult = SendMessage(hWnd,LVM_FINDITEM,(WPARAM)-1,(LPARAM) &plvfi);
-----------------------------------------------------------------
given the code above, the program i am running would Crash and a send error report dialog would appear. Ive checked other websites and their syntax is almost the same as this one but i cant seem to make this program work. What am i doing wrong?
Thanks. I'd appreciate any help from you guys
|
|
|
|
|
|
want a neutral code that binds my port to listen socket.
The neutral code should work like (INADDR_ANY(IPv4) or INADDR_ANY6)
In INADDR_ANY(IPv4), the code for listening to multiple network interface is :
sin.sin_addr.s_addr = htonl(INADDR_ANY);
I want the code to work in the following situation:
I have more than one network interface and address. When a request to connect arrives for a particular port, will it be served with code given bellow?
if (IN_iRequestType EQUALS IPV4)
{
stHints.ai_family = AF_INET;
}
else
{
stHints.ai_family = AF_INET6;
}
stHints.ai_socktype = SOCK_STREAM;
stHints.ai_flags = AI_NUMERICHOST | AI_PASSIVE;
getaddrinfo(NULL, szPort, &stHints, &pAI);
bind(hsocket, (LPSOCKADDR)pAI->ai_addr, pAI->ai_addrlen);
I would also like to have documents or any other net resources which supports the neutral code (code which supports both IPv4 and Ipv6)
Please help me to find out a solution for my issue.
|
|
|
|
|
Hi All,
When I link my project what all path compiler seraches for a dll which is being refered in my project. As far as I remember there are few specified paths where compiler does that.
Also lets say I have all my dll in some directory then where can I give path of that directory so that the compiler will search the dll from that.
I am using VC++ 6 compiler.
Thanks,
Vaibhav
|
|
|
|
|
If you want only MSVC6 to search for your directory then:
tools -> options -> directories -> "show directories for" -> executable files
Remember this will only work when running your app inside MSVC. I you want to find the directory any other way, you will have to tell windows wher to search by adding the path of your directory into system path $PATH.
|
|
|
|
|
Actually, I want windows to search it anywhere.. So how do I add the path of my directory where all dlls are kept into $PATH?
Let say dlls are in C:\My Directory\Dlls
Actually in my case Dlls are on a network path.
--------------
Vaibhav...
|
|
|
|
|
how i can get information about my hardware using WMI with visual c++
i need some samples or articles or sites
thanks
am
|
|
|
|
|
|
Hi,
As iam a beginer in database application using VC++, i couldn't overcome
an issue. " Help me out"
Iam connecting SQL database through "ODBC" connectivity, everything works
out at normal operation.
if the SQL engine is stopped, and if i try to connect, the SQL API throughs
the Message Box--promting some connection failure.
How to disable the Message Box?????
Help Me
Madhu
|
|
|
|
|
It is not a "messageBox", it's called "Assertion".
First set break-points in your program and run it debug mode. at one point you will find your code screwing up. copy the block of code and paste here and start your quesion afresh. and dont post a blunt message like this.
VuNic
|
|
|
|
|
Build your Application in RELEASE mode.
Warning: First understand the use of DEBUG mode. when an Assertion is thrown it says something has gone false.(wrong! ), so while developing always use DEBUG mode , so that it gives you warning about failed conditions. In your case, you said that when the server is down it throws an assertion. instread of just ignoring the assertion and moving to release mode, you implement try -catch() in your code. I mean to say "Exception handling". never ignore an assertion and bybass it.
Only after handling all the exceptions its advisable to move to release version,
good luck.
VuNic
|
|
|
|
|
Hi,
As iam a beginer in database application in VC++, i couldn't overcome
an issue. " Help me out"
Iam connecting SQL database through "ODBC" connectivity, everything works
out at normal operation.
if the SQL engine is stopped, and if i try to connect, the SQL API throughs
the Message Box--promting some connection failure.
How to disable the Message Box?????
Help Me
Madhu
|
|
|
|
|
Hi all
I get the Configuration for my application from the Registry. If i write the hostname-field(CEdit) into the Registry, only a few chars were be saved in the Registry. If i read the Registry-entry(eg. hostname), only the first letter were be printed. Do someone have an idea, what the problem is or better what i can do?
I'm really stumped...
and sorry for my english!
hopefull
simon
|
|
|
|
|
Sounds like you're reading UNICODE data but interpreting it as an ANSI string.
Steve
|
|
|
|
|
Before I set the CEdit field with the value, I put the value in a CString. Isn't CString an UNICODE string?
-- modified at 4:01 Tuesday 21st March, 2006
|
|
|
|