Search:
Type: Posts; User: Hacker2
Search:
Search took 0.04 seconds.
-
February 12th, 2006, 09:11 AM
When I started writing for win32, I wondered: should I stay with just win32api, or just I use Microsoft Foundation Classes?
I went with MFC, and it was a good idea.
Much complexity in building a...
-
February 9th, 2006, 01:03 AM
/*
To get the disk type is pretty tricky.
There are different methods for NT and win9x
and there are several different functions to call.
But here is the complete example.
in your code, put...
-
September 10th, 2005, 10:34 AM
No you do not need to use a resource.
It is just easier to do it that way.
For example, Visual Studio has a resource editor
which makes building menus very simple.
But if you want to do it by...
-
September 9th, 2005, 10:30 PM
Hello All,
if I have a drive\path\filename.ext,
I know how to do drag & drop by getting the itemidlist of the file
LPSHELLFOLDER pFolder;
::SHGetDesktopFolder(&pFolder);
//widepath is the...
-
September 5th, 2005, 11:35 PM
I am sorry to say, but it is hard to understand your English.
Usually, a childwindow is behind the toolbar,
and the childwindow is behind the menu too.
This is because the toolbar is created...
-
September 5th, 2005, 11:29 PM
programmers often acquire flat spots
from slapping themselves on the forehead
when they spot a bug :)
-
September 5th, 2005, 05:39 PM
First off, that thing in the center of the scroll bar that you grab
with the mouse is called the "Thumb".
This is important to know, because there is an SB_THUMBTRACK
parameter that is used...
-
September 5th, 2005, 05:14 PM
Hello Mrafcho001
BitBlt is the function you use to transfer the image
from the memory dc to the screen dc.
This article will explain memory dc's for you...
-
September 5th, 2005, 09:47 AM
In theory, printing is simple, and is just like drawing on the screen:
1) You receive a device context for printing.
2) You figure out the dimensions of that context, and draw in it.
But in...
-
September 5th, 2005, 09:29 AM
What you get depends on how you get it.
GetClipboardData(CF_TEXT)
returns ascii text only. No fonts, no colors.
Other text attributes of text could be pasted,
ony if those attributes were...
-
September 4th, 2005, 10:31 PM
You need to provide much more information.
BYTE Buf (512 Bytes)
is not a valid c++ line
and on the same topic, neither is
LPBYTE BUF1 (10MB)
what exactly are your declarations?
-
September 4th, 2005, 10:29 PM
I think you need to say
#include <AfxWin.h>
instead of just
include <AfxWin.h>
-
September 3rd, 2005, 09:33 PM
One of the difficult things with compilers,
is that sometimes the error message have nothing
whatsoever to do with the actual problem.
The problem is in
char boardX[queens][queens];
when...
-
September 3rd, 2005, 12:24 PM
Please give us the email address of your teacher.
We will send the answer there.
-Or-
You could figure out how to do the work yourself,
which is the purpose of taking the course.
Suppose...
-
August 31st, 2005, 07:43 AM
Codeguru does not exist to do your homework for you.
You must learn to do your homework yourself.
You need to learn to program on your own.
One of the most basic things a programmer does,
is...
-
August 31st, 2005, 07:39 AM
"Hey my program doesn't work, what's wrong?"
is impossible to answer.
We need much much more information.
Please attach zip file of your program.
Do NOT include .ncb files
Do NOT include .obj...
-
August 31st, 2005, 07:35 AM
I think LbtnDn and LbtnUp is the only way.
But there is a problem with lbtnDn:
1) Click the button control
2) Keep the mouse button held down.
3) Move the mouse cursor away from the button...
-
August 31st, 2005, 07:18 AM
There are many things to learn as a programmer.
One of the most basic is,
to take a flowchart and turn it into code.
If you do not know how to do this,
then you must learn how, on your own,...
-
August 28th, 2005, 08:13 PM
jmcilhinney is right. I put up an example oft C code.
I didn't notice the VBNet topic heading : 0
-
August 28th, 2005, 09:41 AM
CStringArray FileNameArray;
HANDLE hFileFind=NULL; //handle of file found by FindFile function
WIN32_FIND_DATA FileFindData;
int ReturnCode;
hFileFind=FindFirstFile("C:\\MyDirectory\\*.*,...
-
August 27th, 2005, 05:08 AM
There was an error in my code for getting the text.
You need to close the clipboard before exiting.
So the correct code is
int ReturnCode;
ReturnCode = IsClipboardFormatAvailable(CF_TEXT);...
-
August 26th, 2005, 07:50 AM
Hello pskumaran
The tree control only selects an item when you left-click it.
if you want to select an item by right-click, you must add this yourself.
In MFC, it is like this:
in .h file
...
-
August 26th, 2005, 07:24 AM
You could remove the trailing zeros manually:
char temp[100];
sprintf(temp, "%f",matrizo[i][j]);
int k = strlen(temp);
if(k > 0) k--; //avoid zero-length string problems
-
August 25th, 2005, 06:29 PM
The first answer is easy:
1) Declare parentclass last
2) Before declaring childclass, tell it that there is a parentclass
class parentclass;
class childclass
-
August 25th, 2005, 06:21 PM
Hello Destination,
I know you are frustrated and did not find mcilhinney's first answer useful,
but once, when I answered a question and the guy responded like that,
I did not give him further...
|
Click Here to Expand Forum to Full Width
|