all groups > dotnet interop > january 2007 > threads for january 8 - 14, 2007
Filter by week: 1 2 3 4 5
DnsRecordListFree
Posted by Michael M. at 1/14/2007 5:41:24 PM
Hi all,
I am using the API function DNS_Query(). I pass a null pointer to the
function, the function does it's magic and fills pointer with the address of
the first record.
I then read the data at this address into a structre
The structure has a member variable pNext that contains a po... more >>
Anyone gotten SHGetFolderLocation to work?
Posted by Ian Boyd at 1/13/2007 9:31:51 PM
Has anyone been able to get SHGetFolderLocation to work? i see plenty of
posts about people having problems with it, and one fellow saying it is not
possible to use under .NET.
For me it returns 0x80070057 "The parameter is incorrect"
using System;
using System.Runtime.InteropServices;
u... more >>
msoeapi typelib?
Posted by Vinz at 1/13/2007 12:11:36 AM
Hello folks,
After 1 evening of trying and reading a lot of (web)pages I have not
succeeded in creating a .tlb file (to use in a C# program) from my
msoeapi.idl file. Also I'm a bit
confused because some sources say MIDL.exe makes the type library and some
say TlbImp.exe creates it.
I tri... more >>
Need a method to send byte arrays from Unmanaged C DLL to VB.Net
Posted by Vince Castellano at 1/12/2007 3:55:55 PM
Hello,
I posted this to m.p.d.languages.vb, but was told this is a better
place to ask (and I worded my question poorly there, so I think I
miss-communicated my question).
What I need to do is send a parameter from VB.net to an Unmanaged C dll
call, and that parameter on the C side is a point... more >>
Automation add-in stopped working, please help.
Posted by aaronfude NO[at]SPAM gmail.com at 1/12/2007 5:35:22 AM
Hi,
I have written an automation add-in some time ago that merely adds a
few functions to Excel. It has always worked, but now it has stopped!
When used in a cell, I get "#NAME?". When called via VBA it says "The
macro 'sqr' cannot be found".
I have tried everything I could think of... Reco... more >>
COM interop multithreading problem : Unable to cast COM object of type 'System.__ComObject' to interface
Posted by ziphnor NO[at]SPAM gmail.com at 1/12/2007 4:27:49 AM
Hi,
I have a DirectShow filter which implements a COM interface called
IDVBSubtitle. It is defined like this on the C++ side (simplified
version used to debug of course, real interface has more methods :)
// C19647D5-A861-4845-97A6-EBD0A135D0BF
DEFINE_GUID(IID_IDVBSubtitle,
0xc19647d5, 0xa... more >>
Access protected members of a class from another class
Posted by Bumbala at 1/11/2007 7:09:01 AM
Hello,
I am working on a Windows Forms Control Library project which has some
unmanaged code in it. This library will be used in C# Windows
Application. Some of the managed classes have protected unmanaged class
members. They must be reached by other classes inside the Library, but
not outsid... more >>
Managed iphlpapi.dll-GetAdapters ??
Posted by Bragadiru at 1/10/2007 6:00:49 PM
Hi all,
I want to get the list of adapters for local computer. There is any managed
class ?
I used :
[DllImport("iphlpapi.dll", EntryPoint="GetAdaptersInfo", SetLastError=true)]
private static extern int InternalGetAdaptersInfo(IntPtr pIpAdapterInfo, ref
uint pulSize );
BUT, I have ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Activator.CreateInstance Question
Posted by Johnny R at 1/10/2007 5:46:52 PM
Hello,
I'm loading a Class from Assemly DLL using Activator.CreateInstance.
That loaded Class is executed in a worker Thread with no loop.
What actually happends when class is loaded using Activator.CreateInstance?
If I create same class using Activator.CreateInstance many times will
ther... more >>
Unable to cast COM object of type 'System.__ComObject' to class type 'mshtml.HTMLDocumentClass'
Posted by Nandan Dharwadker at 1/10/2007 1:44:27 PM
Hi,
I am trying to read the results of a web page and display them in a web
browser control.
I am using .NET framework 1.1, though the clients machine has framework
2.0 as well.
The following code
//before navigate event of the browser
private void axWebBrowser1_BeforeNavigate2(object s... more >>
CheckTokenMembership with Interop
Posted by Arkady Frenkel at 1/9/2007 6:38:49 PM
Hi, dears!
When I took example of using
CheckTokenMembership() from
http://msdn2.microsoft.com/en-us/library/aa376389.aspx
to check IsUserAdmin() that work great in C++, but when I call the
CheckTokenMembership() in
csharp for user without admin rights , it returned true opposite to c+... more >>
Look for loaded DLL
Posted by MLM450 NO[at]SPAM hotmail.com at 1/9/2007 6:56:09 AM
My C# control calls a function in an unmanaged DLL. I only want to call
the function if the DLL has already been loaded. The DLL has a function
used to initialize it and I do not have the data required for its
parameters.
Is there a way to tell if the DLL is already loaded?
... more >>
Unable to open excel file from Client
Posted by SK at 1/8/2007 11:23:00 PM
My Code (vb.net scripting)
objExcel = CreateObject("excel.application")
objBook = objExcel.Workbooks.open([filename])
i have the issues as stated below when the code reaches the
objExcel.Workbooks.open([filename]). The server is running under Active
Directory too.
Error :
System.Runti... more >>
manifest vs com dll-linking
Posted by Anonymous at 1/8/2007 12:06:24 PM
I have this case:
App1:
app1.exe
complugin_ver1.dll
App2:
app2.exe
complugin_ver2.dll
app1.exe and app2.exe are .net (managed) programs.
Both apps have manifests including it's dll.
The dlls are COM-dlls with the same guid, and registered to
complugin_ver1.dll.
Question1:
W... more >>
How can I use C++ Lib file into dot net
Posted by Umeshnath at 1/8/2007 1:13:01 AM
I have a library file (.lib) which was developed in c++, I need to use this
lib file into .net
Can I convert the lib file into dll or is there any way to use this lib in
..net?
... more >>
C++ COM object calling C# delegate callback causes crash
Posted by ziphnor NO[at]SPAM gmail.com at 1/8/2007 12:38:06 AM
I have a a custom COM object written in C++ which i need to give a
callback function from C#.
I have it setup passing a delegate to the native code. However, when
the native code calls the callback function the application crashes.
The COM objects interface is declared in C++ as:
DEFINE_GUI... more >>
|