Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ZakiMaksyutov

    Can I delete row from EXCEL via DDE?

    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
  2. ZakiMaksyutov

    How to activate window?

    Hi, tchouch! Thanks a lot for your help! All is ok.
  3. ZakiMaksyutov

    Drawing in Dialogs Windows

    1) create MFC-based dialog application; 2) catch WM_PAINT message (do it with ClassWizard); 3) put code written by DrkPalladin in function OnPaint...
  4. ZakiMaksyutov

    How to activate window?

    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!
  5. ZakiMaksyutov

    Moving mouse

    Thank for your answer! In fact, I found decision a long time ago. But thanks once again!
  6. ZakiMaksyutov

    Can I see counters for mutexs?

    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...
  7. ZakiMaksyutov

    Calling DLL's from Visual C++ 6

    I think your Dll functions "GetMakes" and "test" are declared without specification _stdcall (CALLBACK).
  8. ZakiMaksyutov

    COleSafeArray

    MSDN the best...
  9. ZakiMaksyutov

    Processing own messages in VB

    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...
  10. ZakiMaksyutov

    register dll

    Start VC++. File->New->(AtlComAppWizard, name the project, click ok)->finish. In your test project you can find DllRegisterServer and DllUnregisterServer.
  11. ZakiMaksyutov

    register dll

    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.
  12. ZakiMaksyutov

    How to kill NT-Service?

    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...
  13. ZakiMaksyutov

    How to kill NT-Service?

    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.
  14. ZakiMaksyutov

    Getting raw data from COM EXE-server.

    no I wanted to have method GetData in interface IExeTestServer of my COM EXE-Server which should return some data.
  15. ZakiMaksyutov

    Getting raw data from COM EXE-server.

    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]...
  16. ZakiMaksyutov

    Getting raw data from COM EXE-server.

    Sorry: HRESULT GetData(byte** ppb, long* plBytes
  17. ZakiMaksyutov

    Getting raw data from COM EXE-server.

    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...
  18. ZakiMaksyutov

    CComAutoCriticalSection - unresolved symbol _main

    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...
  19. ZakiMaksyutov

    CComAutoCriticalSection - unresolved symbol _main

    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...
  20. ZakiMaksyutov

    CComAutoCriticalSection - unresolved symbol _main

    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...

Part and Inventory Search

Back
Top