Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionError while trying to implement KeyLogger Pin
avika3-Mar-10 1:30
avika3-Mar-10 1:30 
AnswerMessage Removed Pin
3-Mar-10 2:15
Hristo-Bojilov3-Mar-10 2:15 
GeneralRe: Error while trying to implement KeyLogger Pin
CPallini3-Mar-10 2:21
mveCPallini3-Mar-10 2:21 
AnswerRe: Error while trying to implement KeyLogger Pin
KingsGambit3-Mar-10 7:31
KingsGambit3-Mar-10 7:31 
QuestionError in calling EXE in custom action (Setup & deployment project) Pin
am 20093-Mar-10 1:17
am 20093-Mar-10 1:17 
AnswerRe: Error in calling EXE in custom action (Setup & deployment project) Pin
KarstenK3-Mar-10 1:33
mveKarstenK3-Mar-10 1:33 
AnswerRe: Error in calling EXE in custom action (Setup & deployment project) Pin
KingsGambit3-Mar-10 7:34
KingsGambit3-Mar-10 7:34 
QuestionProblem Converting CString to WCHAR Pin
TheFox3-Mar-10 0:16
TheFox3-Mar-10 0:16 
I am using Visual C++ V6 and am trying to change the comments property of a file.
I am using the code below but get an error message 0X80030002 - which by using 'Error Lookup' is %1 could not be found.
Can someone explain what I am doing wrong?

I am trying to change the properties of a .txt file

CString text_filename;

text_filename = "c:\\text.txt";

const WCHAR *c = (const WCHAR *)(LPCTSTR)text_filename;

IPropertySetStorage *pPropSetStg = NULL;
IPropertyStorage *pPropStg = NULL;
PROPSPEC propspec;
PROPVARIANT propWrite;
PROPVARIANT propRead;
HRESULT hr = S_OK;


hr = StgOpenStorageEx( c,
STGM_DIRECT|STGM_SHARE_EXCLUSIVE|STGM_READWRITE,
STGFMT_ANY,
// STGFMT_STORAGE //Structured Storage property sets
// STGFMT_FILE //NTFS file system property sets
0,
NULL,
NULL,
IID_IPropertySetStorage,
reinterpret_cast<void**>(&pPropSetStg) );
AnswerRe: Problem Converting CString to WCHAR Pin
Rajesh R Subramanian3-Mar-10 0:28
professionalRajesh R Subramanian3-Mar-10 0:28 
AnswerRe: Problem Converting CString to WCHAR Pin
CPallini3-Mar-10 0:31
mveCPallini3-Mar-10 0:31 
GeneralRe: Problem Converting CString to WCHAR Pin
TheFox3-Mar-10 2:32
TheFox3-Mar-10 2:32 
GeneralRe: Problem Converting CString to WCHAR Pin
CPallini3-Mar-10 3:27
mveCPallini3-Mar-10 3:27 
AnswerRe: Problem Converting CString to WCHAR Pin
KarstenK3-Mar-10 1:26
mveKarstenK3-Mar-10 1:26 
GeneralRe: Problem Converting CString to WCHAR Pin
TheFox3-Mar-10 1:37
TheFox3-Mar-10 1:37 
GeneralRe: Problem Converting CString to WCHAR Pin
KarstenK3-Mar-10 1:46
mveKarstenK3-Mar-10 1:46 
GeneralRe: Problem Converting CString to WCHAR Pin
KingsGambit3-Mar-10 7:16
KingsGambit3-Mar-10 7:16 
GeneralRe: Problem Converting CString to WCHAR Pin
CPallini3-Mar-10 1:38
mveCPallini3-Mar-10 1:38 
GeneralRe: Problem Converting CString to WCHAR Pin
KarstenK3-Mar-10 2:04
mveKarstenK3-Mar-10 2:04 
GeneralRe: Problem Converting CString to WCHAR Pin
CPallini3-Mar-10 2:17
mveCPallini3-Mar-10 2:17 
GeneralRe: Problem Converting CString to WCHAR Pin
KarstenK3-Mar-10 2:37
mveKarstenK3-Mar-10 2:37 
GeneralRe: Problem Converting CString to WCHAR Pin
CPallini3-Mar-10 2:49
mveCPallini3-Mar-10 2:49 
AnswerRe: Problem Converting CString to WCHAR Pin
Eugen Podsypalnikov3-Mar-10 1:28
Eugen Podsypalnikov3-Mar-10 1:28 
AnswerRe: Problem Converting CString to WCHAR Pin
TheFox3-Mar-10 2:33
TheFox3-Mar-10 2:33 
QuestionCPU Usage Pin
john56322-Mar-10 23:18
john56322-Mar-10 23:18 
AnswerRe: CPU Usage Pin
Stephen Hewitt2-Mar-10 23:27
Stephen Hewitt2-Mar-10 23:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.