When do we need marshaling
Mon, 10 Dec 2007 02:29:00 -0800
Hi
I have a question about marshaling.
This is a simple Com client
Code:
#include "comcalc.h" // midl generated class declarations for IComCalc
#include "iostream.h"
//or
//#import "comcalc.tlb" no_namespace named_guids
//#include "iostream.h"
main()
{
ICalc * pCalc;
int iResult;
HRESULT hr = CoC ...
|
IWebBrowser2
Sun, 9 Dec 2007 06:59:02 -0800
I am encountering severe memory leaks when I use the IWebBrowser2 component.
I noticed a leak under 2 scenarios:
1. Upon navigation - the memory is constantly increasing.
2. Every time I construct the object.
Does anyone know anything about it or can suggest a solution?
Thanks
Tal ...
|
How can my ActiveX control detect if host application shut-down ?
Sun, 9 Dec 2007 02:01:01 -0800
I have several individual ActiveX controls that cooperate using a common
object object (think of individual controls displaying data from the same
source)
The common object is running on its own thread and I start the thread when
the first control is to be created. Starting threads on DllMain does not work ...
|
COM in a service
Fri, 7 Dec 2007 13:14:26 +0100
Hello,
I want to use COM objects in a service. When I call CoInitializeEx in the
Init function, it succeeds and I can use a local server without a problem.
But the IOControl function is called from a different thread and I need to
call CoInitialize for this thread too. This call fails with 0x80004006
(CO_ ...
|
Windows Firewall - RemoteAdminSettings
Fri, 7 Dec 2007 00:44:02 -0800
Hi All,
I am trying to programmatically enable RemoteAdminSettings in WindowsFirewall.
I have checked all the Micosoft documentation and have written VB.net code
to do as suggested.
I cannot enable Remote Administration programmatically.
Following is the code
Dim oFireWall As Object
Dim o ...
|
control word using win32 vc++ 2008 express
Thu, 6 Dec 2007 13:29:06 -0800
I would like to insert word documents into a word report doc as well as
insert excel files into the report document using vc++ 6.0 or vc++ 2008
express.
I do not want to use any mfc. Just ole if possible.
If there is documentation that I could browse, please point me in the right
direction. If not, pleas ...
|
visual basic 6.0 event.log
Thu, 6 Dec 2007 12:07:03 -0800
I have a vb6 project, that sometimes when compiled, generates a file on the
desktop called event.log. This can occur in windows xp or windows vista. I
haven't got any app.logevents calls in my project at all.
All I want to achieve is for this file to not appear at all, or if it can't
be turned off, then fo ...
|
|
|
IStorage Copyto: STG_E_INSUFFICIENTMEMORY
Thu, 6 Dec 2007 09:59:00 -0800 (PST)
Hi all,
I am having some problems with structured storage files.
We use them in my application, and create them with StgOpenStorageEx,
specifying the 4096 sector size to avoid the limitations of the 512
sector size.
The problem we are having is that, once the files start containing a
certain number of sub- ...
|
One question about COM object's virtual table.
Thu, 6 Dec 2007 06:24:10 -0800 (PST)
Say:
class IFATHER: public IUNKNOWN
{
...
};
class CDemo:public IFATHER
{
public:
virtual void ~CDemo(){....}
...........
};
Where would CDemo's virtual destructor be placed in the virtual table?
Is it compiler independent or it is ensured that it would be place
behind QueryInterface&AddRef&Re ...
|
ConflictStore for Synchronizing under Window Vista (ISyncMgrConfli
Wed, 5 Dec 2007 05:38:01 -0800
Hello
I need some help for a problem that I encountered. For the Windows
Synchronization Manager (mobsync.exe) I wrote a synchronization handler that
synchronizes data between a main application and outlook. For this I
implemented the interfaces ISyncMgrHandler, ISyncMgrSyncItem and many others.
The next st ...
|