Exactly!! What is supposed to happen is I will give the details of the file as well as the directory to which it is to be downloaded to an Applet and it will do what is necessary. Can you help me with this?
Humm, it is difficult to hook on to someone else implementation of the drag drop.
This is what i did,
1.I had a service running the background which simulated my application specific clipboard.
2.Implement ICopyHook[^], The service implements this hook
3. Specify a directory name which is very unique, like C:\program files\<guidno>
4. When you want to drag drop, put this unique directory name in the clipboard and send other files that needs to be copied to the service that is running the background.
5. When the files are droped, windows will try to copy the files, now we hook that copy operation at the directory level, check that this is the unique directory, so the src data belongs to us.
6. dismiss the copy operation so that windows does not do any copying stuff, now the service has the src files, and destination direcotry.
7. Start your custom copy operation.
Complecated But i could not find any other solution, but it worked very nicely.
Actually i did not test this for drag-drop, i have tested this for copy-paste task.
firstly, why do you create two new classes xxxInfo for the search methods ?
secondly, what is the error returned ?
thirdly, did you notice that your base classes data members were private (where they should be protected) ?
yes,I think you have understand, I want to know it is right that virtual functions's returns types can be different only if both returns have base and derived relation ship,but follow codes is error in Visual C++ 6.0:
virtual CBase* func1(int,char);
class CDerived:public CBase
class CDerived:public CBase
I complier codes in VC 6.0 and diplay follow error:
error C2555: 'CDerived::func1' : overriding virtual function differs from 'CBase::func1' only by return type or calling convention
because CDerived derived from CBase, I think CDerived::func1 can return CDerived's pointer.do you think so ?
I'm working with MFC Application which contains combo boxes and static text controls. ToolTip is given to static text to expose full text due to space constraints. Below the ComboBox i have static text which pop-ups ToolTip when mouse hovered on it. When i get my ComboBox's drop-down window, it's overlapping on the static text control. If you move your mouse from one item to other item in the ComboBox then i'm getting static text's ToolTip blocking the ComboBox item names.
Is there any way to find out that one window(Static text)is overlapped by other(ComboBox) to fix this problem?
Actually, it won't. "virtual inline" makes no sense and the inline specifier will be ignored.
Virtual functions let an object decide at runtime which particular implementation of a method should be invoked. If you have a pointer to the base object and call a virtual method, there is no way to know at compile time what type of object will be present at the actual time of the call. Hence, the compiler won't be able to figure out which implementation of the function to compile inline.
The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison
Awasu 2.2 [^]: A free RSS/Atom feed reader with support for Code Project.
Virtual functions let an object decide at runtime which particular implementation of a method should be invoked. If you have a pointer to the base object and call a virtual method, there is no way to know at compile time what type of object will be present at the actual time of the call. Hence, the compiler won't be able to figure out which implementation of the function to compile inline
This is of course, correct. However, if you use an object of the class in a non-polymorphic manner (say, create it on the stack), the compiler can figure out which object is used and inline the function.
Therefore, "virtual inline" actually makes sense, and will not be ignored
I think you did not really get my question. I need to get a decrypt routine to be able to get the password, as shown in the code. I can get the username but i cannot retrieve the password.
And there is no sys admin for the db for the moment.
I am not using Oracle but SQL Server, and i need to get the password. I don't think that has anything to do with the database security. The code i sent you before allows me to retrieve the username but not the password. But i need to get the password so that i can set it in Windows Registry. Where i got the code, there was something mentioned about needing a decrypt routine to be able to get the password. That's what i require.