|
edit you message and check the "Ignore HTML tags in this message (good for code snippets)" checkbox at the bottom of the text area... (because your tags are invisible because they've been interpreted as HTML Tags by the browser).
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
|
|
|
|
|
krishnakumartm wrote: Is there any way to merge two files
Yes. People generally hire programmers to accomplish task such as that.
led mike
|
|
|
|
|
Fellows.
The point is: how can I write a C++ (could be on DOS mode) application which identify the hardwares and the softwares installed on my computer?
Thanks for the help!!!
Allan
Allan Romanato
|
|
|
|
|
And why don't you add a function to find out also the origin of the Universe as bonus?
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]
|
|
|
|
|
Allan Romanato wrote: how can I write a C++ (could be on DOS mode) application which identify the hardwares and the softwares installed on my computer?
The answer is obvious and very much the same as to the question "how do you eat an elephant": byte by byte.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Roger Stoltz wrote: how do you eat an elep
Usually with c++ for breakfast.
|
|
|
|
|
This is going to sound snarky...
If you don't realise just how hard a problem this is, you're not qualified to do it.
What do you mean by installed? You can look at Add/Remove programs, and see how many things are there, how many are missing, and how slow it is.
For hardware? Well, drivers can be installed, but maybe they handle different devices? What about things on your serial port(s) ?
How about hardware drivers that may not even represent a physical device?
I can think of a few more gotchas, but that should be enough to frighten you.
If I could answer your question in a more full and helpful manner, I'd be a lot wealthier, and working from Seattle. (Or not.. maybe a penthouse in New York...)
Iain.
|
|
|
|
|
See here and here.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
|
Hi i am also trying the same i think this can be possible by WMI(Windows Management Instrumentation)this will give the applications details which are installed using MSI (Microsoft Installer) , also we can get the details from the registry at location
HKLM\SOFTWARES\Microsof\Windows\CurrentVersion\Uninstall\....
\....
Do you have any ideas i foound send to me at krishnakumar.tm@luckymail.com
Thanks
krish
----------------------------
KRISHNA KUMAR T M
|
|
|
|
|
|
Jijo raj wrote: Regarding installed software, this article might be helpful - How to get a list of installed applications.[^]
But only for those programs that were installed in a "standard" way. Windows has no way of knowing about all programs that have been installed.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi,
Can anyone pleae explain the difference between char* and char** in c++, with examples.
Regards,
KDevloper
|
|
|
|
|
kDevloper wrote: char*
one dimensional array of char. The pointer would contain the base address.
kDevloper wrote: char**
two dimensional array of chars or better said, one dimensional array of strings in some scenarios
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
kDevloper wrote: Can anyone pleae explain the difference between char* and char** in C++
in C++ ? the same as in C.
char* is a pointer that points to a char.
char** is a pointer that points to a char*.
when char pointers are used like strings (C style strings then), char* is a string, and char** is an array of strings...
but the later assertion depends of the context...
|
|
|
|
|
Hai !
In my application i created a (.chm)file i.e a help file using html help workshop, there is a button "Help", on clicking it i am able to open the help file , i also want that if the user press F1 from keyboard then also i have to open the same help file so how to detect when F1 is pressed ??
Thanks !
|
|
|
|
|
See here[^]
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
For catching F1, you've to handle WM_HELPINFO message. Check here[^] for code snippet.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
hi,
a simple method is that:
override PreTr... function, in this function, include code as follo
if( pMsg->message == WM_KEYUP )
{
switch ( pMsg->wParam )
{
case VK_F1 :
do your work...
break;
}
}
|
|
|
|
|
Hello all,(Sory about my English) Please help....
VC++ 2005.
I have a func that call to Socket,Bind, Listen & Receive.
I call this func from timer that see if the Client send data.
I get the data in the first call but in the second call I got errors.
I understand that I need to operate the Socket,Bind, Listen only once.
I got err when put this line in a global scope or as a member data in class declaration:
Socket^ listenerSocket = nullptr;
So, I tried to store it with the help of global pointer.
It is good till I call the funcs of the Socket type, after all it just pointer that set to some place in the memory.
Socket^ *GlistenerSocket = nullptr;
Socket^ *GserverSocket = nullptr;
int CMotoScopeDlg::DoSocketGet( String^ server )
{
Socket^ listenerSocket = nullptr;
listenerSocket = gcnew Socket( AddressFamily::InterNetwork,SocketType::Stream,ProtocolType::Tcp );
if (false == SocketBindFlag )
{
listenerSocket = gcnew Socket( AddressFamily::InterNetwork,SocketType::Stream,ProtocolType::Tcp );
GlistenerSocket = &listenerSocket ;
(*GlistenerSocket)->Bind(hostEndPoint ); //Only once
(*GlistenerSocket)->Listen( 4 );
SocketBindFlag = true;
}else{
listenerSocket = *GlistenerSocket; //check this. allocate place??
}
Socket^ serverSocket = (*GlistenerSocket)->Accept(); //ERROR at second time
If I could put this Socket variable in the global place it will help.
Thanks in advance,
Eyal
|
|
|
|
|
As you have Socket^ , and are asking syntax questions, you are in the wrong forum.
You'll get more help in the Managed C++/CLI forum.
You'll get even more help if you read the rest of the posting guidelines and use pre tags.
Good luck,
Iain.
|
|
|
|
|
Hi,
I am using WM_COPYDATA message to send a string from one application to other but how can I do that, my code is here:
TCHAR *szPath=new TCHAR[g_szSelectedFilePath.GetLength()+1]();
memcpy(szPath,g_szSelectedFilePath,g_szSelectedFilePath.GetLength()*2);
delete[]szPath;
COPYDATASTRUCT cs;
cs.dwData=32;
cs.cbData=g_szSelectedFilePath.GetLength()*2;
cs.lpData=szPath;
::SendMessage(hWindow,WM_COPYDATA,NULL,(LPARAM)(LPVOID)(&cs));
what is the use of "cs.dwData=32" I could not find?
When I recive this message in other application only first 2 char are visible of the string and others are garbage chars.
|
|
|
|
|
|
You should really read this[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
As i see this, after you copied some string into your szPath you allocated you delete it and then pass the pointer which now points at the deleted memory area to the copydata.
The dwData member -as far as i know- is just a value you can pass over to the receiver, it can be anything that fits your needs.
|
|
|
|