Thanks It worked!! :-D
vicky
Thanks It worked!! :-D
vicky
Hello, Thanks for your help. Sorry for late reply. The link suggested by you give detail to get system device details but not system model. Thanks Vikas
vicky
Hello, I want to get my computer model name without using WMI. Model name for example one of the HP's workstation model name is "HP xw4400" i want to get using VC++/MFC program. Please help. If it is not possible please suggest some code that uses WMI.
vicky
Hello All, I have posted this question in vista forum but not got any reply. I am developing a network deployment application so first i am gathering OS information of remote nodes at network. i am able to find Windows XP, Windows server, Linux and Unix but i am unable to find finger print of windows vista for ettercap data base (Namp fingerprint) D'Oh! . ettercap i am using for finger print detection. Can anybody tell me where can i find windows vista fingerprint or if anybody know finger print please send me, it will be great help. Thanks Vikas
vicky
Hello All, I am developing a network deployment application so first i am gathering OS information of remote nodes at network. i am able to find Windows XP, Windows server, Linux and Unix but i am unable to find finger print of windows vista (Namp fingerprint) :doh: . ettercap i am using for finger print detection. Can anybody tell me where can i find windows vista fingerprint or if anybody know finger print please send me, it will be great help. Thanks Vikas
vicky
modified on Friday, June 19, 2009 7:15 AM
CPallini wrote:
Have you something personal against if-else?
Yes, i don't like if-else I hate them X|
vicky
I am very sorry for my re-post. I have re-posted my question because at other discussion thread i was getting responses in terms of C# and .Net, but i need response in terms of pure C. I have not done it intentionally, because of web page movement by mistake i've clicked at C# discussion link and posted the question instead of C/C++ category. Thank Vikas
vicky
Thanks for all of your responses. I have got the answer. Thanks Vikas
vicky
One more advantage of this method i can change limits any time at one location for any if condition. So to change the limits i need to see only at one place. Thanks Vikas
vicky
Thank you very much all of your response, The approach Arun has suggested is i think the way i was looking for as best and fasted approach. Thanks Arun to help me suggesting this approach, it's really nice and definitely fastest method uses full potential of C/C++ language. Thanks again. Vikas
vicky
Hello, previously i have posted in wrong forum. Problem is - User can input any number, program need to take decision based on inputs. Let suppose input is stored in variable n; based on value of n some function will be called. program logic can be - if(n > 1 && n < 10 ) callfun1(); if(n > 11 && n < 20 ) callfun2(); if(n > 25 && n < 30 ) callfun3(); if(n > 33 && n < 38 ) callfun4(); if(n > 1 && n < 10 ) callfun5(); . . . and so on if(n > minlimit && n < maxlimit ) callfunX(); Is there any easy way to avoid if else chain to do similar work. Or is there any way to change the limits in if condition at some central place something using #define. Please provide your inputs/help to help me finding other ways to optimize programming. Thank Vikas
vicky
You can use either ShellExecute() or CreateProcess(). Advantage of CreateProcess() function is your program can wait till another application you have launched is not finished/terminated. Thanks Vikas
vicky
Hello, Problem is - User can input any number, program need to take decision based on inputs. Let suppose input is stored in variable n; based on value of n some function will be called. program logic can be - if(n > 1 && n < 10 ) callfun1(); if(n > 11 && n < 20 ) callfun2(); if(n > 25 && n < 30 ) callfun3(); if(n > 33 && n < 38 ) callfun4(); if(n > 1 && n < 10 ) callfun5(); . . . and so on if(n > minlimit && n < maxlimit ) callfunX(); Is there any easy way to avoid if else chain to do similar work. Or is there any way to change the limits in if condition at some central place something using #define. Please provide your inputs/help to help me finding other ways to optimize programming. Thank Vikas
vicky
Hello, I have created one ICON listctrl. Using API SetBkImage(hImg); I have set one bt map image as backround of the listcontrol. But the problem is when i am scrolling the list the image is also geting scrolled. Because the image is uneveo user can notice the image is being scrolled and it seems images are added in to background on after another. Simply i want to make the background image stable it should not move with list items when i am scrolling the list. Please help me!! Thank Vikas
vicky
Hello, I have been trying to get currently running user application same as task manager in which first tab "Application" shows all currently running user applications. I have used EnumWindows() API to find current open windows so i thought i could be able to find all the application running. But problem with EnumWindows() is it gets all windows such as task bar, any services running as well as user application windows such as my computer or outlook. Finally problem is i want to find all windows explorer windows opened by user. EnumWindows() can get exe path of the window as well as title of the window. But for any explorer window exe name is always C:\Windows\explorer.exe and it is same for any explorer window whether it is opened by user or by operating system as a service. So how to find whether the window that is opened is a explorer window that is opened by user. How to differentiate between explorer windows opened by user or windows service windows whereas the exe path is same C:\Windows\explorer.exe. I need urgent help in problem. :doh: If any body have any clue please share. Any body has clu
vicky