Search:
Type: Posts; User: jflegert
Search:
Search took 0.16 seconds.
-
February 9th, 2007, 03:05 PM
I would suggest that you break the problem down into small steps and verify each step as best as possible. Since the instructor is suppling the "serial" code, the problem is probably somewhere else...
-
Yeah, but how did the "current settings" get set/interpreted as Unicode?
-
I'm not sure what you are trying to tell me. My Region option is set to US/English. I believe my default code page is 1252. All other text files open OK. When I initially save the file, there is...
-
Victor, thanks for the response.
When I create the file, the font is Courier New, and the Script is Western. When I reopen the file, the script is still Western (and I see the Asian characters)....
-
This isn't directly a C++/C question, but I would like to understand what's going on.
Do the following steps:
1) Create a blank text document (right click in Explorer, and do New->Text...
-
March 16th, 2005, 12:51 PM
Maybe CWnd::SetRedraw(...) might help?
-
December 1st, 2004, 10:02 AM
-
December 1st, 2004, 09:09 AM
Robert, thanks for the suggestion. I will probably use a variation of this, maskblt, since I want to "overlay" the source and destination.
-
December 1st, 2004, 08:02 AM
Thanks for the guess.
I tried that, along with everything else I can think of (setting the pen, the brush, in the source, in the destination, ...), which is why I am asking the question.
This...
-
November 30th, 2004, 04:18 PM
I have a monchrome bitmap, and when I bitblt it, I want the "black" pixels to become "blue" in the destination. I read the following in MSDN for the BitBlt documentation:
I see a method for...
-
November 23rd, 2004, 03:29 PM
Hello,
I have several monochrome bitmaps. I would like to "Overlay" them.
Let's say I have bitmaps B1, B2, and B3. I would like to do something like the following:
1) blt B1 to a Memory DC...
-
August 4th, 2004, 01:42 PM
I disagree. He is giving the pointer a value of 0.
Once you get into calling virtual methods (using a pointer to a base class), don't you need a non-NULL pointer?
Thanks,
John Flegert
-
hspc,
Why don't you also suggest that he change:
CStdioFile fp.Open(L"c:\\proxyinfo.txt",CFile::modeCreate | CFile::modeWrite|CFile::typeBinary);
to:
CStdioFile...
-
martho,
I'm also using VC7, I followed the same steps you did, and get the same results.
If I add a handler for PreTranslateMessage, I see mouse moves (while over buttons) in the...
-
I also tried Philip's suggestion, and it worked.
-
Hey martho,
I just tried PreTranslateMessage, and I do get WM_MOUSEMOVEs (when the mouse is over a button, static, or edit).
-
neilg,
I'm not sure if this is a recommended/correct way of doing things, but you could try using PreTranslateMessage in the dialog (I'd imagine this would work, since Tooltips works thru...
-
Since you are writing Unicode characters, your call to CFile::Write should probably look like:
fp.Write(buffer,len*2);//buffer has some text
assuming "len" is the number of Unicode caharacters in...
-
June 21st, 2004, 09:37 AM
As a side note, you may want to check your usage of GetBuffer() and Release(). From the documentation:
Good luck,
John Flegert
-
June 11th, 2004, 01:19 PM
For most compilers, I don't believe there is a performance advantage. I believe that all necessary stack space for a function is allocated when the function is entered (this isn't part of the C++...
-
April 20th, 2004, 08:01 AM
I'm curious, what does the C++ standard say. If I have the following code:
int foo(int i)
{
if (i == 1)
return 1;
else
return -1;
-
April 5th, 2004, 02:31 PM
bungoman85,
I once had a similar problem with CFileDialog and wasn't able to track down the problem. I ended up working around it (using the win32 API). For me, the problem started when I...
-
March 17th, 2004, 12:20 PM
In case anyone finds this useful, this is what I came up with (with a lot of help from Paul). It compiles (and executes as expected):
class C
{
public:
void do_it();
};
template...
-
March 17th, 2004, 12:15 PM
Paul, again, thanks for the help.
Here is what I came up with (which compiles (and runs as I expect it to)):
class C
{
public:
void do_it();
};
-
March 17th, 2004, 11:06 AM
Paul, thanks for the reply.
I can accept this. but if I can do the following:
class C
{
public:
void do_it();
|
Click Here to Expand Forum to Full Width
|