|
Thanks CPallini,
What pitfall do you think?
regards,
George
|
|
|
|
|
The article explained well all the issues.
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
|
|
|
|
|
Hi CPallini,
Which article? You missed the link in your post?
regards,
George
|
|
|
|
|
I need to provide http download resume support in my application. Similar to resume support present in most of download mangers.
Kindly point me to some example code or how should I go about this problem.
http://Faq.Programmerworld.net
(FAQ and Tips for programmers)
|
|
|
|
|
Of course resume depends to that web site that support of it or no.
|
|
|
|
|
That is not a problem as most of Download manger works for most but some site. That is acceptable. But how can I support download resume in VC++ for the sites which provide resume support.
http://Faq.Programmerworld.net
(FAQ and Tips for programmers)
|
|
|
|
|
Sudhir Mangla wrote: Kindly point me to some example code or how should I go about this problem.
See here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all,
i am writing a dll on VC6.0 which internally executes a command over command prompt using system() API. while executing the command, command prompt is being displayed on the screen.i don want this command prompt to be displayed on the screen.Is there any method which supress the command prompt from being displayed on the screen,or is there any other API which does as system() API without displaying commandprompt..?
Thanks in advance
kathir
|
|
|
|
|
Look up the ShellExecute() function.
|
|
|
|
|
Member 3869682 wrote: ...executes a command over command prompt using system() API.
What command are you executing?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi david,
i m going to execute a "exe" file along with the parameters to be passed to the application. It would be better if i identify a routine which can perform this command line execution and also works on unix and windows as well.
Regards
kathir
|
|
|
|
|
Woundering what books anyone would recomend for learning c++ such as winsock and other protocols for
conecting to servers and clients the books ive read only go thro program control thanks for any suggestions.
|
|
|
|
|
for c++ you should get Stroustrup & everything by Scott Myers & an STL book
Winsock its not a protocol its a library and there are plenty of sources of info on the web
For most protocols the doco will be language neutral. There is heaps and heaps of really good stuff on this site for windows socket programming and many many other thigns
|
|
|
|
|
For C++ I think www.cplusplus.com is good for you and for protocols I have this book and its good (Teach YourSelf MCSES TCP/IP in 14 days).
|
|
|
|
|
I have a device context handle HDC some thing drawing on it .
can i same the image that is drawing on device context using HDC handle only
Trioum
|
|
|
|
|
Do you want to show image with other draws?
|
|
|
|
|
Are you asking...
"I have an HDC that some other part of my program (eg a library) is drawing on.
With just that HDC information, can I save the picture?"
?
I can see a few barriers to saying Yes.
1/ I can't find any function called GetHDCSize (or equivalent), so you would have to select in a new BITMAP, and examine the old BITMAP for information, then select it back. But you have to do this in the same thread as the Thing that is drawing to the HDC.
2/ HDC's are normally temporary objects, given to a program from a central pool. How you got this HDC is important. If you simply stored a HDC returned from BeginPaint, then the HDC will be recycled by EndPaint, and it will no longer be valid. If you get GetDC (hWnd) yourself, then you will be working on a different HDC to the Thing you talked about earlier.
3/ I'm now running out of ideas, as any more answers depend on details you haven't told us (yet).
Good luck,
Iain.
Iain Clarke appearing by Special Request of CPallini.
|
|
|
|
|
May be this screencapture[^] + use of CImage Class is useful
if
trioum wrote: can i save the image that is drawing on device context using HDC handle only
|
|
|
|
|
I changed a collection from a vector to a map
ie
std::vector<mytype>
is now
std::map<std::string, mytype>
now my question is how do I modify the following so that it will still work?
std::copy(collection.begin(), collection.end(), std::ostream_iterator<mytype>(anOStream));
Obviously I need to some how pass the pair::second to the third param but I dont know how. I realise I could just make it a loop but Im interested to know the answer
Thanks
Josh
modified on Tuesday, February 05, 2008 11:08:16 PM
|
|
|
|
|
Is it possible to have a child window with a title bar, and have the title bar active (i.e. highlighted just as a normal active window's title bar is)? I have tried to do this, even forcing focus for the child window, but the parent window remains the one whose title bar is highlighted. I realize that I could make an MDI application in which the childs of the MDI child window can have active title bars, but my application is not an MDI app.
Basically, I wish to have several windows constrained within one parent window. I have everything in place with the exception that the title bars of these child windows will not highlight. Any help is appreciated.
|
|
|
|
|
What window styles are you using when you create the child?
What happens if you include the WS_OVERLAPPED style?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
here's a piece of code
HWND hWndChild;
hWndChild = CreateWindowEx(0, _T("EDIT"), _T("Test Window"),
WS_CHILDWINDOW | WS_CAPTION | WS_MAXIMIZE,
0, 100, 340, 220, hWnd, NULL, hInst, NULL);
ShowWindow(hWndChild, SW_SHOWDEFAULT);
Please click here to show sample parent/child window.
|
|
|
|
|
I have a program that allows the user to input variables into a program, perform some math on the variables, and then spit out the answer. However, if the user enters a string, rather than a number, the program skips the rest of the input sequence and goes straight to the math. I'm trying to avoid this using a try...catch statement. However, I cannot run any code to check the error, because as soon as the user presses enter, the rest of the input code is skipped, without allowing me to run any code to test it. Is there any way around this whithout simply telling the user to be careful and only enter numbers?
|
|
|
|
|
Klazen wrote: Is there any way around this
Several options come to mind.
1) Re-read the material provided for your course
2) Ask your instructor for some guidance
3) Network with other students in your class
4) Drop the course and change your Major
led mike
|
|
|
|
|
Thanks for the sarcasm, but it's not an assignment. I'm simply trying to learn more about C++.
Also, just FYI, I'm still in high school. Haven't even chosen a major.
|
|
|
|