|
Use the SHFileOperation() function.
|
|
|
|
|
Can you just help me in how to use it
like i have made a object of SHFILEOPSTRUCT structure and passed value in this structure.
SHFILEOPSTRUCT obj;
now when i write this piece of code
SHFileOperation(obj);
It gives error
error C2664: 'SHFileOperationW' : cannot convert parameter 1 from 'SHFILEOPSTRUCT' to 'LPSHFILEOPSTRUCTW'
|
|
|
|
|
neha.agarwal27 wrote: SHFileOperation(obj);
For Wrapper class
http://www.codeproject.com/KB/shell/cshellfileop.aspx[^]
neha.agarwal27 wrote: SHFileOperation(obj);
It gives error
try
SHFileOperation(&obj);, it missing '& '
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
neha.agarwal27 wrote: SHFileOperation(obj);
You to to pass the address of obj not the object.
SHFileOperation( & obj);
|
|
|
|
|
After..... LONG time.... i win the race he he he.. Vunic/Tox are listening
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Some times the e-mail notification system is slow.
|
|
|
|
|
I have a third party app that puts data on the clipboard in "Rich Text Format" (but not as an OLE object).
I want to paste that data into my COleDocument as an OLE object rendering RTF text. Anyone know how I do this?
I can use GetClipboardData to get a handle to the data, but then what?
I have a feeling I need to do something with COleDataObject and / or COleDataSource, but I can't figure it out (they seem to rely on the source putting an OLE object into the clipboard, which is not my situation).
Any help is much appreciated!
Cheers!
|
|
|
|
|
Sounds like you'll need to create the OLE object yourself on paste, insert it into the document and insert the data into it. Too many years since I've played with OLE Documents to give any more details I'm afraid.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
I'm currently studying C++ language.
I have the following codes in my program
int Hours;<br />
int Minutes;<br />
int Seconds;
The variable 'Hours' is used to store thr current hour.
The variable 'Minutes' is used to store the current minute.
The variable 'Seconds' is used to store the current second.
I want to set the above variables to the static computer time and will not be updated. How to do it?
Any reply will be appreciated.
|
|
|
|
|
use GetLocalTime() function to get the current time.
|
|
|
|
|
Can you teach me how to do it?
|
|
|
|
|
SYSTEMTIME stTime = {0};<br />
GetLocalTime( &stTime );<br />
int Hours = stTime.wHour;<br />
int Minutes = stTime.wMinute;<br />
int Seconds = stTime.wSecond;
|
|
|
|
|
Hi All,
I am currently interested in finding how firewall (in Windows) works. I could find information regarding packet filtering, but I am wondering how to directly blocked/denied a program (let's say IE @_@) to access to internet since I can find such functionality on existing firewall application (e.g. Windows defender firewall/ZoneAlarm). Would you help to provide some information regarding this? (Website/document/reference)
Thanks!
Yours,
Vincent
|
|
|
|
|
StarMeteor wrote: Would you help to provide some information regarding this? (Website/document/reference)
Codeproject firewalls[^]
|
|
|
|
|
Hello everyone,
Here is the related C++ Spec and my test code. I think virtual base class, no matter direct virtual base class or not, will always be constructed before non-virtual class (including non-virtual direct base class), correct?
Another question is, what means "and only for the constructor of the most derived class as described below" in related Spec statements?
Spec:
--------------------
12.6.2 Initializing bases and members [class.base.init]
5 Initialization shall proceed in the following order:
— First, and only for the constructor of the most derived class as described below, virtual base classes shall
be initialized in the order they appear on a depth-first left-to-right traversal of the directed acyclic graph
of base classes, where “left-to-right” is the order of appearance of the base class names in the derived
class base-specifier-list.
— Then, direct base classes shall be initialized in declaration order as they appear in the base-specifier-list
(regardless of the order of the mem-initializers).
— Then, nonstatic data members shall be initialized in the order they were declared in the class definition
(again regardless of the order of the mem-initializers).
— Finally, the body of the constructor is executed.
[Note: the declaration order is mandated to ensure that base and member subobjects are destroyed in the
reverse order of initialization. ]
--------------------
#include <iostream>
using namespace std;
class B1 {
public:
B1()
{
cout << "constructor B1 " << endl;
}
};
class B2 {
public:
B2()
{
cout << "constructor B2 " << endl;
}
};
class D1 : virtual public B1 {
public:
D1()
{
cout << "constructor D1 " << endl;
}
};
class D2 : public virtual B1, public B2 {
public:
D2()
{
cout << "constructor D2 " << endl;
}
};
class D3 : public D1, virtual public D2 {
public:
D3()
{
cout << "constructor D3 " << endl;
}
};
int main()
{
D3 d;
return 0;
}
thanks in advance,
George
|
|
|
|
|
Your free quesions limit has ended yesterday midnight. You need to start paying now. lol got late for my office, bug someone else till I comeback. Kid, I'm just joking. Dont take your 2.0 semi-automatic or 1.0 fully automatic guns. byebye
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
Thanks VuNic,
Your past and continue suppose are appreciated.
regards,
George
|
|
|
|
|
VuNic wrote: Dont take your 2.0 semi-automatic or 1.0 fully automatic guns. byebye
What about AK100, i have still that in possesion! and also i know your location
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
|
Thanks Hamid,
Great link!
regards,
George
|
|
|
|
|
Hi,
I want to get ALT, SHIFT and CTRL key from keyboard.
Is it possible in OnKeyDown event?
How can I do it?
Hope you can help me.
Thanks.
|
|
|
|
|
OnSysKeyDown
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
Thanks for the reply.
I think it's the same function as OnKeyDown().
Can I monitor SHIFT and CTRL with it?
|
|
|
|
|
Sorry ignore my previous reply. It's for ATL combination keys.
Clickety[^]
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
<code>
BOOL bCtrl = ::GetKeyState(VK_CONTROL);
BOOL bAlt = ::GetKeyState(VK_SHIFT);
BOOL bShift = ::GetKeyState(VK_MENU);</code>
This will help you to know the combination keydown tracking.
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|