|
Is your server a service?
In that case, you can use a separate worker thread in your
application to do the needful. The timing action can be
implemented using Events and the thread has to be
synchronised with that event. The event will signal the
thread when the required time has elapsed.
With best regards,
Sayan
Email:sayanmukherjee@indiatimes.com
|
|
|
|
|
Dear all:
I have programmed a toolband(.dll) by C++.But I don't know How to uninstall a component(.dll) by C++.
please give me some advice or examples
Thank you for your help
|
|
|
|
|
regsvr32 dllname.dll /u
from the command line
bryce
|
|
|
|
|
You are able to call DllRegisterServer and DllUnregisterServer toolband.DLL's functions or RegSvr32.exe [/u] toolband.DLL
With best wishes,
Vita
|
|
|
|
|
or simply swipe the IE toolband specific registry keys that you added?
#define MOSTLY_LEAN_AND_MEAN
|
|
|
|
|
Dear all:
I have installed a toolband(.dll) in IE in a web page by using Internet component download.But I don't know How to uninstall a component(.dll) in a web page.
please give me some advice or examples
Thank you for your help
|
|
|
|
|
Open up Explorer, go to \windows\Downloaded Program Files, find the one you want to remove, and hit the Delete key.
--Mike--
Actual sign at the laundromat I go to: "No tinting or dying"
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Big fan of Alyson Hannigan and Jamie Salé.
|
|
|
|
|
You can use Windows Shell script to swipe out the relevant registry keys?
#define MOSTLY_LEAN_AND_MEAN
|
|
|
|
|
I want to add popup menu button into a Explorer bar for IE, just like the history explorer bar in IE6. There are a "view" popup menu and a search button on the IE history explorer bar. By the way, is it possible to add a control(such as a treeview) to the window area of Explorer toolbar?
If you know how to do it, please help me, examples will be appreciated!
Thanks!
|
|
|
|
|
checkout
toolband -http://www.codeproject.com/useritems/toolband.asp
dropdown menu/toolbar-http://www.codeproject.com/wtl/toolbar.asp
and Bjarne Viksoe's website www.viksoe.dk for full code samples of explorer bars,toolbands etc.
#define MOSTLY_LEAN_AND_MEAN
|
|
|
|
|
Hi folks. I've created an ATL control that subclasses the standard treeview. It's very nice and I can host it in a web page and everything. The problem is when I resize the web page (with full window drawing as it's resized) I get a really bad flicker of the tree view. Something is causing my control to erase. I've tried suppressing WM_ERASEBKGND, but no good. When ATL resizes the main window of my control with SetWindowPos, it gets erased. If I make a windowless control (just using the default drawing from the wizard) I get flicker free resizing.
Does anyone know how I can get rid of flicker for the windowed control?
Thanks
Matt
|
|
|
|
|
I ve downloaded a Flash Com Objects from http://bukoo.sourceforge.net. I ve registered the dll. Then i imported the dll in VC. Please anyone explain how to use the COM object.
ThankYou
|
|
|
|
|
You will either need a header file that indicates the interfaces for the object, or the DLL needs to contain a typelibrary. If the DLL contains a type library you can use the #import command at the top of your file to automatically extract the data and create a header file for you. Look up the #import command in MSDN.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
I ve downloaded a Flash Com Objects from http://bukoo.sourceforge.net. I ve registered the dll. Then i imported the dll in VC. Please anyone explain how to use the COM object.
ThankYou
|
|
|
|
|
Anonymous wrote: I ve downloaded a Flash Com Objects from http://bukoo.sourceforge.net. I ve registered the dll. Then i imported the dll in VC. Please anyone explain how to use the COM object.
I think you have to look for some beginner books
"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
|
|
|
|
|
Dear all:
I generated a test certificate by the following command :
makecert -sk test1 -r -ss test.
I want to generate a real certificate,could you give me some advice.
thanks a lot.
liuage
|
|
|
|
|
I wrote a method in COM, has two parameters, BSTR bstrUserID and BSTR bstrUserPwd. I set type in SQL Server as varchar, I used stored procedure to execute a search in database.
Method:
STDMETHODIMP CStudentManager::LogOn(BSTR bstrUserID, BSTR bstrUserPwd)
{
// TODO: Add your implementation code here
BSTR UserID = ::SysAllocString(L"UserID");
BSTR UserPwd = ::SysAllocString(L"Passward");
VARIANT vUser, vPassword;
vUser.vt = VT_BSTR;
vUser.bstrVal = bstrUserID;
vPassword.vt = VT_BSTR;
vPassword.bstrVal = bstrUserPwd;
m_Comm->CommandText = L"LogOn";
HRESULT hr = AppendParameter(UserID, adChar, vUser, adParamInput,20);
if(SUCCEEDED(hr))
hr = AppendParameter(UserPwd, adChar, vPassword, adParamInput,20);
if(SUCCEEDED(hr))
m_Comm->Execute(pvtEmpty1, pvtEmpty2, adCmdText);
if(hr == 0)hr = S_OK;
else hr = E_FAIL;
m_Comm->Parameters->Release();
m_pRs->Close();
::SysFreeString(UserID);
::SysFreeString(UserPwd);
return hr;
}
Stored Procedure:
Create Procedure LogOn
(
@ID,
@Password
)
as
if EXISTS(Select userid from users where userid = @ID and userpwd = @Password
return 0
else
return 1
Go
I used a client function to logon: hr = pManager->LogOn(LogonID, LogonPwd);
I found the function can work, but always return E_FAIL even when database has userid and password.
I thought there is some wrong in define the type, but I can not find it out.
So could anyone tell me when I used BSTR in COM and varchar in SQL SERVER, what should i pay attention to ?
|
|
|
|
|
chq12 wrote:
BSTR UserID = ::SysAllocString(L"UserID");
...
HRESULT hr = AppendParameter(UserID, adChar, vUser, adParamInput,20);
...
Procedure LogOn(@ID,...
Is it the valid relation between "UserID" and "ID"? Is it the same parameter?
With best wishes,
Vita
|
|
|
|
|
Yes, it is. Should these two be same? I mean, if I use UserId in COM as the parameter name, so I should use @UserID in stored procedure. Is it right?
|
|
|
|
|
I think that they must be the same. Try it.
With best wishes,
Vita
|
|
|
|
|
I'll create a IPictureDisp dervied class with a copy constructor, to insert LPPICTUREDISP in an array as follows:
OCArray<picturedisp> m_Pics;
m_Pics.Add(new PICTUREDISP(*pPic));
The point is, that the derived class I has created don't works. Maybe someone can write an example?
thx
Martin
|
|
|
|
|
While you are working with the interfaces, you should not try to copy the content of the interface pointer, i.e. *pPic.
To copy the object, you MUST use the copy of pPic, i.e. IPictureDisp* pPicNew = pPic; pPicNew->Addref(); and pPicNew->Release(); after the stopping of its usage.
You should implement the member OCArray::Add(IPictureDisp* pPic) under above requirements and use m_Pics.Add( pPic );
With best wishes,
Vita
|
|
|
|
|
I've already done, that don't works.
is there another way to do it?
thx
Martin
|
|
|
|
|
And what is wrong? Let us look at your PICTUREDISP constructors/destructor. Also, what is a OCArray class?
With best wishes,
Vita
|
|
|
|
|
The OCArray is a faster CArray class (you can find it on this page).
The variable pPic is a LPPICTUREDISP an is passed by a function called from a VisualBasic application. (It is only a temporary variable).
It should work like that:
1. pPic is passed to the function
2. the function inserts the pPic into the array
3. and calls a function that updates the thumbnail view.
The point is that you can only insert two pic's, if you'll insert a third one the ocx crashes. Furthermore all pictures become the last inserted picture.
The declaration of LPPICTUREDISP is the standard MFC declaration.
The two files of my PICTUREDISP class can you find on:
http://www.martin.krellmann.net/PICTUREDISP.h.txt
http://www.martin.krellmann.net/PICTUREDISP.cpp.txt
|
|
|
|