Type: Posts; User: IndikaNiva
Search took 0.54 seconds.
Now I need to find out the exchange is running on cached mode or not, anyone please?
CComQIPtr<IMAPISession, &IID_IMAPISession> lpSession(pUnkSession);
const int nProperties=2;
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
February 20th, 2014, 11:05 PM
Thanks Igor, after a long time!
I am now trying to use IDispatch instead. Hope all is well.
February 20th, 2014, 07:42 PM
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...
February 20th, 2014, 07:30 PM
How do I create a System::Object in an unmanaged C++ project?
February 19th, 2014, 06:44 PM
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...
January 9th, 2014, 10:05 AM
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,...
December 11th, 2013, 05:54 PM
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
December 11th, 2013, 05:27 PM
from my C++ code, I can also use MFC in my code.
December 11th, 2013, 05:25 PM
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...
December 11th, 2013, 05:08 PM
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++
ps... here after a long time.
September 8th, 2011, 12:48 PM
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.
September 8th, 2011, 12:24 PM
NO it is not returning a valid AfxGetApp();
It was not returning me anything so I added this line
Now it returns me a garbage pointer
Thanks for the trying to help I am...
September 8th, 2011, 11:56 AM
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
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++.
April 18th, 2011, 09:48 AM
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.
April 18th, 2011, 09:31 AM
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...
April 18th, 2011, 09:07 AM
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,...
April 18th, 2011, 08:48 AM
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...
March 3rd, 2011, 02:27 PM
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...
January 6th, 2011, 01:19 PM
Thanks... yes that will do the trick. I had already fixed with similar code as yours.
January 4th, 2011, 03:09 PM
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
July 15th, 2010, 08:14 AM
simply put it managed code is c# and unmanaged code is C++.
this is too big of a topic for here. google it.
July 14th, 2010, 01:24 PM
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...
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!