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

Search:

Type: Posts; User: IndikaNiva

Page 1 of 76 1 2 3 4

Search: Search took 0.11 seconds.

  1. Replies
    2
    Views
    275

    Re: Outlook MAPI Get current profile name

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

    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,...
  3. Replies
    2
    Views
    275

    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
  4. Replies
    2
    Views
    315

    Re: #import and raw_interfaces_only

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

    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...
  6. Replies
    5
    Views
    411

    System::Object in C++

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

    Thanks
  7. Replies
    2
    Views
    315

    #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...
  8. 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,...
  9. 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
  10. Re: How to tell a file is locked wityout opening (very fast)

    from my C++ code, I can also use MFC in my code.
  11. 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...
  12. 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.
  13. Replies
    5
    Views
    820

    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.
  14. Replies
    5
    Views
    820

    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...
  15. Replies
    5
    Views
    820

    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
    ...
  16. 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...
  17. Replies
    8
    Views
    978

    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.
  18. Replies
    8
    Views
    978

    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...
  19. Replies
    8
    Views
    978

    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,...
  20. Replies
    8
    Views
    978

    message processing question

    I just want to know if the following scenario is normal

    all in same thread

    I post a message using PostMessage (M1) and carry on, few ms later I post another message (M2)

    M1 is picked up and...
  21. .rgs lost after turning on CLR (managed C++)

    Recently I added manged C++ code to an existing C++ com .dll project
    VC 10. it used to add the entries form its .rgs file to the registry, after turning on CLR this stopped working. I have seen...
  22. Replies
    3
    Views
    1,646

    Re: late binding, InvokeMember managed C++

    Thanks... yes that will do the trick. I had already fixed with similar code as yours.
  23. Replies
    3
    Views
    1,646

    late binding, InvokeMember managed C++

    Hi I am trying to load a c# dll at runtime and call a method in it from managed C++, I am not having much luck

    I am trying t use

    Assembly::LoadFrom and
    System::Type^ typ
    typ->InvokeMember...
  24. Re: Trun CLR on for one file in COM DLL project

    simply put it managed code is c# and unmanaged code is C++.

    this is too big of a topic for here. google it.
  25. Re: Trun CLR on for one file in COM DLL project

    after days and day of research I figured out how to do this.
    basically you have to turn on /clr for the file that contains the DLLMain in your poject. ProjectName.cpp file

    from what I understand...
Results 1 to 25 of 1895
Page 1 of 76 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center