CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: IndikaNiva

Page 1 of 77 1 2 3 4

Search: Search took 0.58 seconds.

  1. Replies
    0
    Views
    2,003

    Excel Automation question

    I am using C# to automate Excel (using Excel = Microsoft.Office.Interop.Excel). Can anyone tell me how to detect if you are in a header or footer section of your excel document programmatically.

    I...
  2. Re: ShellExecuteEx using default program instead of 'Open with' dialog

    Correction, if you use "open" verb then unknown file types will fail, instead of presenting the Open With dialog what a dilemma!!
    I have to go with nothing for the verb.

    Thanks
  3. Re: ShellExecuteEx using default program instead of 'Open with' dialog

    Thank you both, "openas" -> "open" is the choice that I took but both solutions work.
  4. ShellExecuteEx using default program instead of 'Open with' dialog

    I have a c# method that uses ShellExecuteEx to open a file, this code always show "Open WIth" dialog. I want ShellExecuteEx to use the default program associated with the file extension given.

    Any...
  5. Detecting if a COM exe (out of proc) is alive and auto resart if dead?

    Hi folks, we have a out of proc COM exe that is used by all Office applications and more, we want to detect in these callers, if the exe is running (crash situation) and automatically start the exe...
  6. In C#, how to get the error string from a failled COM call to a C++ COM dll

    I am calling a COM method written in c++ and exception is thrown.
    I can catch the Exception, but the description is not filled up, The C++ interface do not implement IErrorInfo.
    the exception...
  7. Replies
    2
    Views
    1,872

    Re: Outlook MAPI Get current profile name

    Now I need to find out the exchange is running on cached mode or not, anyone please?
  8. Replies
    2
    Views
    1,872

    Re: Outlook MAPI Get current profile name

    got it
    //your session
    CComQIPtr<IMAPISession, &IID_IMAPISession> lpSession(pUnkSession);
    LPSRowSet pRows=NULL;
    const int nProperties=2;
    SizedSPropTagArray(nProperties,...
  9. Replies
    2
    Views
    1,872

    Outlook MAPI Get current profile name

    Hi I have a MAPI session that is loged on and valid, I would like to get the current loged on profile string from it.
    Can someone help me please

    Thanks
  10. Replies
    2
    Views
    1,348

    Re: #import and raw_interfaces_only

    Thanks Igor, after a long time!
    I am now trying to use IDispatch instead. Hope all is well.
  11. Replies
    5
    Views
    1,579

    Re: System::Object in C++

    Also if anyone have sample code to call Excel (any office app) Dialog->Show() method using IDispath interface. using GetIDFromName and Invoke(), calls, that would be so thankful.

    I can post my...
  12. Replies
    5
    Views
    1,579

    System::Object in C++

    How do I create a System::Object in an unmanaged C++ project?

    Thanks
  13. Replies
    2
    Views
    1,348

    #import and raw_interfaces_only

    I am adding some code to legacy C++ app, it imports the excel14 tlb with raw_interfaces_only.
    I now I want to use excel.Application->get_dialogs method to get a save as dialog. this method...
  14. how to safely use EnumProcesses older and new OS

    MSDN says this about EnumProcess

    If PSAPI_VERSION is 2 or greater, this function is defined as K32EnumProcesses in Psapi.h and exported in Kernel32.lib and Kernel32.dll. If PSAPI_VERSION is 1,...
  15. Re: How to tell a file is locked wityout opening (very fast)

    seems like a lot of overhead for what I want to do, this also means I have to ship this program now.
    Thanks... I was hoping for some API call to see if the file is locked
  16. Re: How to tell a file is locked wityout opening (very fast)

    from my C++ code, I can also use MFC in my code.
  17. Re: How to tell a file is locked wityout opening (very fast)

    Thanks for the reply, Not exactly.
    I have a list of files, I want to move them to a server, so before the process begins, I want to know if any one of those files are locked by another process. It...
  18. How to tell a file is locked wityout opening (very fast)

    Hi,

    I need to find if a file is locked, but I dont want to open the file as I will be checking 1000's of files.

    can I do that in C++ or VC++

    Thanks


    ps... here after a long time.
  19. Replies
    5
    Views
    1,600

    Re: COM interface in .EXE GetMainWnd()

    Hi all, its working now

    I just had to remove the AFX_MANAGE_STATE(AfxGetStaticModuleState());

    call now I can get the app and the mainfrm.

    Thanks again.
  20. Replies
    5
    Views
    1,600

    Re: COM interface in .EXE GetMainWnd()

    NO it is not returning a valid AfxGetApp();

    It was not returning me anything so I added this line
    CWinApp app;

    Now it returns me a garbage pointer

    Thanks for the trying to help I am...
  21. Replies
    5
    Views
    1,600

    COM interface in .EXE GetMainWnd()

    Hi,

    I have .exe project that I am exposing a com interface via .odl file.

    In one of the methods in the com interface I need to get the MainFrm of the main .exe.

    so I am doing this
    ...
  22. return error string from a com callable wrapper

    I have a COM callable wrapper written in C#, this is being used by C++. Is there a way to return an error string via a HRESULT to C++, instead of wrapping the call in a catch block in C++.

    I have...
  23. Replies
    8
    Views
    1,452

    Re: message processing question

    Thanks VladimirF, this is what I am thinking also somewhere in our C++ code we must be calling peek and DispatchMessage.

    BTW, long time no see. thanks again.
  24. Replies
    8
    Views
    1,452

    Re: message processing question

    I am in a C++ dll, which calls a C# COM Callable dll to talk to a server
    in M1 I call a method from this C# com callable dll, while waiting for this method to return, my C++ code starts processing...
  25. Replies
    8
    Views
    1,452

    Re: message processing question

    Thanks for the reply, This is what I thought too...
    but the behavior I am seeing is different.
    M1 method calls a web service via wcf, which takes about half a second to reply, during this time,...
Results 1 to 25 of 1901
Page 1 of 77 1 2 3 4





Click Here to Expand Forum to Full Width

Featured