all groups > dotnet interop > september 2006 > threads for september 1 - 7, 2006
Filter by week: 1 2 3 4 5
GetFunctionPointerForDelegate and cdecl
Posted by Christian_Fröschlin at 9/7/2006 12:00:00 AM
I noticed that the documentation for GetFunctionPointerForDelegate
states that "The delegate d is converted to a function pointer
that can be passed to unmanaged code using the __stdcall
calling convention."
I would have expected that method to honour the
UnmanagedFunctionPointer attribute ... more >>
windowless richedit (ITextServices)
Posted by Jeff Boeker at 9/6/2006 6:03:02 PM
Hello,
I'm trying to use the windowless RTF interface provided by ITextServices as
I cannot find any other standard method for dealing with RTF in C#. Can
someone please point me to an example or let me know how I can access this
interface using C#?
Thanks,
Jeff... more >>
Cannot compile: Could not load file or assembly, The system cannot find the file specified
Posted by Monty at 9/6/2006 1:12:26 PM
I have a VS2005 VB.net project that references some COM libraries. I had a
reference to Interop Assembly I'd created using TlbImp on a COM TypeLib, but
I have since removed ~all~ references to this assembly in the code and in
the project references. When I attempt to build my project, I get th... more >>
does polymorphism work in COM?
Posted by gk at 9/6/2006 12:00:00 AM
-- begin code --
// strongly typed list of base class
List<Base> MyList = new List<Base>();
//the method i want to expose to a COM scripting client, which returns
MyList elements by index (because COM doesn't support generic lists)
Base Get(int index) {}
-- end code --
The "Base" class h... more >>
Linker-Error: LNK2028 when calling a native function from managed wrapper
Posted by Ralf at 9/4/2006 10:35:04 PM
Hi,
I want to call a (static) native function "DeleteInstance".
These methods looks like in the header-file:
static void DeleteInstance();
and in the cpp-file:
void CMessenger::DeleteInstance()
{
if (mpMessenger)
{
delete mpMessenger;
mpMessenger = NULL;
}
}
But I on... more >>
why is this simple dllimport not working?
Posted by troy NO[at]SPAM makaro.com at 9/4/2006 2:17:07 PM
Hi, I'm new to using dllimport. I'm getting the following error:
System.EntryPointNotFoundException.
Here is my code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace DialogicTest
{
class Program
{
... more >>
SuppressUnmanagedCodeSecurity in .NET 1.x runtime?
Posted by Christian_Fröschlin at 9/1/2006 6:38:09 PM
I have an assembly which calls a native method marked with the
SuppressUnmanagedCodeSecurity attribute (the security implications
of which are not the intended topic of this post). The assembly is
compiled using .NET 1.0 but intended to be used from client
applications running on arbitrary .NET ... more >>
Can't access COBOL DLL from C# program
Posted by Parrot at 9/1/2006 3:10:02 PM
I cannot get my C# program to access a DLL program written in COBOL. I use
the following code to represent the program:
[DllImport("readmf.dll")]
public static extern void CYREAD(string linkfile, linkdata ld);
I use the following statement
CYREAD(linkfile, ld)
and it said that the program ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Marshal an Array
Posted by MLM450 NO[at]SPAM hotmail.com at 9/1/2006 6:45:37 AM
I am attempting to pass an array of objects to an unmanaged DLL
function as an array of structures. The array is used as input and
output. I think I am getting the data to the DLL, but I do not get
modified data back from it (I am certain the returned values should be
different). I tried adding ... more >>
excel interoperability
Posted by zina at 9/1/2006 4:04:40 AM
hi,
i have already exported a datagrid to an excel workbook on button
click. what i need to do now is that on every subsequent button click i
need to add a sheet to the existing workbook. so all the reports
represented as datagrids are stored into one excel file.this is true of
other forms in... more >>
Debugging .NET code called as COM module from unmanaged c++ code?
Posted by Jan Obrestad at 9/1/2006 12:00:00 AM
Hello.
I'm working on a project where the main application is written in
unmanaged c++ (VC6), but the module I'm working on is written in c# and
exposed as a com object.
I have some trouble debugging the .NET part. When I try to attach to the
process, I get this error message: 'Unable to a... more >>
|