![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The dsofile.dll version 2.0 provided by Microsoft throws an "access denied" error whenever all of the Summary Properties are empty "null" and you attempt to assign a bstr value to any of them in code. Using the source code provided in KB224351 I've been able to trace this to the fact that the Summary Propereties Set is added whenever one or more of the properties is set in the Windows XP OS and the property set is REMOVED when the last of any of the summary properties is removed!!!! Note: The code does allow each of these properties to be added as a bstr for COM compatibility but the code to automatically add the Summary Property Set appears to be incorrectly examining the pointer by testing it directly for a NULL... Unfortunately I don't have the Win32 experties to correct this in the code provided. Can anyone help????? Thanks, mike :>} |
#3
| |||
| |||
|
|
CDsoSummaryProperties::GetPropertyFromList to simply pass NULL as the last parameter for InitProperty if no previous item exists. |
#4
| |||
| |||
|
|
CDsoSummaryProperties::GetPropertyFromList to simply pass NULL as the last parameter for InitProperty if no previous item exists. |
#5
| |||
| |||
|
|
Gorgoroth wrote: CDsoSummaryProperties::GetPropertyFromList to simply pass NULL as the last parameter for InitProperty if no previous item exists. Whoops...also remember to change this line: if ((pitem == NULL) && (fAppendNew)) to take out the (pLast == NULL) check... |
#6
| |||
| |||
|
|
Can you send me a copy of this new dll because I don't know how to fix the problem? Ken schrieb: Gorgoroth wrote: CDsoSummaryProperties::GetPropertyFromList to simply pass NULL as the last parameter for InitProperty if no previous item exists. Whoops...also remember to change this line: if ((pitem == NULL) && (fAppendNew)) to take out the (pLast == NULL) check... |
#7
| |||
| |||
|
|
Or maybe you can send me a copy of the project so that I can see my errors and learn from them. Thanks a lot. carsten.luen... (AT) googlemail (DOT) com schrieb: Can you send me a copy of this new dll because I don't know how to fix the problem? Ken schrieb: Gorgoroth wrote: CDsoSummaryProperties::GetPropertyFromList to simply pass NULL as the last parameter for InitProperty if no previous item exists. Whoops...also remember to change this line: if ((pitem == NULL) && (fAppendNew)) to take out the (pLast == NULL) check...- Hide quoted text -- Show quoted text - |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |