Recent Win32UIShell.cpp changes
Recent Win32UIShell.cpp changes
| Fraggle |
Feb 18 2008, 01:32 AM
Post
#1
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 518 Joined: 6-December 04 Member No.: 112 |
This file's been throwing me since it was altered last week. Couple of problems I think I've found:
1) The calls to SHEmptyRecycleBin are leaving me a bit confused. MSDN claims that the function is valid as far back as Win95 with IE4. However, my version of shellapi.h has it ifdeffed for NTDDI_VERSION >= NTDDI_WIN2K. I'm not sure what MS is playing at here, or if you know something I don't. 2) VC2005 is complaining about line 454 ext.insert( 0, '.' ); saying it can't convert from char to String. The relevant String declarations for insert are UnicodeString& insert(size_type p0, const AnsiChar *s); UnicodeString& insert(size_type p0, size_type n, AnsiChar c); so I guess the choice is ext.insert( 0, "."); or ext.insert( 0, 1, '.'); // at least I think it would be 1 Is the second form quicker as it doesn't need to worry about null-termination? -------------------- |
![]() ![]() ![]() |
| ddiego |
Feb 18 2008, 04:18 PM
Post
#2
|
|
VCF Lead Developer ![]() ![]() ![]() Group: Lead Developer Posts: 2834 Joined: 2-August 03 Member No.: 2 |
I would go for your first choice, just cause it "looks" better, but that's just me.
|
Fraggle Recent Win32UIShell.cpp changes Feb 18 2008, 01:32 AM
ddiego
This is using VS 2005? I am not aware of anythin... Feb 18 2008, 04:20 PM
Fraggle Yeah - using VS2005, and it does throw an error. ... Feb 18 2008, 05:37 PM![]() ![]() ![]() |
| Lo-fi Version | : 18th May 2013 - 06:32 PM |