|
Just give him the code, and let him have a try. That way we won't have to deal with him as he waits for the program to finish...
And if he would pull it off (and end up with the number 42 - of course), you'd get the credit for providing the source code. It's a win/win situation.
Last modified: 29mins after originally posted --
|
|
|
|
|
Jörgen Sigvardsson wrote: And if he would pull it off (and end up with the number 47 - of course)..
Haven't more numbers been discovered since then?
"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
|
|
|
|
|
This book[^] will answer all your questions about the number 47, and accidentally, it will also answer the question about everything.
|
|
|
|
|
|
|
Well, that means that they have actually discovered five new numbers so the answer to David's question would be 'yes'.....right?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
you need to learn: VB and write code, and also know what to ask
Greetings from Germany
|
|
|
|
|
I have 2 controls,List box and Ok button in a dialog based application.When i try to select the item in list box and press enter ,the dialog goes to default OK button and closes the dialog.
My actual working should be, when i press enter on the item in the list box a message box should appear.
Can anyone help me out from this!!!
|
|
|
|
|
|
|
my requirement is that i have to set static ip address in command line and the netsh command i have to call from my c++ program.van any body suggest how to accomplish this?
|
|
|
|
|
an89 wrote: parsing result from command line arguments in c++
See Here[^].
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
its not goin to help.if anybody can provide some sample code,then that would be helpfull.My requirement is that what ever i get at commandline,i should be able to get it back in my code
|
|
|
|
|
an89 wrote: its not goin to help
and why isn't it going to help? Any wise guesses
You asked about reading the command line arguments and parsing them. The logic does the same
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
see,in the tutorial that u mentioned we have to give arguments at commandline,right?and in the program we are extracting those arguments.
But in my application,through my code i'll give a command,and i need the output of the command when the command executes successfully.I hope I made myself clearer this time.
|
|
|
|
|
humf.
You can use the argument to pass as a parameter to ShellExecute or CreateProcess.
how do you give the command and to whom...
an89 wrote: I hope I made myself clearer this time.
Not for me, it's still a blurr picture
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
an89 wrote: suggest how to accomplish this?
By searching for argc and argv .
"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
|
|
|
|
|
Hello,
need help to set a images in CListCtrl(CSortListCtrl here from codeproject) when is used in virtual mode,
have any one idea how to solve this??
regards
termal
|
|
|
|
|
termal wrote: CSortListCtrl here from codeproject
Better you ask in the article forum at the bottom of the article page! Anyway as a pointer take a look at LVN_GETDISPINFO and I_IMAGECALLBACK .
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Hello,
thanks for "LVN_GETDISPINFO and I_IMAGECALLBACK"!
regards
termal
|
|
|
|
|
there is an application that keep nagging me...every time it closes, it will open my internet browser...i want to make an app with visual c++ so i can stop it opening my internet browser...can i use a hook to stop it...can anyone help me please...
thx
|
|
|
|
|
Writing a hook isn't very easy. Why don't you just check every 100 milliseconds if Internet Explorer opened after this app closed and then close it.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
ya nice idea...but do you have any idea (link) or something wherei can learn about hook in windows...??
|
|
|
|
|
why do you insist on doing it the hard way? polling every 100 ms IMO won't be any slower from your point of view.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|