Cannot convert from 'out int[]' to 'int*'
Fri, 20 Jun 2008 12:33:29 -0700 (PDT)
I have an old unmanaged C function that needs to take an array of
long:
long oldCFunction(long * array, int arraySize);
There is a C++ CLI layer between the C# and the oldCFunction. How do
I prototype the C++ CLI code to take an an int[] and pass it into this
oldCFunction()? ...
|
Re: Enumeration in com interop
Thu, 19 Jun 2008 21:43:01 -0700
Hi ,
I want to know hot to register managed COM interop in winodws CE as COM
object.
I have Dll , whicis having inetrface and class like this.
namespace MagnumDevApp
{
[ComVisible(true)]
[Guid("C68CAF28-0DE2-4baf-BBD3-9066B8D7B3AF")]
[InterfaceType(ComInterfaceType.Interface ...
|
Simulating RegFree COM via CoRegisterClassObject
Thu, 19 Jun 2008 22:32:19 +0200
Hello,
I have a large .NET application (150 assemblies) which uses a very large set of existing VB6 COM Dlls (100 of them).
In order to make installation as smooth as possible, I manually load the COM DLLs and call DLLGetClassObject on them to get iClassFactory, obviating the need to register them.
This is fine fo ...
|
msproject and interoperability
Wed, 18 Jun 2008 21:02:01 -0700
I have this asp.net application and using the msproject interop.
When there are concurrent users and when I attempt
ApplicationClass appSampleProject = new ApplicationClass();
appSampleProject.FileOpen(...)
Project proSample = appSampleProject.ActiveProject;
read the file and display contents. by vall ...
|
returning a string from a C++ method to a calling C# program
Wed, 18 Jun 2008 08:25:39 -0400
I have a class in C++ and I am sure I have something declared wrong.
public ref class foobar
{
public:
String^ GetString()
{
return(gcnew String("null"));
}
}
Of course the real code is a little more complex, but not much.
This crashes the program in "release" mode, but works fine in
...
|
Returning a string from managed C++ to a calling C# program
Tue, 17 Jun 2008 17:30:22 -0400
I have a class in C++ and I am sure I have something declared wrong.
public ref class foobar
{
public:
String^ GetString()
{
return(gcnew String("null"));
}
}
Of course the real code is a little more complex, but not much.
This crashes the program in "release" mode, but works fine in
...
|
Proper way to return a string to C# from a C++ method. Manage code.
Wed, 18 Jun 2008 09:05:23 -0400
I have a class in C++ and I am sure I have something declared wrong.
public ref class foobar
{
public:
String^ GetString()
{
return(gcnew String("null"));
}
}
Of course the real code is a little more complex, but not much.
This crashes the program in "release" mode, but works fine in
...
|
|
|
Shell32.ShellClass().BrowseForFolder() throws COMException E_FAIL
Wed, 18 Jun 2008 13:34:41 -0700 (PDT)
On my Vista machine I've referenced the COM library "Microsoft Shell
Controls And Automation" (shell32.dll) in a C# Windows Forms project.
The form has one button that executes this one line of code:
object folder = new Shell32.ShellClass().BrowseForFolder(
this.Handle.ToInt32(),
"Select file or fo ...
|
FaxServer
Wed, 18 Jun 2008 09:09:06 -0500
Vista business
VS 2008 pro
I have recently began development on a new Vista laptop using VS 2008. I
have modified an old program originally created in VS 2005 pro that faxes
documents.
When I recompiled and copied the program to an SBS 2003 from where it is run
by the clients (TS or XP), the program fa ...
|
COM from VB.Net problem "Property evaluation failed"
Tue, 17 Jun 2008 17:51:13 -0700 (PDT)
Hi.
I've successfully used methods in VB6 COM dlls before from a VB.Net
class library but I'm having grief with a DLL I've never used before.
After creating a new instance of the COM class with "Dim myCom As New
XXX.xClass" (which takes a while to execute), I'm putting a quick
watch on the myCom object and ...
|