all groups > dotnet interop > january 2005 > threads for january 8 - 14, 2005
Filter by week: 1 2 3 4 5
Calling a Fortran DLL from .NET application
Posted by mallik at 1/14/2005 7:53:25 PM
I've(inherited) a DLL that's built using Fortran(I was told that it's =
built using Fortran).=20
When I tried to reference it in a .NET project it(VS.NET) gives an error =
message saying that "It's not a valid COM component".
Is there any way to use(call) this DLL from a .NET Application ?
... more >>
Determing version of COM component from C#
Posted by Kapil Sachdeva at 1/14/2005 1:52:56 PM
I have a situation that I need to determine if a particular version of com
component is present on user's machine from .NET.
In COM I would invoke CoCreateInstance(CLSID_MyComponent2_0) and if this
returns an HRESULT with REGDB_E_CLASSNOTREG I would know that this class is
not registered.
... more >>
Possible to Marshal param array to unmanged code?
Posted by Jason Cartwright at 1/14/2005 1:02:04 PM
I have the following callback signature and the delegate I am using for
the function pointer:
//C++ Callback Signature:
void(*pErrorHandler)(acTErrorMsgType ErrorMsgType, acTErrorCode
ErrorCode, acTBoardHandle BoardHandle, acTChannelHandle ChannelHandle,
const char *Format, ...);
//C# dele... more >>
Running Exchange MAnaged Events sinks without Visual Studio Instal
Posted by martinwlarsen NO[at]SPAM online.nospam at 1/14/2005 9:03:02 AM
I have developed a Exchange 2003 Managed Async sink using the Onsave event.
My problem is that I cannot get the sink to run correctly without Microsoft
visual studio 2003 installed on the Exchange server.
What happens is that the sink is executing as expected without VS 2003 if I
do not ope... more >>
COM dll talking to .NET executable - it can't be like this!
Posted by emma_middlebrook NO[at]SPAM fastmail.fm at 1/14/2005 3:27:58 AM
Hi
OK. It seems one is prevented from automatically 'registering for COM
interop' in the Configuration Properties if it's an .EXE project.
Tlbexp works and creates a .tlb but examining it with OLE viewer, the
publicly exposed .NET classes map to IDispatch interfaces with no
properties or meth... more >>
VB6 / .NET Interop Question
Posted by Adam Jones at 1/13/2005 4:54:38 PM
I'm currently working on a .NET client that needs to access
functionality in VB6 code. We had the system working, but then we were
asked to change some of the functionality in the VB6 project. We set
the project for binary compatibility and made the change. The
interface for the VB6 class rem... more >>
Nasty COM Interop Problem
Posted by Sebastien Lange at 1/13/2005 3:50:28 PM
Hi,
I'm having a very weird problem with a wrapper I made around a com
object. While creating the wrapper I was testing it by means of a button
on a test form, and the COM wrapper worked just fine.
It was actually meant to be used in a multi-threaded environment. Now,
the library still w... more >>
Explorer Context menu in my ListView (newbie)
Posted by Marcel Hug at 1/13/2005 1:39:59 PM
Hi NG !
I'm not shure if i'm in the right NG but I'm desperate because don't finding
help! So i try it here.
I have a little c# - application in which i showns some files in a listview.
Now i would like to get the Windows Explorer Context Menu, if i press the
right mouse button on a file.
I ha... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Marshalling problem (only first element of array)
Posted by dmorenos NO[at]SPAM gmail.com at 1/13/2005 1:04:25 PM
I have this c function
GetR(
OUT ppp ** ppr,
OUT int * pn
)
with this strcuture
typedef struct ppp {
}ppp;
I marshalled like this:
[DllImport("NetApi.dll")]
public static extern int GetR(
[In,Out, MarshalAs(UnmanagedType.LPArray,SizeConst=256)]
IntPtr[] ppr,
out IntPtr pn... more >>
Keyboard Scan Code Capture?
Posted by chewie at 1/13/2005 11:17:02 AM
Does anyone know how to capture keyboard scan codes using C#? Thanks... more >>
(0x80040154): Class not registered
Posted by Hagus at 1/12/2005 11:15:02 AM
I'm hoping that someone could point me to the cause of this problem and
suggest a solution.
I have a C# program that dies with the following:
System.Runtime.InteropServices.COMException (0x80040154): Class not registered
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at S... more >>
Marshalling pointer to pointer to interface
Posted by Nauman at 1/12/2005 9:38:10 AM
I would like to call a method in an unmanaged C dll from C# using
VS2003. However, I haven't been able to
successfully do this so far. I am hoping that someone can help me get
this working.
The method signature for the C function is:
HRESULT __stdcall FuncFromCDll(ISomeInterface** ppISomeInte... more >>
Passing a Recordset from VB6 to VB.Net (QueryInterface failed.)
Posted by adam at 1/12/2005 8:49:03 AM
I am getting an error when trying to use an ADODB.Recordset that was passed
from a VB6 application to a VB.Net class library using COM Interop. I am
running this on WinXP SP2 using the .Net Framework 1.1 and MDAC 2.8 SP1.
This is what I've done:
- I compiled the VB.Net DLL and registered it... more >>
Passing an ADODB.Recordset from VB6 to VB.Net (QueryInterface fail
Posted by adam at 1/12/2005 8:19:06 AM
I am getting an error when trying to use an ADODB.Recordset that was passed
from a VB6 application to a VB.Net class library using COM Interop. I am
running this on WinXP SP2 using the .Net Framework 1.1 and MDAC 2.8 SP1.
This is what I've done:
- I compiled the VB.Net DLL and registered it... more >>
Interop Threading Weirdness - Axshdocvw
Posted by Beano at 1/12/2005 6:25:17 AM
I have a process that starts starts a windows form .dll on a new
thread. The class gets instantiated, and then the StartNavigation()
method is called. The StartNavigation method runs the
AxSHDocVw.AxWebBrowser Navigate method. As soon as the navigate method
finishes running, the window closes... more >>
RegisterAssembly does not add typelib entry in registry
Posted by jjkboswell NO[at]SPAM yahoo.com at 1/11/2005 9:49:04 AM
I have an assembly which I want to use from COM. My project's build
has a step to register for COM interop, and if I use COM/OLE Object
Viewer I can see my type library.
But, I want windows installer to do the registering. So I have put an
Installer class in my project and a customaction in ... more >>
Writing a Collection Accessible to JScript
Posted by Mark Fishpool at 1/11/2005 6:57:09 AM
Hi,
I am writing COM interfaces for some C# classes so that they can be accessed
from JScript in Internet Explorer and need to write a collection that my
existing JScript can easily call.
I need to implement the length property, indexer [] and support the (for xx
in xx) construct.
I'... more >>
SQLMERGX, REPLERRX unable to get error messages
Posted by Andreas Pircher at 1/10/2005 1:33:03 AM
I use SQL Server Merge Replication in a C# Smart Client. Everything works
quite well until I try to get the information about occured errors.
First I tried to do it like every sample in the web does. I accessed the
ErrorRecords property of the merge control, checked the Count property of
th... more >>
C# access to C DLL
Posted by _BNC at 1/9/2005 9:50:59 PM
Here's the breakdown:
I have an old C DLL that I want to access via C#.
I'm doing this via an outer DLL that wraps the old C DLL in an unmanaged
C++ class, which is in turn wrapped in a Managed C++ class. Both these
unmanaged C++ and managed C++ classes are compiled into a single assembly
... more >>
|