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 TouchToneTommy 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: *

  • Users: AliAndAli
  • Content: Threads
  • Order by date
  1. AliAndAli

    TPM_LEFTBUTTON and TrackPopupMenu

    In the documentation for TrackPopupMenu it says that: TPM_LEFTBUTTON Causes the pop-up menu to track the left mouse button. TPM_RIGHTBUTTON Causes the pop-up menu to track the right mouse button. In the following code, changing TPM_LEFTBUTTON to TPM_RIGHTBUTTON does not change anything...
  2. AliAndAli

    On page 85 of Don Box book, Essenti

    On page 85 of Don Box book, Essential COM, is a code like this: STDMETHODIMP MyClass::UseIt(VARIANT var) { VARIANT var2; VariantInit(&var2); VariantChangeType(&var2, &var, 0, VT_BSTR); ustrcpy(m_szSomeDataMember, SAFEBSTR(V_BSTR(&var2))); VariantClear(&var2); } I am wondering what happens if...
  3. AliAndAli

    Can someone please explain to me wh

    Can someone please explain to me what is the difference between true and TRUE and why we need both of them? There is also a Variant_true ( I probably have a spelling error in this last one) to futher complicate the issue. Thanks
  4. AliAndAli

    Linking to DLL (newbi)

    I have a regular dll and try to link to it from a MFC dialog based project. I get unresolved linker error due to the name mangling. I have a .def file in my dll project to export functions. I changed the name of the function ( it is a static function of the dll class drived from CWinApp)to the...
  5. AliAndAli

    I have an ATL project, that uses MF

    I have an ATL project, that uses MFC. If I link statically to MFC everything is fine, but if I set my project setting to use MFC in a shared DLL, then when I try to bring up a dialog, I fail with an Assertion failure. This is very similar to the problems in coding a dll where one has to use...
  6. AliAndAli

    debugging a com application.

    When using DCOM and client server on two separate machine, I can start the server in the debugger and set some break points. Then when I start the client, when client makes a request to the server, the server process stops at the break points and I can debug the server. The same procedure does...
  7. AliAndAli

    memory leak and dialog boxes.

    I started a simple dialog based project. On the dialog, there is a push button that when pressed brings up another dialog. I use the task manger to watch the memory used by my program. I bring up the second dialog by pressing on the push button and then close it. After I repeat this for few...
  8. AliAndAli

    I have a client on one machine and

    I have a client on one machine and server on another. I am logged in on both machine as the user. I am node Admin on both machines. I start the server on one machine and then the client on the other. Client can successfully call advise on the source interface of the server. But, if I don't start...
  9. AliAndAli

    Two instance of the server is launched

    I have two servers that talk to each other using DCOM interfaces. Although I probably should be using connection point for communication in one of the directions, I do not want to use connection points. Connection in both direction is done through regular com interfaces. Here is my problem: 1...
  10. AliAndAli

    Dialog boxes and ATL

    I have a COM server which contains a dialog box. When I start the server through CoCreateInstanceEx called by a client, the dialog box does not come up. I assume this behavior is caused by the fact that the object, started by the client, does not have access rights to the windows station. Deos...
  11. AliAndAli

    Problem with AfxMessageBox

    I have a MFC exe project with ATL support. (VC++ adds ATL support to MFC when you insert new ATL object.) I add some messages to my application using AfxMessageBox for debug purposes. Now, If I run my application in the debugger, AfxMessageBox works and pops up dialog boxes with my messages. But...
  12. AliAndAli

    memory could not be read

    I have a VC++ 6.0 program on Windows 2000. I run my program in the debugger and it works fine. But when I start it by double clicking on its icon, after sometime I get an error message: The instruction at "0x0042b1b5" referenced the memory at "0xcdcdcdcd". The memory could...
  13. AliAndAli

    registerning COM classes in VC++

    I have an MFC application with a new ATL Object inserted in it. I have a client running remotely on another machine. If I start the server manually, CoCreateInstanceEx call from client succeeds and everything works fine. But if I don't start the server, CoCreateInstanceEx can not start it...
  14. AliAndAli

    class not registered

    I have an MFC application with a new ATL Object inserted in it. I have a client running remotely on another machine. If I start the server manually, CoCreateInstanceEx call from client succeeds and everything works fine. But if I don't start the server, CoCreateInstanceEx can not start it...
  15. AliAndAli

    MFC and DCOM

    When you start a new project using ATL application wizard, VC++ creates a makefile for you that you can use to build the proxy/stub dll. However, if you create your server using MFC application wizard, V++ won't create the makefile. Does anybody know how to create proxy/stub for MFC servers...

Part and Inventory Search

Back
Top