|
|
Hey guys, I'm writing a small in house tool with VS2005. I've been messing around with different examples, and I'm about at the point of pulling what's left of my hair out and jumping out of a window.
This may sound incredibly stupid, but I cannot add a scroll bar, neither vertical nor horizontal, to my application.
Secondly, I can't figure out how to resize the applications window to the size of the image being opened.
Project created with MFC wizard, single document, and working inside of the ChildView generated class.
I win because I have the most fun in life...
|
|
|
|
|
Use a CScrollView derived view class, all the scroll bar handling stuff is then already done for you.
Secondly, take a look at the AdjustWindowRect[Ex] API.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
ppl need help
I create a process and I want to monitor what processes get access to my process, and in some cases deny the access.
How to realize this thing?
|
|
|
|
|
Gembrid wrote: want to monitor what processes get access to my process, and in some cases deny the access.
what type of access????
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
what types of access there are??
I need any access...
|
|
|
|
|
Gembrid wrote:
what types of access there are??
I need any access...
what access dude????
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Gembrid wrote: what types of access there are??
That is the question What type of access are you talking about? The OS prevents access of
processes from other processes.
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
|
|
|
|
|
Hi
i hav lots of c and c++ programming on TurboC++ 3.0
Now i wanna migrate to VC++ 6.0
being a beginner in win32 env. can anybody point me to some urls or give me some tips as how to start, which part to do first, etc. as there are lots of projects in its dialog box. Im confused wat to do first and where to search
Spread wat u Know!
|
|
|
|
|
this is not a real answer to your expectations, but why starting with Visual C++ 6 ? the compiler is pretty old, and really far now from the C++ standard. If you can aquire i'd suggest to work with Visual Studio 2005, or at least 2003.
another question comes in mind. why do you really need to migrate that legacy code, even from Turbo C++, if it does work already ? It sounds like a waste of time to migrate all the GUI specificities from one dev environment to the other
|
|
|
|
|
Cmania wrote: being a beginner in win32 env. can anybody point me to some urls or give me some tips as how to start, which part to do first, etc. as there are lots of projects in its dialog box. Im confused wat to do first and where to search
try http://codeproject.com/cpp[^] there are lot of resource for beginner
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Cmania wrote: being a beginner in win32 env. can anybody point me to some urls or give me some tips as how to start,
Grab one of Petzold's or Schildt's books. They're great for starting Windows development.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
While Petzold's books are supposed to be good, Schildt's books are not very highly regarded in the C and C++ community. For example, when looking at the book reviews at accu.org[^] (the Association of C and C++ Users), most of Schildt's books are rated as "Not Recommended".
--
Marcus Kwok
|
|
|
|
|
Those are opinions, nothing more, nothing less. If a "not recommended" book actually helps someone, does that make it a good book or a bad book? It all boils down to what you need vs. what the book offers. Those reviewers you referenced might have been looking for "A" but the book(s) offered "B", thus they are "not recommended."
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
True, these are just the opinions of the reviewers, though often the reviewers are themselves experts in the field and thus are able to point out flaws that less-experienced people might not be able to notice. For example, when a new math paper/theory comes out, it must be peer-reviewed by other experts in the field, and not by random people who just happen to have a casual interest in math.
However, in Schildt's case, it has been documented[1,2] that there are many factually inaccurate and sometimes blatantly wrong statements in his books, and much of the code he presents teaches bad style or dangerous practices. If someone is trying to learn, then he most likely will not be able to distinguish good practice and bad practice, and thus is likely to learn bad habits, which might never be corrected.
So, take the reviews with a grain of salt. If someone is able to gain useful knowledge from a "bad" book, then that's great. However, if a person reads this book and then believes what he is doing is correct when there are much better, safer ways to do the same, wouldn't you like to know about it, and help people to avoid that mistake?
--
Marcus Kwok
|
|
|
|
|
Fair enough. I only read one of his books (dated 198x). I can't remember the exact title, but it was an awesome book filled with all sorts of neat stuff. Sparked my interest greatly.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Cool. While I'm sure that not all of his stuff is bad (and one of the reviewers that rated his book as "not recommended" even commented that Schildt's writing style was very good), the issues that I have pointed out above have made me wary of his books. But, this is my personal opinion. You know what they say about opinions... they're a lot like a**-holes: everyone has one, and they all stink
--
Marcus Kwok
|
|
|
|
|
Ivor Horton would probably be the best book coming from Turbo C++ 3.0 since his "Beginning Visual C++ 6.0" book covers the language and command line programming in part 1, and Windows programming using MFC in the second half.
It's still in print (or at least it was last I checked 4 weeks ago)
For Win32, Petzold would be a good place to start your migration.
|
|
|
|
|
Please suggest me how to draw curves with smooth edges. I tried Arc, ArcTo, AngleArc etc. They draw curves with jiggs.
Regards
The Best Religion is Science.
Once you understand it, you will know God.
|
|
|
|
|
What you are looking for is to Antialias the drawing. There are some articles on CodeProject about that.
|
|
|
|
|
GDI+ does wonders with antialiased drawing and it mixes well with existing MFC view based or just plain GDI code.
It's a bit slow(er) and has a different "feel" than MFC wrapper classes but once you get comfortable with mixing it into existing code, it eliminates the need to deal with other graphics libraries for the most common imaging and drawing operations.
Not to mention that the text output in the antialiased non-grid fit mode is so well behaved, that WYSIWYG output is possible using standard MM_ISOTROPIC mapping modes with no additional effort. You can choose to use GDI or GDI+ coordinate translation schemes depending on whether you like matrices or the traditional approach.
The .dll is already available on XP systems and there is a redistributable for earlier Windows NT/2000 based versions if you need.
|
|
|
|
|
i am working with windows xp, ndis5.1, visual c++.
i want to ask about the object identifier OID_802_11_RSSI.
i read its documentation in msdn. i test it in one of my applications. i know that it returns the signal strength . but how could i know to which ap this measured rssi belongs ?
if i have a dedicated ap that i want to measure its rssi ,can i do this using this oid ? how?
i noted that the this OID readings differs from the rssi readings of OID_802_11_BSSID_LIST. Why?
also when i test this OID in a compaq laptob with Intel(R) PRO/Wireless 3945ABG card it does not return rssi values .Why?
need help. thank you in advance.
|
|
|
|
|
I would like to "gracefully" terminate a process.
If I call TerminateProcess, the process is just yanked, and gets no notifications whatsoever, i.e. handlers in the process code attached with SetConsoleCtrlHandler() do not appear to get called. So is there a standard way to close the process (a command line process, not a GUI program), assuming I have a process handle? My gut reaction, based on searching around, is that there isn't and I'll have to dream something up (ick ).
|
|
|
|
|
what about sending it a "gentle" WM_CLOSE first ?
|
|
|
|
|
Can't, as I mentioned it's not a GUI program, thus there's no HWND to send anything to, unless SendMessage() has started to accept process handles as a substitute for HWND's!
|
|
|
|