Hi.
I sometimes get the following exception:
COM object that has been separated from its underlying RCW can not be used
Sample code:
using (AdOrganizationalUnit organizationalUnit = new AdOrganizationalUnit(ADHelper.GetDirectoryEntry(ouAdDn)))
{
using (AdUser user = organizationalUnit.AddUser(commonName))
{
//set some properti...
One particular user is getting an exception when connecting an application I created to a third party app using COM. The connection fails with the following error:
Source: mscorlib
Message: Exception from HRESULT: 0x80040202
This software works fine for other users.
Any ideas what could be going on?
The error occurs just before the...
according to
http://msdn.microsoft.com/en-us/library/ms524620.aspx
you should use server.createObject
If you are already familiar with VBScript or JScript, note that you do not use the scripting language's function for creating a new object instance (CreateObject in VBScript or New in JScript). You must use the ASP Server.CreateObj...
So i have the misfortune of embedding this proprietary ActiveX control we created into a web page so that it downloads the code from our server and installs as necessary.
Our ActiveX requires a host of other files which need to be installed along with the activex control itself. It should also be noted that the activex and all its de...
HI all,
I am trying to modify the code provided by MS try to access the the Network Adapter Configuration
I am getting null pointer exception in it when i try to access the Mac Address or IPAddress property im using VC++ 2005. check for the // exception here: vtProp is returned as NULL line where am getting the exception.
#define _W...
I'm looking for a winxp terminal tool that will send/receive raw bytes, not just printable ASCII like the hyperterminal that ships with winxp does. Preferably open-source.
...
Hi all
This is a duplicate question, but the other one didn't get any answers, so I'll have another go.
I have SQL Server 2008 Client Tools installed, and would like to use SQL Server's query designer(s) in my application, for working with queries, views, SPs and functions. I'm pretty sure Access ADP does this, can I?
I guess what I a...
I have several C# projects in one solution which reference some isolation-mode (regfree) COM DLLs. Some projects reference the same DLL, and when I build, I get error [MSB3180][1]: COM component 'SomeDll.dll' is defined in both 'Native.SomeProject.manifest' and 'Native.SomeOtherProject.manifest'".
The projects must reference the same CO...
Hi guys,
if've got a problem with a sigend .Net COM DLL and I try to call the ctor of this class in VB6 but it only works on my machine, but not on the other developer machines. The error is 0x80131534.
The Class looks like this:
// GUIDs are examples. In my component they're diffrent
[ComVisible(true)]
[Guid("AAAAAAAA-AAAA-1111-AAAA-...
Hello
I'm using WinHTTP IWinHttpRequest object. I do POST to a https domain specyfying a request body with credentials. The site is expected to return cookies in HTTP response. The code works in Wininet - but I don't know how in WinHTTP to get cookies from the HTTP response?
Can anybody help?
Dominik
...
Hello everyone,
I've set myself a new task which involves "spying" on COM objects.
Even if you don't do COM, you're probably familiar with API hooking techniques where you can hook onto an imported function and execute your own code before calling the original. API hooking is somewhat complex but it quickly gets messy (too messy for pr...
This is the specific error I am getting:
libFoo.so: undefined reference to `IID_IFOOBAR'
collect2: ld returned 1 exit status
make: *** [/home/F.exe] Error 1
when I try to check the symbols in my object file A.o
nm A.obj | grep IID_
I get no symbols listed in my object file of the 'IID_IFOOBAR' that should be there since it is defin...
Versions
Excel 2007, Windows Vista, VB.NET, Visual Studio 2008 with .NET 3.5 sp2, MSI setup package.
What I am trying to do
I have an Excel UDF that is written in VB.NET. It is exposed as a COM Server because you cannot create Excel UDFs in .NET languages directly. Installation is a real pain because none of the installation settings ...
To receive the bounty, please provide an answer with working code. Thanks.
I have a stdole.StdPicture Object of the Type vbPicTypeIcon. I need to convert it to Type vbPicTypeBitmap. Due to project contraints, I need to be able to do this using Win32 or VBA. I am trying to load a file's icon to a command bar button. Here is what I have s...
I have had to set a fixed time out for a particular COM method call from a service that we have (which is written in C#). Not having used the System.Threading namespace for anything other than Thread.Sleep, I have had a play and have come up with a working prototype:
bool _comCallSuccessful = false;
bool _timedOut = false;
private void...
Some background:
SharePoint+PowerShell is (Usually) a Perfect Match by Zach Rosenfield [MSFT]
SharePoint+PowerShell Leak Workarounds by me
SO: Could you explain STA and MTA?
In short, standard SharePoint guidance is that COM-backed objects like SPSite and SPWeb should not be used by different threads. This stands in conflict with Pow...
I'd like to register Outlook Redemption as an isolated COM component using a Visual Studio 2008 setup project. After adding Redemption.dll to my setup project, if I choose either vsdrfCOMRelativePath or vsdrfCOM options in Properties > Register, I get the following error.
Exception EAccessViolation in module msvbver.dll at 0000A15F.
...
I'm building a kind of dock, and I struggle at finding how to save things like "Run", "Search", "Help", "Printers" and reopen them after that.
I tried this :
CComPtr<IShellFolder> pDF;
SHGetDesktopFolder(&pDF);
LPITEMIDLIST pidlPrintersAndFaxes=0;
hr=pDF->ParseDisplayName(0, 0, L"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3...
The IDXGIObject has a function to obtain a pointer to its parent GetParent. Unfortunately, the docs don't say whether I have to call Release() on the returned interface or not -- calling or not calling it works fine in both debug/release (that is, no crash), but I wonder whether I should release or rather not. Any idea how this is suppos...
I have a Python program (PP) that loads another Program(AP) via COM, gets its window handle and sets it to be the PP parent.
This works pretty well except that I can't control that AP still has their [X] button available in the top left corner. Since this is a pretty obvious place for the user to close when they are done with the progr...