|
Open MS Word and Go to Tools - Macros and disable the macros you want to stop from running, and then restart MS Word.
Regards,
Rajesh R. Subramanian
SOME SOULS NEVER REST
|
|
|
|
|
Hello,
I try to get the disk writes (on a system partition or on a remote share) by particular running processes.
I try to make an API monitor for thoses processes but it seems complicated because I also need to get the written filepath names.
I don't how that can be possible to do..
Any hint would be greatly appreciated
|
|
|
|
|
|
Yes I need some kind of product like filemon,
Filemon can only works with administrative privileges. Furthermore I need to have it automated, to generate logs.
How does that program work ???
Anthony Brenelière
|
|
|
|
|
I faced a problem when calling the method Initialize of IpublishingWizard interface.
hr = ::CoCreateInstance(
CLSID_PublishingWizard,
NULL,
CLSCTX_INPROC_SERVER,
IID_IUnknown,
(LPVOID FAR *) &punk);
hr = punk->QueryInterface(
__uuidof(IPublishingWizard),
(void**) &pPubWiz);
if ( FAILED(hr) )
return;
wchar_t pszServiceProvider[128];
_mbstowcsz(pszServiceProvider, "InternetPhotoPrinting", sizeof(pszServiceProvider));
hr = pPubWiz->Initialize(pdo, SHPWHF_NOFILESELECTOR, (LPCWSTR)pszServiceProvider);
if ( FAILED(hr) )
return;
1. Wizard does not appear.
2. Initialize method always returns S_OK independently of parameters value.
|
|
|
|
|
Hi - I'm working on a similar problem with a crash after the wizard, but I did get the wizard to display. You need to use the AddPages method of IPublishingWizard (inherited from IWizardExtenstion) to fill an array of HPROPSHEETPAGE's, create a PropertySheetHeader with these pages, and call PropertySheet() to display. Let me know if this works for you.
hr = pIPublish->Initialize(pDataObject,SHPWHF_NOFILESELECTOR, L"InternetPhotoPrinting");
if SUCCEEDED(hr)
{
DWORD dwNumPagesAdded = 0;
HPROPSHEETPAGE hPropSheets[9]
hr = pIPublish->AddPages(&hPropSheets[0], 9, &dwNumPagesAdded);
if SUCCEEDED(hr)
{
psh.phpage = hPropSheets;
psh.nPages = dwNumPagesAdded;
psh.nStartPage = 0;
psh.dwFlags = PSH_WIZARD;
psh.hwndParent = NULL;
psh.hInstance = NULL;
PropertySheet(&psh);
}
}
Thanks,
-Denise
|
|
|
|
|
Hello, Denise!
Thank you for help. I tried your advice, but the window with Wizard did not appear, though PropertySheet returned normal result (-1). Do you have any ideas?
Thanks, Sergey.
|
|
|
|
|
i am new to COM programming so i was wondering if any proffesional COM programmers can help me here... i work for a game company and i need to implement a remote debugger for our Script Engine which is a LUA script engine. some one suggested me to use COM servers and clients for this. I dont have much knowledge of COM right now and im studying it right now. With the amount of knowledge i have i can imagine for this project i need to have a COM server which can provide two types of object model.. one debugger and one debugee... and then clients have to use these interfaces to send and recieve info... like for example for a BREAK command the script editor uses the debugger interface to send data to the debugee saying that i need to break at this line when ever ya reach and blah blah.. in exchange the application would use debuggee interface to call debugger to say that we have reached this line and stuff... does this architecture seem aright? i mean using COM...?? and then one more important thing is that there could be any number of interfaces alive out there.... is there anyway in COM to find how many debugee interfaces are running and then access them???!!! any suggestion and help is much appreciated.... thanks
|
|
|
|
|
Perhaps more information on the nuts and bolts of how one actually *writes* this software may be helpful.. I have a step-by-step DCOM tutorial, where I build a simple server which says "Hello, world!" back to the client, may help put some of this in practical perspective...
The tutorials are written as a series of separate articles, called Steps, which cover the major breakpoints in the development of the system.
Step 1 of the tutorial for VC 6 is at
http://www.codeproject.com/com/HelloTutorial1.asp[^]
And Step 1 of the turtorial for Visual C++.NET 2003 is at
http://www.codeproject.com/useritems/HelloTutorial1NET.asp[^]
I tried to write the tutorials in Microsoft-ese, so you can follow along as if you were reading the Scribble tutorial. The VS.NET version is still a work in progress; that's why it's still in "Unedited User Constributions."
Not all the Steps have been written for the VS.NET version yet. But I am working on it!
Stay tuned!
Sincerely Yours,
Brian Hart
Department of Physics and Astronomy
University of California, Irvine
|
|
|
|
|
I want to masking the word's SaveAs function,and the EditCopt EditPaste function.First,I build a ATL project, then input the needed library.I want to reload the SaveAs funcion,and EditCpopt EditPaste function,but I Don't know
how to write the above 3 function.
If anyone know how to do this,please tell me!
Thank you very much!
|
|
|
|
|
I want to Modify Microsoft Exchange database. Is there any component available for that purpose?
Tauheed
|
|
|
|
|
Hi all,
I wrote a server(VC++) having 2 COM object(A,B) & I want client application only can create COM object A and can not create COM object B. COM object B will be return by calling a function exported in an interface of COM object A.
For example, client application written by VB
Dim a = new A
Dim b as B
call a.getInstanceB(b)
call b.doSomething
Any body know what to do to make COM object B can not be created by client application?
Thanks a lot,
Tin Le,
|
|
|
|
|
As I've been curious about the same thing, I took this as an exercise, and
if you use ATL for your COM server, I have the solution for you.
ATL includes an object map in its implementation file that includes entries for each class the server implements. The map is located in the COM servers implementation file (named <project name="">.cpp) and looks like this
BEGIN_OBJECT_MAP(ObjectMap)
OBJECT_ENTRY(CLSID_Creatable, CCreatable)
OBJECT_ENTRY(CLSID_IsNotCreatable, CIsNotCreatable)
END_OBJECT_MAP()
Change the object entry to OBJECT_ENTRY_NON_CREATEABLE of your non, creatable class.
BEGIN_OBJECT_MAP(ObjectMap)
OBJECT_ENTRY(CLSID_Creatable, CCreatable)
OBJECT_ENTRY_NON_CREATEABLE(CIsNotCreatable)
END_OBJECT_MAP()
After this, the CIsNotCreatable coclass cannot be created by CoCreateInstance. (Take a look at the documentation of OBJECT_ENTRY_NON_CREATEABLE in MSDN).
To let the creatable class create an instance of the non creatable and return a COM pointer ot it, you can do like this
STDMETHODIMP CCreatable::CreateNotCreatableObject(IIsNotCreatable **obj)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())
HRESULT hr;
CComObject<CIsNotCreatable>* instanceOfNotCreatableClass;
hr = CComObject<CIsNotCreatable>::CreateInstance(&instanceOfNotCreatableClass);
if (SUCCEEDED (hr)) {
instanceOfNotCreatableClass->AddRef ();
*obj = instanceOfNotCreatableClass;
}
return hr;
}
|
|
|
|
|
|
Hi all,
I have a C++ DLL that I "think" I need to make COM aware to make it work on both 32 and 64 bit windows processors. According to Microsoft site:
"On 64-bit Windows, a 64-bit process cannot load a 32-bit dynamic-link library (DLL). Additionally, a 32-bit process cannot load a 64-bit DLL. However, 64-bit Windows supports remote procedure calls (RPC) between 64-bit and 32-bit processes (both on the same computer and across computers). On 64-bit Windows, an out-of-process 32-bit COM server can communicate with a 64-bit client, and an out-of-process 64-bit COM server can communicate with a 32-bit client. Therefore, if you have a 32-bit DLL that is not COM-aware, you can wrap it in an out-of-process COM server and use COM to marshal calls to and from a 64-bit process." (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/win64/win64/process_interoperability.asp)"
Unfortunately, I don't have a whole lot of COM experience. Can anyone point me at some resource to help me out with this project? Anyone with good/bad experience doing this type of wrapper? Any suggestion, or help would be greatly appreciated.
Thank you in advance,
James
|
|
|
|
|
Go to the COM and/or ATL section of code project. There are plenty of tutorials there.
I've not done a wrapper for this explicit reason, but I've wrapped other DLLs before and its no big problem.
The simplest way is to use the ATL Appwizard assuming you're using VC++.
Kev
|
|
|
|
|
When I create multiple out-of-process COM instances of same class from a com server, is it then, in some way, possible to let them run in different processes?
-- modified at 4:29 Tuesday 13th December, 2005
|
|
|
|
|
I have writen a COM Exe.
I an create the object and call it all day from VB. If I create the object in a C++ application using #import symanctics. Calling application hangs and eventually gets a runtime error that crashes msdev environment. What is proper way to create a com exe object through C++ that will mimic the behavior of createobject in vb.
a programmer traped in a thugs body
|
|
|
|
|
Hi
I have searched a lot for this, but in vain. I found sites were the same problem has been raised, but nowhere with a proper answer. I hope I will get an answer here.
I am using an ATL COM server in VC++ from C#. Object of a class from the COM side is successfully created at C# side. But while calling a method on that object it is throwing an error with message "The Server threw an exception". The Error encountered is 0X80010105. And the HRESULT is -2147417851.
Everything was working fine until I made some changes at the client side. I don't think those changes have some relation in with this error.
Code for the Server and client side are as shown below
//Client side in C#
ServerObj sObj = new ServerObj();
//Error is thrown here, arguments passed are interger, reference of structure and object of calling class.
sObj.CallServerMethod(integer, ref structure, this);
//Server side in VC++
STDMETHODIMP CServerObj ::CallServerMethod(int integer, tagStruct *pVal, VARIANT vt)
{
}
Thanks in Advance,
Diana.
|
|
|
|
|
Hi
I would like to add a new observation with the above mail.
The problem is seen only in the Debug Mode. The first line in the that method ("assert(false);"), which enables debugging was commented out and its not throwing any more Exception and working fine.
//Server side in VC++
STDMETHODIMP CServerObj ::CallServerMethod(int integer, tagStruct *pVal, VARIANT vt)
{
//assert(false);
}
But I don't know why it was happening.
Regards,
Diana.
|
|
|
|
|
Hi
I am writing a WMI application to monitor the file system events in my system.i had converted the query given in http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr05/hey0404.mspx" into a WQL in c++. But i am getting an error message Query execution failed. Can anyone help me in this regard.
Is it possible to monitor the entire system for file system changes using WMI ?
|
|
|
|
|
Hi there. I've placed a shockwave flash object on a vc++ dialog and I want to completely eliminate the popup menu which appears under the mouse right click but the flash ocx doesn't have any method to handle the mouse clicks and the menu always pops up. Anyone got any idea?
... And nothing else matters!
|
|
|
|
|
I'm having serious problems trying to insert data into a ms access database. everytime i submit the data, they don't get inserted into my ms access table. I think I don't have permission to insert data into the ms access table, but I don't know how to change the settings so that I can just simple insert data into my table. Any help as to the step-by-step procedure to solve my problem will be received with great thanks
here's the code. the actual form part is from another asp page. This page does the actual inserting of data into table:
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Open "Forum"
set rs=Server.CreateObject("ADODB.recordset")
%>
<%
sql="INSERT INTO forum1 (PosterName,Date,Comments,"
sql=sql & " VALUES "
sql=sql & "('" & Request.Form("name") & "',"
sql=sql & "('" & Request.Form("date") & "',"
sql=sql & "'" & Request.Form("comment") & "')"
on error resume next
conn.Execute sql,recaffected
if err<>0 then
Response.Write("No update permissions!")
else
Response.Write("" & recaffected & " record added")
end if
conn.close
%>
jibybabu
|
|
|
|
|
Can Anybody help me in solving this COM problem
I have Created a .Net Windows application in C#.
This application has only a WebBrowser Control. On the Form load event I have navigated to a particular site. (Say www.google.com).
Now I have an Another application that is intended to send keys to this Application.
I’m Using SendKeys.Send () fn. for this.
To my Surprise the webBrowser control is not receiving any of the keystrokes, however the TAB key is working in it.
Then I Opened a normal InternetExplorer page and tried the same. Then that application is receiving keystrokes. I want to know why the webBrowser control (C# application) is not receiving keystrokes.
I will be very grateful to you if u help me in this problem.
Thank you,
Arun Appukuttan
THANK YOU
|
|
|
|
|
try sendkeywait() method..
just a guess..
Good LUck
|
|
|
|