![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
|
Hi all. I have this code in my program:
SHFILEOPSTRUCT fop;
// initialize all data required for the copy
fop.hwnd = NULL;
fop.wFunc = FO_DELETE;
fop.pFrom = "Documents and Settings\\All users\\Application Data\\Viewpoint\0";
// fop.pTo = "A:\\";
fop.fFlags = FOF_ALLOWUNDO;
// remaining entries are output variables, no need to initialize
SHFileOperation(&fop);However, when I try to put the same code in a different part of my source, and changing "fop" to "gop" (good old GOP :p ) and setting: gop.pFrom = "Program Files\\Viewpoint\\Viewpoint Media Player\0Program Files\\Viewpoint\\Viewpoint Experience Technology\0"; Windows says it can't find the file! What am I missing here? (This is all assuming that you put the .exe in your hard drive that Viewpoint is installed in) Thanks.
__________________
The world's first athletic computer geek! The home of PrProgramsStudios How not to post a question: <-- Please don't reply |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Mar 2006
Posts: 40
Rep Power: 0
![]() |
Do you have gop every where you originally had fop and is gop pointing to a valid / existing path?
|
|
|
|
|
|
#3 |
|
Professional Programmer
|
No, I have fop in one area and gop in another.
__________________
The world's first athletic computer geek! The home of PrProgramsStudios How not to post a question: <-- Please don't reply |
|
|
|
|
|
#4 | ||
|
Expert Programmer
Join Date: Jun 2005
Posts: 884
Rep Power: 4
![]() |
There are a couple of things I can think of, don't know if they are the problem though:
1. The help says Quote:
2. From the help again: Quote:
|
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|