Search:
Type: Posts; User: Syslock
Search:
Search took 0.05 seconds.
-
December 18th, 2010, 03:16 PM
No, you must specify the encoding when using fopen with UTF strings.
fopen("newfile.txt", "rw, ccs=<encoding>");
http://msdn.microsoft.com/en-us/library/yeby3zcb(v=vs.80).aspx
Like this:...
-
December 15th, 2010, 05:38 PM
Under Windows XP, when you drag and drop an Ctreectrl item, it will create a ghost image of
the item icon and text. But, I ran the same program under Windows 7/Vista, and the item text
is missing...
-
December 15th, 2010, 10:14 AM
It's not the real source, but it's always very close. What I'm looking for is probably buried in the
base class somewhere.
Thanks, I will try to use NM_CLICK.
-
December 15th, 2010, 09:26 AM
Thanks, but does a NM_CLICK simulate an "upclick" ?
I want to place the checkmark at the upclick, not the downclick.
I searched the wine source for a reason why the OnLButtonUp handler goes...
-
December 15th, 2010, 03:54 AM
edited:
My Ctreectrl has imagelist icons that look like checkboxes, but it doesn't use the TVS_CHECKBOXES flag.
It gets checked when OnLButtonUp is called.
But, this functionality is broken when...
-
December 14th, 2010, 11:22 PM
I have an odd problem involving Ctreectrl. When I add the TVS_DISABLEDRAGDROP flag to my
Ctreectrl creation, OnLButtonUp gets called as expected. But, when I remove it,
OnLButtonUp doesn't get...
-
September 28th, 2010, 11:15 AM
You didn't say what platform or OS, so I'll just assume Windows.
If you're providing a static library, then you can do it like the Windows SDK. Export both a "Unicode" and ANSI
function, and use...
-
September 28th, 2010, 10:45 AM
Thanks, that's sounds like it might work.
I found something called "Enable Minimal Rebuild" under Configuration Properties -> C/C++ -> Code Generation -> Enable Minimal Rebuild,
but I think it...
-
September 28th, 2010, 09:56 AM
For VS 2005/2008, is there a set option/property that rebuilds the entire project every time, even if no source code
changes have been made? It would rebuild everything, even if "Build->Build...
-
June 11th, 2010, 07:38 AM
Yes, it's called MS Notepad! Open up the .vcproj file and change:
Version="9.00"
to
Version="8.00"
It should open up like a charm.
-
June 10th, 2010, 03:30 PM
Well, get rid of that other stuff you put in there, and only use this rect:
fullscreenrect = CRect( 0,0, GetSystemMetrics(SM_CXSCREEN),
...
-
June 10th, 2010, 02:30 PM
Use unsigned char if you're reading in full bytes.
-
June 10th, 2010, 02:25 PM
Replace NULL with &CWnd::wndTopMost. This will knock the taskbar out of the way.
-
A tool that can make changes to the source code wouldn't be unreasonable, as it could just set everthing to zero.
-
Thanks, I understand, but I was hoping for a way to do it programmically, as I have to go through a couple hundred source files
by myself.
-
In Visual Studio, under C/C++ -> Code Generation -> Basic Runtime Checks, it has settings to do basic
runtime checking for uninitialized variables.
...
-
Apparently, the runtime library doesn't have a case insensitive strstr function, so I had to write one myself.
I took the old one and just replaced everything with TCHARs.
Is there anything...
-
April 10th, 2010, 03:46 AM
I'm almost positive MD5 require keys that are multiples of 8, not 4.
But, might want to double-check that.
-
March 8th, 2010, 11:00 AM
Don't use strtok. It's not thread-safe. Just zero out the last character in the string.
-
March 7th, 2010, 01:31 PM
Thanks for reply.
I can avoid clipping by adding more space at the bottom, but I noticed that the default "Help" button is
not clipped when it is exactly in the same position as my button. ...
-
March 5th, 2010, 07:23 PM
I'm trying to add my own button to the OPENFILENAME dialog as a template, and it seems to work,
however, there's two small problems.
The first problem is that the button is being clipped by the...
-
March 2nd, 2010, 10:00 AM
Try putting these lines around it:
#pragma optimize( "", off )
__forceinline int Gain(int in, int mq)
{
return (in * mq) >> 9;
}
#pragma optimize( "", on )
-
February 28th, 2010, 10:04 PM
Windows registry strings are natively stored as UTF-16.
If your project is compiled as Unicode, then I would definitely follow the guidelines.
This is what I do:
DWORD cbData = (_tcslen(str)+1)...
-
January 29th, 2010, 08:30 PM
This isn't even a complete face since you only list one vertex.
Try this:
struct face {
int num_indices;
int *vertex_indices; // dynamically allocated (num_indices)
-
January 20th, 2010, 08:44 PM
You only need one. And the one you need depends on what updates your Visual Studio app is using.
#1 -> you have fresh install of VS2005. You have never updated it before, and don't care to...
|
Click Here to Expand Forum to Full Width
|