all groups > dotnet interop > november 2006 > threads for november 8 - 14, 2006
Filter by week: 1 2 3 4 5
Enumeration in com interop
Posted by Kim at 11/14/2006 12:45:02 PM
Hi,
I have a .net class library which I want to expose to VB6. There is a public
enumeration in the .net namespace, and after com type library is created from
the .net dll, the enumeration elements end up having a prefix with the enum
name. I would like to know how to make the type library no... more >>
Com Interop
Posted by Nick Thompson at 11/14/2006 9:42:01 AM
I have created an invisible OCX control using MFC8.0 (to be loaded by WW
intouch)
I would like to call a .NET2 remoting method from this OCX and realise that
I MUST
not do it directly, VS displays CLR stability warning when I tried running
the control having compiled it with /CLR set
Is... more >>
deploying .net COM
Posted by James at 11/13/2006 11:44:37 AM
I have written a .NET (c#) COM object, which works great, however it is now
time to deploy it. If I copy the file to a target machine and run regasm on
it, all is great. If I deploy the application (using Installshield 11) all
is not great.
I realzie this may be a hybrid discussion for this... more >>
Using IntPtr for registry key constants
Posted by Sankalp at 11/12/2006 10:26:02 PM
Hello,
Am porting COM component(used by a VC++ app) to dotnet. Apparently, this
needs to be called by the existing app.
The existing signature in COM
HRESULT ReadRegStr(DWORD hKey, BSTR bstrSubKey, BSTR bstrValueName, BSTR*
pbstrResult);
..NET signature:
public string ReadRegStr(Int32 ... more >>
How to use ICustomMarshaler
Posted by MoriCristian at 11/11/2006 11:33:02 AM
Hi all.
I'm trying to write a simple custom marshaller.
public class MyFirstMarshaller : ICustomMarshaler
{
public static ICustomMarshaler GetInstance(string Cookie)
{
return(new MyFirstMarshaller());
}
public void CleanUpManagedData(ob... more >>
Excel Automation
Posted by Kaustav at 11/11/2006 5:36:01 AM
Hi,
I am facing a peculiar problem with Excel Automation. I have a winform where
in I display some data in OWC axSpreadsheet. Next I export this data to an
..xls file. When I try to open (through OleDb) and read this file, I get an
error -
"External table is not in the expected format." ... more >>
VB.Net XML Comments and Intellisense for COM?
Posted by TCook at 11/10/2006 12:29:22 AM
Hey All,
I have added my XML comments to my VB.Net solution and from within VS2005
they show up quite nicely in the Object Browser, etc.
However, when the class library is referenced from a COM app, the procedure
attributes do not show up.
Is there a way to fix this?
Thanks,
TC
... more >>
How to dected if file is used by another process
Posted by Marek Suski at 11/10/2006 12:00:00 AM
Hi,
I am looking for a fast Win32 code solution for detecting if file is used by
another process (aka locked). Right now I am using following code but it
throws errors that I catch. Is there something faster and cleaner?
/// <summary>
/// Determines whether [is file locked] [the specified... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Marshalling VB6 Type
Posted by Philipp Brune at 11/9/2006 6:36:09 PM
Hello newsgroup,
i have the following problem and i hope someone is able to either tell
me how to solve it or to tell me that it is even not possible :
Given an VB6 ActiveX DLL (Common.dll) that defines the following public
type
Public Type T_DEMO
ID As Integer
Value as String
En... more >>
c# interop webservice
Posted by Berger at 11/9/2006 4:58:33 PM
Hello
I have a c# console application who generate a new excel file vie Interop.
All works fine.
Now I want to move the code in a c# webservice. When I try to build an
instance of the excel object I got an Access Denied exception. I think it is
a security config problem. But I don´t know ho... more >>
Extract Interop file from DLL by VB.NET code
Posted by Carmine Cairo at 11/9/2006 4:02:03 AM
Hi all,
I'm newbie on this NG.
I have a basic question for the expert programmers.
I use VB .NET by 3 months about.
When I want use a factory COM dll in my program normally I follow this
steps in Microsoft Visual Basic .NET Development environment:
1) Add Reference ...
2) Browse for the c... more >>
Using IntPtr help
Posted by Andre Azevedo at 11/8/2006 9:20:24 PM
Hi all,
I need to call an unmanaged function that accepts a void* parameter.
To call the function I use an IntPtr object using Marshal.AllocHGlobal:
[DllImport ...]
public static extern int ExampleFunction(IntPtr p, ref int size);
....
int size = 0;
IntPtr p = Marshal.AllocHGlobal(512);
... more >>
Marshalling **IUnknown
Posted by Sean McGinnis at 11/8/2006 9:45:49 AM
Does anyone know the correct way to marshal the second parameter based
on this definition?
HRESULT Next(
[in] ULONG celt,
[out, size_is(celt), length_is(*pcFetched)]
IUnknown **ppObjectArray,
[out] ULONG *pcFetched
);
Thanks for any help!... more >>
converting char* to string gives strange characters
Posted by Rob Tillie at 11/8/2006 12:16:01 AM
Hi,
I'm calling a method from a C dll which I have defined as follows:
[DllImport("avpzip.dll", EntryPoint="VERIFY_ZIP",
CharSet=CharSet.Ansi,
ExactSpelling=false,
CallingConvention=CallingConvention.StdCall)]
public static extern int Verif... more >>
|