all groups > dotnet interop > august 2006 > threads for august 8 - 14, 2006
Filter by week: 1 2 3 4 5
Calling managed code from unmanaged code not using COM?
Posted by Bjarnek at 8/14/2006 3:55:33 AM
Hi
I have a program not written in .net (Clarion), and I want to call
functions written .net (C#) from this program.
I know that I can use COM technology to do that. But I want to know if
there is another way to do this with out using COM?
bjarne
... more >>
Oulook Addin in C# / VS2003 Crashes before Getting to IDTExtensibility2 interface
Posted by TCook at 8/12/2006 11:32:39 AM
Hey All,
I have a C# / VS2003 Outlook Addin that used to run fine. I now have both
the 1.1 and 2.0 Frameworks installed on my machine. In a file located in
the Outlook.exe folder, I have a file named "Outlook.exe.config" with the
following in it:
<configuration>
<startup>
<s... more >>
Help! ... VS2005 Error with Outlook AddIn when Using Redemption
Posted by TCook at 8/12/2006 9:49:25 AM
Hey All,
I am trying to use the Redemption library within a VS2005 Outlook addin
solution. I have used the same approach within VS2003 without incident.
When trying to create a SafeMailItem object, I receive the following error
message:
"Retrieving the COM class factory for component wi... more >>
Lifetime of object created in C# used in unmanaged C++
Posted by stevil1234 NO[at]SPAM comcast.net at 8/11/2006 1:49:33 PM
Hoping someone can answer the questions in the comments below. I'm
wondering how lifetime and ownership is typically handled between an
unmanged C++ exe that uses a set of COM classes created from a C#
assembly.
// unmanaged C++ exe
#import <mscorlib.tlb> rename("ReportEvent", "Report_Even... more >>
Getting a date from a cell ( C# )
Posted by Shea Martin at 8/11/2006 12:05:22 PM
I am reading data in from an XLS file use Excel interop. I currently
get cell data like this:
lRange = lSheet.get_Range( lTopLeftCellName, lBotRightCellName );
Object[,] lValues = (Object[,])lRange.Value2;
The problem is that columns which contain dates (formatted as m/d/y)
come across ... more >>
Returning COM Interface from Unmanaged DLL Function via PInvoke
Posted by jorfei at 8/11/2006 2:54:02 AM
What is the marshaling behavior for a COM interface returned with an output
parameter from a function in an unmanaged DLL called via the Platform Invoke?
An example of this is the function
HRESULT CoGetMalloc(DWORD dwMemContext, LPMALLOC * ppMalloc);
or its declaration in C#
[System.Run... more >>
Using PInvoke to import unmanaged C++ class library to C# app
Posted by Hank at 8/10/2006 3:59:04 PM
Hi expert,
I am writing a C# app which will access a 3rd party unmanaged C++ class
library. the library contains one class with constructor, destructor and
many methods. I search through the web find people talking about DllImport C
type function, that's easy, you just do following:
[DllImpo... more >>
vb6 nt service dot net interop error 429
Posted by stevenb at 8/10/2006 9:20:59 AM
Greetings...
I currently have a vb6 application running as an NT service. I am
referencing a dot net dll and all works fine if I run the vb6
application as a normal executable. As soon as I try to run it as a
service, I get runtime error 429 activex component cannot create
object.
The me... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
structure size calculation problem
Posted by ps at 8/10/2006 7:36:02 AM
Hi all,
I'm trying to make a pinvoke call to a legacy c dll. One method has a
structure as input.
The managed structure looks like this:
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct Info
{
public Version cryptokiVersion;
[MarshalAs(UnmanagedType.ByValTStr, S... more >>
AccessViolationException openning Excel WorkBook
Posted by hSiplu at 8/9/2006 1:41:18 AM
hi,
can anyone tell me why the folowing statement throws an
AccessViolationException ?
my developing pc is WinXP Pro with MSOffice2003 and the release version
runs on Windows 2000 Pro with Office2000 while my client can't change
his configuration. The Debug version does not throw the except... more >>
COM Surrogate error
Posted by Sean at 8/8/2006 5:19:28 PM
HI,
We have a WinForms App written in C#. It's all 100% manged code. This app
monitor 4 Windows services that uses MSMQ to get and send messages from
another WinForms App.
One of the services interact with a CD printer API; Another is dowloading
files from a server using HTTP; and another is... more >>
tlbimp problem
Posted by Gareth Lambert at 8/8/2006 3:32:42 AM
Hi,
First of all, I am new to VB.net and programming in general. So my
apologies if I don't explain myself clearly.
I am trying to use a DLL within my code. It is not activeX so I can't
add it as a reference. I believe that I must run it through tlbimp.exe
and then declare it from my code. Wh... more >>
Server fails (80080005) when running client in debug mode
Posted by Anders Eriksson at 8/8/2006 12:00:00 AM
Hello!
I have an COM Server which I Automate using a C# client.
When I run the client in Release mode then it starts but if I switch to
Debug then the server will not start and I get this error:
"Retrieving the COM class factory for component with CLSID
{DE821291-EB26-11D5-B6A6-0048545CA8... more >>
|