|
So what exactly is the question?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I setup my project as a release.
When I run it through VS2010, it doesn't crash.
Standalone CRASH!
When it tries to start the Common Item Dialog!
|
|
|
|
|
Can anyone suggest some good books to learn drawing in VC++?
|
|
|
|
|
Drawing what ? drawing controls (ownerdrawn) ? simple 2D drawing (use GDI/GDI+) ? or 3D (DirectX or OpenGL) ?
Watched code never compiles.
|
|
|
|
|
Depending on what you're looking for.. I have a copy of "Starting out with Games & Graphics in C++" and it's very nice, it uses the Dark GDK wizards which you can get from www.thegamecreators.com for free.
|
|
|
|
|
Is it possible to draw in different layers? So that if you erase something in one layer whatever you have drawn on the layers beneath won't get erased.
|
|
|
|
|
no, there is no built-in layer concept in VC++ or GDI. you'll have to come up with a custom layering mechanism.
i've done it by drawing each layer into its own CBitmap/HBITMAP, then drawing the Bitmaps into a final composite bitmap for rendering to the screen.
|
|
|
|
|
hai
I want some small rectangles on one layer. Then a line has to move from one end to another(which will be like drawing line ..erasing that and drawing next line in new position).This line I want in another layer so that the rectangles are not erased. When I tried to do both rectangles and lines together the rectagles are getting erased.So if i have them in separate layers then change inone layer will not affect the other. So is it possible to have line drawing in one layer and rectangles in another ?
|
|
|
|
|
How to know from the current CWnd object if the Parent CWnd object has been sized. If so how to get its new RECT size (to do modifications to the child (this) or (current) CWnd object).
I need this code. Please help me
Tomay is Back
|
|
|
|
|
tomay3000 wrote: How to know...
The parent's code could notify the event to its children...
Have you the parent's code ?
virtual void BeHappy() = 0;
|
|
|
|
|
For example I wanna create a cool object : CoolButton & make that CoolButton
Anchored to the Parent CWnd . CoolButton must know if the parent CWnd has been changed its size, to make the CoolButton moves too
Tomay is Back
|
|
|
|
|
I'm sorry, my eyes are deaf. Can you type a bit louder please?
Iain.
I have now moved to Sweden for love (awwww).
|
|
|
|
|
Please read the post at the top of the forum "HOW TO ASK A QUESTION", if you follow its instructions you will give a more helpful answer.
Ali
|
|
|
|
|
Hi everybody,
As i said, MAPIReadNext function return 0 and a pointer to unread message on windows live mail, but after it, if i send a MAPIReadMail command i receive a 0 return code again, but the pointer to struct message is NULL.
Portion of my code:
MapiMessage* message ; // Created but not initialized
ULONG err=0; // Created and initialized
LPSTR rgchMsgID; // Created but not initialized
// return 0 and put 546 into rgchMsgID
ULONG uFindRet = lpfnMAPIFindNext(lhSession,0L,"","",MAPI_LONG_MSGID|MAPI_UNREAD_ONLY,0L,rgchMsgID);
err = lpfnMAPIReadMail(lhSession,0L,rgchMsgID,MAPI_BODY_AS_FILE,0,&message); // Return 0
if (message==NULL) // true, because message is NULL.
err = FAILMAIL; // Badly, Allways execute this line.
Can someone help me ?
I try everything i knew.
since now, thanks.
|
|
|
|
|
Hello,
In my MFC MDI application, I would like to dock a set of side panes in tabs. For the tabs, I would like a 32x32 icon and no text, similarly to the 3ds max style:
http://mods.terranova-exp.com/tutorials/3dsmax5/images/tut_image_01.jpg (the one in the upper right side of the window).
Is this achievable using the CDockingManager , or are the 16x16 icon sizes hard-coded?
I am using VS2010 RC.
Thanks in advance!
|
|
|
|
|
tell me Books on WIN32 c++??
|
|
|
|
|
http://www.charlespetzold.com/pw5/[^]
Don't know if there are better ones these days, but this one book should be on every Win32 programmer's desk.
Watched code never compiles.
|
|
|
|
|
You will need to google this, Windows Development it's on MSDN.
The book alone won't help much, but MSDN with Windows Development topic should put you in the right path.
You need to focus on which Windows version you want to target!
Windows XP / GDI
Windows Vista / Direct2D (update)
Windows 7 / Direct2D
Focus on CreateWindow function and Common Controls!
And Visual Styles...
|
|
|
|
|
Fareed Rizkalla wrote: You need to focus on which Windows version you want to target!
not really.
AFAIK, basic Win32 should work for all versions of Windows.
Fareed Rizkalla wrote: And Visual Styles...
not necessary IMO.
Watched code never compiles.
|
|
|
|
|
yea Maximilien is right.....tell me more books if anyone know...thankx Maximilien for the book
|
|
|
|
|
Visual Styles if he wants his apps to like shiny from Windows XP and later.
Windows 7
-New UI changes
-Location Services
-Direct 2D
... I believe these are more targeted towards Windows 7.
|
|
|
|
|
HI all,
Is it possible to link STL dynamically to my application? For me it is a bit confusing as template libraries are shipped as source. Hence making those in a DLL does not make sense. Please correct me if I am wrong.
The real problem here is I have a static library produced my latest compiler which uses STL. Now If my client want to use it this library with compiler of lower version, it gives STL class undefined error.
Please help.
~ Vikram S
|
|
|
|
|
vikrams wrote: Is it possible to link STL dynamically to my application? For me it is a bit confusing as template libraries are shipped as source. Hence making those in a DLL does not make sense.
Right.
vikrams wrote: The real problem here is I have a static library produced my latest compiler which uses STL. Now If my client want to use it this library with compiler of lower version, it gives STL class undefined error.
I don't get you here: using a static library (so, basically a collection of functions and/or classes in executable format) should have nothing to do with such an error...
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
[My articles]
|
|
|
|
|
so if my static library is compiled with newer version of compiler and my client uses it in its code which is compiled with older version of compiler. Things should work fine?
This problem statment utimately boils down to
1) I have one static libray say "A" build with Compiler 2.0, uses STL
2) I have another static library "B" compiled with Compiler 1.0 uses STL
If I try to make my client application with Compiler 1.0. using both the libraries(A and B), will it work?
Does linker allows me to link two libraries carrying different STL instances? Can there be ambiguities or optimization issues?
~ Vikram S
|
|
|
|
|
But...
... the template sources (the only used) must be compiled,
there is no any template LIB/DLL in the nature...
virtual void BeHappy() = 0;
|
|
|
|