all groups > dotnet interop > november 2006 > threads for november 15 - 21, 2006
Filter by week: 1 2 3 4 5
proper way to call a COM DLL
Posted by Darren Mar-Elia at 11/21/2006 6:03:25 PM
All-
I have a .Net 2.0 WinForms app. It references a COM DLL provided by MS. The
app works just fine on my dev machine but when I create a setup for it, and
run the setup on another system, I get an exception when invoking the
functionality that calls the DLL. The exception indicates that the... more >>
NetRemoteTOD DllImport
Posted by Steven Edison at 11/21/2006 3:20:28 PM
In C++, what am I doing wrong here? not sure how to get the "ref" for
BufferPtr in C++, there are thousands of examples out there for C# and
VB.NET, but so few for managed C++.
[StructLayout(LayoutKind::Explicit, Size=48)]
ref class TIME_OF_DAY_INFO
{
public:
[FieldOffset(0)]
unsign... more >>
I have problem whis Windows Media Services 9 Series.
Posted by vera esaulova at 11/21/2006 12:00:00 AM
I have problem whis Windows Media Services 9 Series.
I have videostream, which will consist of two streams(512k/bit and
256k/bit).I need to allocate a stream 256k/bit. In SDK is written:
Supporting Multiple Bit Rate Files
Several versions of the same audio or video content can be stored in
... more >>
question about opening SQL results in Excel from ASP.NET via XML
Posted by Mad Scientist Jr at 11/17/2006 3:44:44 PM
>From an asp.net web page I want the user to open the results of a SQL
query in Excel, as automatically as possible (ie not having to loop
through columns, rows, in code).
For this, dataset.writexml works great
(got the code from
http://forums.devx.com/archive/index.php/t-57273.html )
The ... more >>
how mutch memory aspnet_wp.exe must use
Posted by ruca at 11/16/2006 11:31:43 AM
Hi gurus,
Can anyone tell me please when I really must setup the value of memory that
aspnet_wp or w3wp must use in IIS server machine?
What I mean is that we have clients that have diferent specificatiosn in
their server machines that have IIS to runnning WebApplications. This can
chang... more >>
Callbacks in C++, with managed delegates...
Posted by TT (Tom Tempelaere) at 11/16/2006 6:56:02 AM
Hi all,
I have a problem with the project I am working on. Someone is coding a
driver in plain (unmanaged) C++, and it is required to subscribe a callback
for certain notifications. This driver is supposed to be used from a managed
environment though, so what I want to do is subscribe a man... more >>
REGDB_E_CLASSNOTREG error when accessing frames collection of IHTMLDocument2 on Windows XP via interop
Posted by PhilC at 11/16/2006 12:28:03 AM
Hi,
I've written some code to attempt to get the selected text from an HTML
document loaded in a running instance of IE. I need to be able to
access the frames collection of the IHTMLDocument2 interface so that I
can get text from the documents contained in the frames.
Here's what I've got:... more >>
COMException (0x80040154): Class not registered
Posted by Mihai P at 11/15/2006 11:17:47 PM
Hello,
My application fail to start on another computer. The exception is
thrown trying to call "InitializeComponent()" as you can see below:
System.Runtime.InteropServices.COMException (0x80040154): Class not
registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Issue PInvoking GetTokenInformation using TokenElevation
Posted by Orlando at 11/15/2006 10:02:02 PM
Hi,
I need to reproduce the code here using C#/pinvoke:
http://blogs.msdn.com/cjacks/archive/2006/10/09/How-to-Determine-if-a-User-is-a-Member-of-the-Administrators-Group-with-UAC-Enabled-on-Windows-Vista.aspx
Unfortunately, my attempts aren't panning out - the returned values are off
fromw ... more >>
how to include the interop in my project
Posted by chintu at 11/15/2006 7:58:15 PM
in my windows application my re is to include in an project
... more >>
byte size packing in compact framework
Posted by Andrew at 11/15/2006 6:14:02 PM
If there is a better NG for compact framework interop then please let me know.
I am having a few issues marshalling structs to unmanaged memory whilst
trying to acheive the correct layout. Its a shame that the Pack parameter is
not supported in the compact framework.
I have a simple struct... more >>
ServicedComponent : IObjectControl::Deactivate()
Posted by Arif Khan at 11/15/2006 2:33:02 PM
I am getting folllowing error in one of the service components. I have not
override base class's (ServicedComponent ) Deactivate function. Also it's
library component called by asp.net worker process and I have not changed the
default object pool settings. Please advise.
Event Type: Error
... more >>
casting between interop imported COM interfaces
Posted by Kyle at 11/15/2006 9:35:36 AM
I am new to using .Net interop to access legacy COM server. I keep
getting a cast exception when I try to cast between imported
interfaces. Here is and example of what I am trying to do and how I
thought it was suppose to be done (ie I thought interop import dll
would handle casting between int... more >>
Does Marshal.GetTypedObjectForIUnknown add reference count to the COM object?
Posted by dotNeter at 11/15/2006 3:53:43 AM
Obj = Marshal::GetTypedObjectForIUnknown(pIUnknown, pTargetType); //
pTargetType is certain interface type
Did GetTypedObjectForIUnknown use QueryInterface to query the desired
interface?
My intent is using GetTypedObjectForIUnknown to test 2 interfaces can
inter-casting.
If succeed, wi... more >>
|