Hi,
this is a good read:
Write Great Code, Volume 1: Understanding the Machine
Write Great Code, Volume 2: Thinking Low-Level, Writing High-Level
And also is Code Complete.
Of course Agner...
Type: Posts; User: Greenhorn__
Hi,
this is a good read:
Write Great Code, Volume 1: Understanding the Machine
Write Great Code, Volume 2: Thinking Low-Level, Writing High-Level
And also is Code Complete.
Of course Agner...
It's the only screencast I know on that topic, sorry.
But, however, English - German, it's the same ... :D
Why is my last post so badly formatted ?
EDIT:
Now the text appears normally, left...
Maybe this will help you further ...
EDIT:
And, please, don't make double posts ...
Regards
Greenhorn
Hi Sirs,
I don't exactly know if the problem is solved, but in case it isn't take a look at this template, token from CodeBlocks ...
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
...
Moin Sir,
try this, please ...
while (GetMessage (&msg, NULL, 0, 0) > 0)
{
if (IsDialogMessage (SettingsDialog, &msg))
{
TranslateMessage (&msg);
If you are a beginner in using IDE's then I recommend Code::Blocks with MinGW.
Visual Studio is a great IDE, but too giant for a beginner. And it's Microsoft specific.
I never had problems to...
You better should create a custom control and not just a Bitmap.
In the window procedure of the cunstom control you can simply handle the behaviour of a button.
...
Your arguments in TextOut are wrong ...
void CMDITest1View::OnLButtonDblClk(UINT nFlags, CPoint point)
{
CDC* dc;
char msg[] = "Hello World";
dc = GetDC(hwnd);
TextOut(dc, 0,...
In the link below are some alternative ways to do this.
Sorry, it's in german, but I think you'll understand it ... ;)
http://www.c-plusplus.de/forum/viewtopic-var-t-is-39488.html
Advantages /...
Oh no, I mean that if I install VS2008 under XP I can't compile a Screensaver when the build target is WINVER 0x0501.
To do so, I have to replace the scrnsave.lib (which is for Vista) with the...
I also use VC9 on XP. But with the SDK, that comes up with VS2008, not all libs are working.
For Example, the scrnsave.lib, so I had to replace the library from SDK 6.0a with the one from the Server...
You can link the C/C++ libraries statically !!!
http://www.kalmbach-software.de/screencasts/VC2008EE-StaticLinkCRT/
If you develop/compile your application under Vista but want it to run even on...
OK, in your case, what you want to realize, I wouldn't use Tab controls and subclass them.
You should take a look at Property Sheet controls. You can define a callback funktion for every Page ...,...
Hmm, I'm not sure what you wanna have as result, I'm a little bit confused, so help me to understand what you wanna do.
You have a main window and several dialog boxes with a Tab control in the...
Yes, master is right ..., combine a Toolbar/Rebar and the Popup menu to create an User Defiened Menubar ... ;)
Many applications do this.
Greetz
Greenhorn
Hi,
sometimes (often) the M$ samples don't work, cause there is some stuff deficiency.
And also often the code contains serious errors.
Maybe they drink too much wine or smoke bad pot, I don't...
Hi,
it is written on the webpage ... ;)
So, set your "targetver.h" to this ...
#pragma once
If you subclass a window using ComCtrl32.dll proir version 6, the default return should be a call of the origin window procedure, by using CallWindowProc (hOriginProc).
Using ComCtrl32.dll version 6...
Hmm, it seems that you followed the examples of M$ for Tab Controls.
I'm not so familiar with Dialogs, but this is what CodeBlocks gives me as Template (naturally without Tabs).
resource.rc
//...
Moin,
I might be wrong, but I think you have to handle the DialogBox in a DialogProc, isn't it ?
Greetz
Greenhorn
Thanks, you both !!! I tried it and it works fine with std::swap.
@laserlight
That's exactly what I wanna do ;)
Now I can sleep well, tonight ...
Once again: Thank you laserlight and...
The description says that it swaps from two different vectors, but not inside of one container ...
Does it although work ???
EDIT:
Ah, sorry, I'll try the std::swap function, but the exapmles...
Moin,
I can't find a funktion to swap 2 contents inside of a vector.
Isn't there an easy way to do that ?
Greetz
Greenhorn
I got it in this way ...
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
I agree with all of you, and in the end it could be that I'll use a vector instead of what I'm trying now.
But, as I said, I also want to learn how to work with dynamic arrays under use with "new"...