all groups > dotnet interop > january 2005 > threads for january 15 - 21, 2005
Filter by week: 1 2 3 4 5
Win32 dll from C#
Posted by Ricci Hammond at 1/21/2005 7:31:30 PM
I have the header file for an old dll I need to use from C# :
#define API_NAME_SIZE 30
#define API_COMMENT_SIZE 30
typedef struct
{
unsigned long a_reference;
char state;
char name[API_NAME_SIZE+1];
char comment[API_COMMENT_SIZE+1];
} api_a_info_type;
typedef struct
{
... more >>
Signing an interop assembly
Posted by Friedrich Fröhn at 1/21/2005 6:51:34 PM
Hi!
I want to add a strong name to my class library
which depends on a COM Component, for which
the interop DLL is automatic build.
But the compiler always yells "Referenced assembly does not have a strong
name"
How, can I sign this automatic build interop dll ?
Johnny
... more >>
Using UCOMIStream
Posted by Chris Puncher at 1/21/2005 2:17:31 PM
I need to be able to pass streams across the Interop boundary. Using the
article http://support.microsoft.com/default.aspx?scid=kb;en-us;321695 I can
call into and ATL COM object that has a method
STDMETHODIMP CSimpleObj::GetUnmanagedData(IStream** ppData)
from .NET using the following C... more >>
how to stop the "password protected" dialog box
Posted by Andy Fish at 1/21/2005 11:11:58 AM
Hi,
I am automating ms word 2003 through .Net office interop, and my app is
running on an unattended server.
If I try to open a password protected document, word pops up a dialog box
asking for the password. Obviously since the machine is unattended, there is
nobody to press cancel, so m... more >>
Union of structs - TypeLoadException
Posted by Jason Cartwright at 1/21/2005 9:26:05 AM
I have a union of structs that is returned from an unmanged C++ API.
Everything works fine until I add a specific type of struct
[EvEndBitInfo] as a member of the union. I know you can't mix value and
reference types in the same union, but I don't see the conflict because
I believe all members o... more >>
Issues with making calls to an MFC dll from c#
Posted by stu at 1/21/2005 8:13:41 AM
First I want to check and make sure that I can call non-system dlls and
MFC dlls at that.
Assuming that I can, I've been getting an EntryPointNotFound exception
for the follow code:
C# calling code...
[DllImport("pptcontroller.dll")]
public static extern int PPT_Start(string PPTFileName);
... more >>
Native Com to .Net not releasing the dll
Posted by Travis Rogers via DotNetMonster.com at 1/20/2005 10:52:38 PM
We have an application written in VC++ 6 which uses late com binding to execute methods in dll's dynamically based upon registration information in a database. This app is affectionately know as "the engine".
We are moving to .net and at this time don't want to rewrite the engine; however, we wa... more >>
How to test if Microsoft Excel is installed?
Posted by Mansi at 1/20/2005 9:09:01 PM
I'm trying to automate excel from visual c#. One thing I need to be able to
test is if excel is even installed on the target machine and what version of
excel is installed on the target machine. Is there a way to do this via c#
code?
Thanks.
Mansi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Debugging question
Posted by Daryn Kiely at 1/20/2005 5:23:02 PM
Hi,
I have an unmanaged DLL that I have written a managed wrapper around,
however I am getting intermitent crashes where it seems like the heap has
been corrupted. My theory is that a garbage collection has moved something
that I didn't expect to be moved. I have scoured the code and have... more >>
Exchange OnSyncSave Event in C#
Posted by David A. Coursey at 1/20/2005 9:01:02 AM
I am making an event sink that will recieve the mail object, process it, and
then delete it. Is my understanding correct that the OnSyncSave event
happens in memory before there is any disk activity? I would really like to
avoid disk access if possible.
Thanks
dave... more >>
COMException in VB.Net Windows Service
Posted by Frank at 1/19/2005 9:37:04 PM
Hi All,
Am having a problem trying to receive events from a COM object when the
VB.Net program is running as a Windows Service. The same code works fine
when running as a Windows Forms app.
I can create an instance of the COM object, call methods and set properties,
but when I call the m... more >>
custom IOleUndoManager crashing
Posted by dom NO[at]SPAM doesntexist.com at 1/19/2005 8:33:09 PM
Hi i have an application hosting webbrowser control in design mode. I also
wrote a custom OleUndoManger. My problem is if I move or resize a html
element the application crashes. With NullPointerException.
Can anybody check if the definition is correct?
TIA dom
Please respond on
d... more >>
Serailize RCW class OR IPersistStream call to RCW class question
Posted by Chris Puncher at 1/19/2005 4:58:51 PM
Hi.
I have a RCW class that was generated by the VS.NET2003 IDE when I added a
COM dll reference to my project. This all works fine when I call methods on
it. My initial problem is that in ASP.NET I would like to add this to the
Session object whilst using SQLServer as the session storage. Unf... more >>
Where/how is the COM DLL Registered when deploying a RCW to the GA
Posted by Chris Lane at 1/19/2005 2:21:02 PM
Hi,
I want to deploy an RCW to the GAC, my question is if I create a Windows
Installer to deploy this RCW to the GAC, do I also have to register the COM
..dll using the installer? How would I do this? Does anybody know of any good
examples of creating a windows installer to do some or all o... more >>
2 .NET classes in a COM Assembly
Posted by YuriL at 1/19/2005 1:17:37 PM
Hi,
I have a .NET assembly that I am trying to register as a COM dll. The
problem that I am faced with, is that this assembly has two classes, one of
which is a Windows Form. As of now, I have a ComRegisterFunction in both of
the classes, but I am getting a "DLLRegisterServer entry point wa... more >>
Marshalling nested structs and arrays
Posted by David Moreno at 1/19/2005 12:12:47 PM
Nedd help with marshaling:
have this struct in C:
typedef struct OB{
unsigned char bC;
unsigned char bR;
unsigned short wC;
VARBLK(MAX_SIZE) Im;
VARBLK(MAX_SIZE) Te;
} OB;
With VARBLK defined like this:
typedef struct tagVARBLKHDR {
int iSiz... more >>
Call C# function from unmanaged C++
Posted by uMasterChief at 1/19/2005 10:43:44 AM
I have a C# class and an unmanaged C++ class. I want them to
communicate with each other. (through function calls).
To achieve this, I create a managed C++ Wrapper class that takes a
delegate from the C# class, and try to convert it to a pure C++
function pointer, so that the Unmanaged C++ cla... more >>
VARBLK
Posted by David Moreno at 1/19/2005 9:35:22 AM
I have a c struct like this:
typedef struct OB{
unsigned char bCamNum;
unsigned char bResolution;
unsigned short wCRC;
VARBLK(MAX_SIZE) Im;
VARBLK(MAX_SIZE) Te;
} OB;
It comes from a callback that just works fine, but at the moment of
inspecting it, in says "This type can not be ma... more >>
Add-In Class For Excel
Posted by Luis Simões at 1/19/2005 2:53:05 AM
Hi,
I have created a dll with some functions to use in excel, but after i
compile the code and try to use it in excel it gives me an error like it
could not find the file "mscoree.dll" who can i overdue this error? And why
does it show mscoree.dll and not my dll file name?
Best Regards,
... more >>
Help with array of pointers marshalling
Posted by dmorenos NO[at]SPAM gmail.com at 1/18/2005 1:57:13 PM
I have a function in C that returns an array of pointers in a parameter
:
NAGR(
OUT OB_R ** pprResources,
OUT int * pnNumResources
)
No matter how I marshall it, i only get the first element of an array
of 6. I get the first element quite well with all its data correct, but
my array of p... more >>
DCOM Identity changes
Posted by Eric Livingston at 1/18/2005 1:05:02 PM
Need to be able to set the password for the account used by a given DCOM
object. What options do I have here? I don't suppose any of the native API
functionality for this has been wrapped in .NET yet?
To be clear on what I'm trying to change, if you run dcomcnfg and view an
application's ... more >>
Problem in Shared Add-in ( For Gurus )
Posted by Luis Simões at 1/18/2005 10:37:05 AM
I am developing a component that i needed to receive formulas requests from
excel.
Lets suppose i have a function in a shared add-in dll using PIAs from Office
2003 and when i am using excel and insert a formula like
"=formula1(arg1,arg2) matching a formula in my add-in it will execute and ... more >>
Excel won't die after interop
Posted by md2k at 1/18/2005 2:10:07 AM
Hi all
I wonder if someone can help me. I have a VB.net app which does bits
and pieces with an excel sheet (opens it and reads some cells). I am
having problems getting the excel app to quit unless I actually close
my application.
I've read through a number of the threads through Google, ... more >>
COM Interop & .NET Assembly Location
Posted by Tyler at 1/17/2005 8:51:14 AM
I have experienced a problem similar to that of a topic previously covered
in this group - 'Regasm.exe Interop problem'. However, I would like to try
to go a little deeper so that I better understand what is happening.
As in the 'Regasm.exe Interop problem', when attempting to use my C#
compo... more >>
Confuse about component
Posted by mon at 1/16/2005 11:29:01 PM
i'm new to .net.i want to create component. how to i do it? moreover,i doubt
that Dll is the component,right? if i create the component,what standard is
it base on?
... more >>
COM Interop and Remoting
Posted by Rick Strahl [MVP] at 1/15/2005 7:30:05 PM
Hi all,
I'm trying to create COM wrapper around a class that needs to use remoting
to perform its tasks, so that I can unload the AppDomain after it's done.
I've build the code to create the AppDomain and load the MarshalByRef object
into the other domain. All works well when running this co... more >>
Wrong COM version for Interop Assembly
Posted by Rick Strahl [MVP] at 1/15/2005 5:16:11 PM
HI all,
I have a COM Interop assembly I'm accessing through VB and VFP. I'm trying
to debug the thing in VS.NET and it turns out I can't because it's loading V
2.0 of the .NET framework. If I debug the component as soon as it is
accessed with the VS 2003 debugger attached VS closes the running... more >>
ShowBrowserBar failing
Posted by Dean Hallman at 1/15/2005 10:12:02 AM
I'm calling ShowBrowserBar to programmatically show or hide my own IE
InfoBand (IE side panel). In my app, the BHO and IE InfoBand are separate
COM objects in a single DLL. This function fails if this particular IE side
panel hasn't previously been displayed manually (by going to
View->E... more >>
Installing CCW Assembly on User Machines
Posted by Bill Strong at 1/15/2005 10:01:02 AM
Hi All,
I have a .NET component that is callable by a COM application that has
worked well, been distributed, for a couple years. The app used the typelib
import build into VS.NET that automagically created the Interop.* assembly.
Again this has worked as a private application where the .NE... more >>
|