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]...
Hi!
I would like to have function in my COM EXE-server:
HRESULT GetData(byte** ppb, long& plBytes); or something like this.
This function should allocate memory, store data in it and return. But I don't know how to do this. I can't simply allocate :(
May be there is another approach (may be...
I found in MSDN:
-----------------------
Note When building a Release version of a project, you can get the following link error:
LIBCMT.LIB(crt0.obj) : error LNK2001: unresolved external symbol _main
This error occurs if you are using CRT functions that require CRT startup code. The Release...
Well.
I wrote class (see above) and all worked fine but later I noticed that I was in debug mode again...
As far as I understood there is following problem:
In EXE-server, built with ATL COM AppWizard (_ATL_FREE_THREADED), in ReleaseMinDependency I can't use any global class objects. F.i. I...
Hi!
I've encountered with one problem and I don't understand what's wrong.
I created EXE-server with ATL COM AppWizard (free thread, _ATL_FREE_THREADED).
And I use
static CComAutoCriticalSection m_cs; in my class.
I defined this object:
CComAutoCriticalSection MyClass::m_cs;
And all is ok in...
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.