Search:
Type: Posts; User: IndikaNiva
Search:
Search took 0.58 seconds.
-
November 2nd, 2018, 12:23 PM
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...
-
October 5th, 2018, 01:18 PM
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
-
October 5th, 2018, 01:07 PM
Thank you both, "openas" -> "open" is the choice that I took but both solutions work.
-
October 5th, 2018, 10:10 AM
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...
-
June 27th, 2017, 11:10 PM
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...
-
November 29th, 2016, 06:48 PM
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...
-
Now I need to find out the exchange is running on cached mode or not, anyone please?
-
got it
//your session
CComQIPtr<IMAPISession, &IID_IMAPISession> lpSession(pUnkSession);
LPSRowSet pRows=NULL;
const int nProperties=2;
SizedSPropTagArray(nProperties,...
-
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
-
February 21st, 2014, 12:05 AM
Thanks Igor, after a long time!
I am now trying to use IDispatch instead. Hope all is well.
-
February 20th, 2014, 08: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, 08:30 PM
How do I create a System::Object in an unmanaged C++ project?
Thanks
-
February 19th, 2014, 07: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, 11: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, 06: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, 06:27 PM
from my C++ code, I can also use MFC in my code.
-
December 11th, 2013, 06: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, 06:08 PM
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.
-
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.
Thanks again.
-
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
CWinApp app;
Now it returns me a garbage pointer
Thanks for the trying to help I am...
-
September 8th, 2011, 11:56 AM
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
...
-
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...
-
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,...
|
Click Here to Expand Forum to Full Width
|