Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOnly for Apurva!! Pin
hiral_shah14-Sep-06 2:58
hiral_shah14-Sep-06 2:58 
GeneralRe: Only for Apurva!! Pin
_AK_14-Sep-06 6:49
_AK_14-Sep-06 6:49 
GeneralRe: c++ compiler (64 bit) Pin
Anna-Jayne Metcalfe14-Sep-06 2:09
Anna-Jayne Metcalfe14-Sep-06 2:09 
GeneralRe: c++ compiler (64 bit) Pin
Colin Angus Mackay14-Sep-06 2:35
Colin Angus Mackay14-Sep-06 2:35 
Questioncompilation errors when including both winsock.h && Ws2tcpip.h in my .cpp file. Pin
VCSharp00713-Sep-06 23:05
VCSharp00713-Sep-06 23:05 
AnswerRe: compilation errors when including both winsock.h && Ws2tcpip.h in my .cpp file. Pin
Nibu babu thomas13-Sep-06 23:30
Nibu babu thomas13-Sep-06 23:30 
GeneralRe: compilation errors when including both winsock.h && Ws2tcpip.h in my .cpp file. Pin
VCSharp00713-Sep-06 23:46
VCSharp00713-Sep-06 23:46 
QuestionUse [ShellExecute] to open a file in COM dll shell extension, CAN'T delete file after close it Pin
rockryan13-Sep-06 23:03
rockryan13-Sep-06 23:03 
Hi, Experts,

I'm implementing a shell extension COM dll, to create a Encrypt folder, user can put some file into this folder and excute them.

when user put their file in my folder, I'll encrypt those file, and when user double click the file,
I can hook the open action because I'm in a shell extension, I'll decrypt file to a temp file, then use shell extension to open the decrypt temp file.

Follow is my code, I use a hidden window to perform shellexcute:

HWND hHiddenWnd = CreateWindow(_T("EDIT"), _T(""), 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL);
ShellExecute(hHiddenWnd,L"open",wszNewModifiedFilePath,0,0, SW_SHOWNORMAL);
DestroyWindow(hHiddenWnd);

But after user close the file, when user try to delete the file, it will occur this file is "lock by another process" message.

And when I close the explorer, then open explorer again to open my shell extension folder, the the file won't lock.

I think it maybe because, I use shellexcute in shell extension COM dll, and it load by explorer process.
so explorer lock the file.

Please tell me how to solve this problem, Thanks!!
QuestionPrinting a richt text file in console Pin
MarcoNedwig13-Sep-06 22:43
MarcoNedwig13-Sep-06 22:43 
QuestionCOPY CONSTRUCTORS and VIRTUAL DESTRUCTORS Pin
Subramaniam s.V.13-Sep-06 22:38
Subramaniam s.V.13-Sep-06 22:38 
AnswerRe: COPY CONSTRUCTORS and VIRTUAL DESTRUCTORS Pin
Nyarlatotep13-Sep-06 22:53
Nyarlatotep13-Sep-06 22:53 
AnswerRe: COPY CONSTRUCTORS and VIRTUAL DESTRUCTORS Pin
toxcct13-Sep-06 22:56
toxcct13-Sep-06 22:56 
AnswerRe: COPY CONSTRUCTORS and VIRTUAL DESTRUCTORS Pin
_AnsHUMAN_ 13-Sep-06 22:57
_AnsHUMAN_ 13-Sep-06 22:57 
AnswerRe: COPY CONSTRUCTORS and VIRTUAL DESTRUCTORS Pin
Hamid_RT15-Sep-06 7:09
Hamid_RT15-Sep-06 7:09 
QuestionHow to close a pop-up menu Pin
seanru13-Sep-06 22:36
seanru13-Sep-06 22:36 
AnswerRe: How to close a pop-up menu Pin
Nibu babu thomas14-Sep-06 0:27
Nibu babu thomas14-Sep-06 0:27 
AnswerRe: How to close a pop-up menu Pin
Iain Clarke, Warrior Programmer14-Sep-06 5:20
Iain Clarke, Warrior Programmer14-Sep-06 5:20 
GeneralRe: How to close a pop-up menu Pin
seanru25-Sep-06 23:01
seanru25-Sep-06 23:01 
GeneralRe: How to close a pop-up menu Pin
Iain Clarke, Warrior Programmer26-Sep-06 6:10
Iain Clarke, Warrior Programmer26-Sep-06 6:10 
QuestionException Handling Pin
Nyarlatotep13-Sep-06 22:34
Nyarlatotep13-Sep-06 22:34 
AnswerRe: Exception Handling Pin
Naveen13-Sep-06 23:03
Naveen13-Sep-06 23:03 
QuestionHow to screen the Esc-key-pressed event for a print preview view Pin
min_2_max13-Sep-06 22:12
min_2_max13-Sep-06 22:12 
Questionrich edit control query Pin
harsha_123413-Sep-06 21:39
harsha_123413-Sep-06 21:39 
AnswerRe: rich edit control query Pin
_AnsHUMAN_ 13-Sep-06 22:09
_AnsHUMAN_ 13-Sep-06 22:09 
GeneralRe: rich edit control query Pin
harsha_123413-Sep-06 22:19
harsha_123413-Sep-06 22:19 

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.