Hello!
My application exports to Excel via DDE some information.
I know how to add new rows, but I don't know how to
delete ones? May be someone can help? It would be very great!
Thank,
Zaki Maksyutov
Hi!
My application should activate itself when something occurs
(when it receives a message). But I do know how to do it.
May be someone helps?
Thanks a lot!
Hi!
I use WaitForSingleObject and ReleaseMutex in one program.
Often one function do WaitForSingleObject, then call another function which also do WaitForSingleObject. I output to file when I catch object and release them. But also I would like to output counters for these objects (how many...
Hello!
I have C++ DLL and VB client. In C++ DLL there is a function to setting callback function. Accordingly, VB call this function (in C++ DLL) and pass pointer to own callback function.
When one event is occured, C++ DLL calls this VB callback function. I have to do some operations with new...
Start VC++.
File->New->(AtlComAppWizard, name the project, click ok)->finish.
In your test project you can find DllRegisterServer and DllUnregisterServer.
In C++ it is easy.
Dll have DllRegisterServer and DllUnregisterServer and you can change them manually. So you can simply add additional code which may insert additional registry entries.
and when regsvr32 yourdll.dll then DllRegisterServer (with additional code) will be executed.
I can get handle of service process, but I can't terminate it by TeminateProcess because I don't have rights: service Log On As LocalSystem and I don't.
I overcame this restriction by following way: I wrote another service which have one interface with one method.
I can invoke this method from...
I write NT-Service.
Now It works not well.
So It hangs down sometimes. After this of course I can't stop it from "Services". And also I can't stop it via taskmanager.
Thanks for any help.
Ok. Problem was solved.
STDMETHODIMP CExeTestServer::GetData(VARIANT* pvar)
{
// Data:
char* lpszData = new char[64];
strcpy(lpszData, "Hello, world!");
// Creating and filling SafeArray.
long lBytes = (strlen(lpszData)+1)*sizeof(char);
SAFEARRAYBOUND aDim[1]...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.