|
A look in afxpriv.h shows the define. I guess one of the service packs must have added it for MFC use.
Michael
|
|
|
|
|
You need to make sure you've got the latest version of the platform SDK installed. This has WS_EX_LAYOUTRTL defined.
As a general guide, always make sure you are using the latest platform SDK and don't rely on the include files that ship with Visual Studio.
Michael
|
|
|
|
|
Hello:
I´ve made a program that works with graphics, and it draws them fine with Windows 95, 98 and Millenium. The program detects screen resolution and windows fonts size to resize them to full screen. I used SetMapMode with MM_LOENGLISH coordinates (x with positive values and y with negatives) and it worked fine in screen as well as printed. But this week I have just installed Windows 2000 and the graphics appear in the left corner of the screen with any choosen resolution and smaller than in other Windows versions. In a first time I thought it could be a problem with the drivers of my graphics display card with win2000, but a friend of mine has the same problem.
Could it be the problem the coordinates system ? Do I need to use SetWindowExt , SetViewportExt or similars functions?
Please I need some help because I have distributed the program to many people.
Thanks a lot.
|
|
|
|
|
Anyone have any resources on bandwidth throttling or maybe some sample code?
Stephen Caldwell
Blackfission, CEO
http://blackfission.myip.org:81
Sonork ID: 100.10100
|
|
|
|
|
I have .ocx and .dll files.How can I register them in my computer?
|
|
|
|
|
use regsvr32 to register the ocx/COM dlls
put your non-COM dlls in the program directory or the system directory
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
sorry ,I don't know how to use regsvr32??(what do u mean by that?)
|
|
|
|
|
Register Server 32 is an executable in Windows. Type
regsvr32 xxx in run and say OK.
xxx - is file name with path
Ganesh Ramaswamy
|
|
|
|
|
The .h file probably had focus when you meant to compile the .cpp file.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
You can't compile header files, even if they define the entire class, VC requires you to select a .cpp file to compile just one class instead of the whole project.
Do I get a badge that says genius ?
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
i'dont know well what's your meanning?
in my opinion, that problem was caused by install problem of
msdev....maybe
could you tell me more detailly about your opinion?
i suppose that your meanning is the VC .h file can not be
compiled only without .cpp file, am i right?
p.s: thanks so much your kind reply, and then Good to see you, i'm chritian too...God bless you in all of your life
|
|
|
|
|
I'm sorry, but I'm afraid your opinion is wrong. Don't worry, it happens to me all the time
In detail, even if you create a complete class so that everything you need to compile it is in the .h file ( as you must do for templated classes, for example ), VC will inform you that it cannot compile it. Go to the .cpp file, and you can compile it fine. If there isn't one, create an empty one of the same name, and I'd guess it will compile fine. Have the .h file open, and if the compiler compiles it fine in a full build or not, it's still not going to let you compile the individual file for you. My guess is that it checks the filename and assumes it's a .h in the traditional sense of a list of headers, with no actual code to compile beyond that.
issac007 wrote:
i suppose that your meanning is the VC .h file can not be
compiled only without .cpp file, am i right
Actually, it can, you can put your whole class in a .h file, and in some instances, you must. But VC will not compile that file alone, only as part of a full build.
issac007 wrote:
p.s: thanks so much your kind reply, and then Good to see you, i'm chritian too...God bless you in all of your life
Well, thank you, as it happens I *am* a Christian, but I post under the name Christian because it's also the name my mother gave me.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Oh...Great..I Do understand your detail explanation.
++++++++++
i wanna make you my "code master or someone like that... "
you are really "Genius" ~! you can say that Again, and all
of Us too ...
++++++++++
It's very kind of you...Thank you very much~!
Good Luck
|
|
|
|
|
I have choosed the Horizontal Scroll box, but no hscroll shows
why?
thanks
one is the other who absorbs the thoughts of others
|
|
|
|
|
This is a very commonly asked question. You need to SetHorizontalExtent() when you add a string to the listbox, so as to have Windows display the horizontal scroll bar.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
what's it mean?
one is the other who absorbs the thoughts of others
|
|
|
|
|
A thread can return any value it choose as an error message, although it seems like a system-wide error number. Does this thread do any fileaccess? If so, this is probably ENOTDIR, meaning it cannot find the path specified..
/moliate
|
|
|
|
|
yes, it does, but even i exclude that snippet, this error is still here
one is the other who absorbs the thoughts of others
|
|
|
|
|
Hello, I am creating a multithreaded MFC app which needs to pass pointers to CWnd objects. Specifically, my program consists of a core executable and many modules, in the form of DLLs. The core.exe acts as an event passer between modules. One of the functions I was hoping to have was for each module to have 1 or more CPropertyPages, which can be passed to the GUI module to be displayed in a CPropertysheet. This is how a user would change settings and preferences for any of the modules. However, this causes all kinds of assertions or worse. I have recently learned that passing a CWnd* instead of the CWnd's associated window handle (m_hWnd), in a word, BAD. Does anyone have any idea how I could make this work? Thanks in advance!
(I would prefer response by email if possible! thanks!)
Ryan
ryanwt8@cs.washington.edu
|
|
|
|
|
Pass the underlying HWND [using the m_hWnd member ] and then from the thread use the Attach function.
BOOL Attach( HWND hWndNew );
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
The problem here is that CWnd's keep track of their handles in thread local storage. You would probably be better off creating multiple user interface threads instead of worker threads and creating the windows with the thread you intend to service it.
--
Where are we going? And why am I in this handbasket?
|
|
|
|
|
Help !!
I am fast approaching 30 and looking for a career change. For some unexplicable reason I feel drawn to a career in computing. In particular I have been drawn towards C++ (I hear that it is fairly easy to learn and that the money is good). I have bought a book "the complete idiots guide to c++" which I am currently reading and enjoying. However I can't help thinking that I am kidding myself. Is there any (recognised) courses that I can do (in the UK/world) which will allow me to go out and earn a living ?
Am I really getting into something which is just for kids ?
Any help (I mean any) would truly be appreciated, I want to succeed !!!
Thanks in advance,
Mike (Fenz)
Please help, I will help others in the future.
|
|
|
|
|
A couple of observations.
1/ C++ is NOT easy, in the sense that VB is easy.
2/ Starting with a dummies book is fine ( absolutely ) but you'll need to work past that to be employable.
Having said that, I had my midlife crisis at 30, after 10 years as a sales rep. I am now 32, two years into my C++ programming career ( admittedly I've been programming since 1984 ), and loving every minute of it. As a person who has suffered the same, you owe it to yourself to give this a go - I can't tell you how much of an impact it has made on my life in every way, being not just content in my job, but looking forward to it every day has made me a much happier person over all. Roll on 40, I'm ready....
fenz wrote:
Any help (I mean any) would truly be appreciated, I want to succeed !!!
If you have the hunger to succeed, then there's no reason why you shouldn't. Just work hard to teach yourself, ask lots of questions in places like this, and get your face in front of some potential employers.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
C++ may be easy to "pick up" but it's not easy to master. Some say it takes 5 years to truely master.
There are courses out there but they aren't recognised by everyone. I find that degrees and certifications are often more important in larger companies than. small ones.
Todd Smith
|
|
|
|
|
Bookmark this page. It contains a list of useful reference books for programming. While there is no substitute for actually writing code, these books are great aids in the learning process.
Best of luck,
Jon Sagara
"Ninety percent of baseball is mental, the other half is physical." -- Yogi Bera
|
|
|
|