all groups > dotnet interop > march 2006
Filter by week: 1 2 3 4 5
reference to *.dll vs *.tlb
Posted by Achim Domma at 3/31/2006 5:34:08 PM
Hi,
if I add a reference to a type library in a *.tlb file to my project, I
don't get a extra interop dll. If I add a reference to a *.dll
containing the type library and the com object, I get a interop dll.
Is there a way to compile all my code in one single dll, even when
referencing t... more >>
Windows API Constants
Posted by ME at 3/31/2006 2:51:16 PM
Ok I have taken the plunge into the windows API. I want to be able to read
and write from notepad (just as a learning thing). I plan to use
SendMessage for at least setting the text (maybe I'm totally off in left
field on that), however I really do not know where to begin. It appears
that... more >>
Using server-side OCX control with ASP.Net Web Service
Posted by las NO[at]SPAM labapps.com at 3/31/2006 9:48:08 AM
(Originally posted to framework.aspnet.webservices, but I am casting a
larger net and trying again)
I am using a library supplied by a third-party vendor. Although the
library has no UI, the vendor supplies it as an .OCX control.
I need to utilize this library in an ASP.Net Web Service. My... more >>
system.reflection and COM objects
Posted by Doudou at 3/30/2006 11:43:59 PM
Hello,
First, I'm french so my english isn't very good.
I must import MsProject 2000 tasks into dataTable.
I would like to use "system.reflection" (or some thing like that) to
write generic code in order to call each property of COM MsProject Task
object.
But it seems that system.reflectio... more >>
COM+ Pooled Components not deactivated on Windows 2003
Posted by Dany at 3/30/2006 7:25:04 PM
I'm having problems with a COM+ Server Application written in C# .net 1.1. The Problem only occurs on Windows 2003.
I have implemented a COM+ Application containing a pooled COM+ Component. After accessing the COM+ Component using a ProgID the component isn't deactivated and stays in activated (=re... more >>
Memory couldn not be read vb6 interop
Posted by Jason Chrin at 3/30/2006 6:49:02 AM
Hello. I am develop a console application that needs to interact with a 3rd
party API that I believe was written in VB6. The program works fine and
executes as expected, but when my program exits, I get an error that memory
could not be read. I've searched around for the past few days with ... more >>
ADODB PIA problem
Posted by ogled at 3/30/2006 12:26:02 AM
Hi
I have a problem with VS not referencing ADODB as primary, but as
tlbimp in the project file. Suddenly I have Interop.ADODB instead of a
PIA. ADODB is referenced by a COM component included in the project. I
have the same adodbdll in assembly-cache as my colleague, but he get a
primary i g... more >>
COM made with VS2005 in Excel
Posted by Ruslan Popov at 3/29/2006 1:30:02 PM
Hi,
I'm having a problem accessing a COM component made with VS.Net 2005 from
Excel, apparently because Excel uses .Net 1 rather than 2. I can see with the
debugger which mscorlib it loads:
'EXCEL.EXE': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll', No symbols
load... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to define a .NET 2.0 UserControl to be hosted in IE?
Posted by Gary F. at 3/29/2006 11:44:00 AM
Ok, I know this is an old topic, but for me it's new. And with all
that's been written, I still have outstanding issues. I've been able to
get .NET controls to be hosted in IE and able to deal with the
dependent assembly and strong name issues. But I've not been able to
get Javascript to communi... more >>
Interop, Property Let vs. Set.... Default .NET .tlb build behavior
Posted by VB6 To .NET at 3/29/2006 9:20:19 AM
******************************************************************************************************
Problem: The problem we are having is in VB6 we defined many properties of
type Variant for the sole purpose of being able to store Null. These
properties are typically used to store databas... more >>
what if a third party provides closed source CCW ?
Posted by karthik.balaguru NO[at]SPAM lntinfotech.com at 3/29/2006 6:55:56 AM
Hi,
If a third party provides closed source CCW wrapper while installing
their software, then
can it be used by any kind of COM object to access the .NET dll APIs ?
Is it possible that the third party provides support for only VB6 COM
objects
and not for VC++ ?
If we are able to Access .N... more >>
Modifying Office VBA code using .NET
Posted by Laken at 3/28/2006 6:32:45 AM
Hello all,
I am trying to edit hard-coded VBA links in Access and Excel
applications. Is this possible using the .NET object model? If so,
have you guys got any good material/references you could point me
towards?
Thanks,
Laken
... more >>
Passing an array to a .Net COM object
Posted by Jeroen ter Hofstede at 3/28/2006 12:00:00 AM
The next wall we're hitting...
We have defined a COM object in C# .Net. We instantiate it from our main
application and call a particular method on it. We try to pass a buffer of
data to it which should not be interpreted. We define that method like
bool function (
u... more >>
how can i tell when a sound file has ended
Posted by Lee at 3/28/2006 12:00:00 AM
Hi,
I have an application that plays mp3 and wav files using ;-
QuartzTypeLib.FilgraphManager graphManager = new
QuartzTypeLib.FilgraphManager();
QuartzTypeLib.IMediaControl mc = (QuartzTypeLib.IMediaControl)graphManager;
mc.RenderFile(fileName);
mc.Run();
now the problem is I need to k... more >>
Key handling in local server object
Posted by Jeroen ter Hofstede at 3/27/2006 4:52:45 PM
From our main application we're creating a COM component, written in C#
under .Net, which in turn contains a web edit control. This control acts as
an editor, and we can enter text in it. If we run it as an in-process
component, all works as expected, but when running out-of -process as a
local ... more >>
XP SP2 breaks .NET .dll load via Server.CreateObject("scripting.fileSystemObject")
Posted by chsmith NO[at]SPAM speakeasy.net at 3/27/2006 6:22:47 AM
I'm calling a .net / c# .dll from .ASP via Server.CreateObject().
I regasm, gacutil /i and all runs fine on XP SP1 or older. SP2
registry subracts System (??) from the registry root nodes and .ASP
calling my .net dll breaks with Invalid class string to the browser.
I find that I can fix a... more >>
MC++ ... unable to compile my code correctly :-(
Posted by Chris at 3/27/2006 1:31:02 AM
I m new to MC++ and interoperability and I try to find a bug since a long
time without succes, maybe you can help me ?
(I can send you a "sample project" ... you can contact me at
cdemez2@hotmail.com)
I describe the problem:
I have 2 MS VC2003 projects... and have difference between bot... more >>
Obscure marshalling/pinvoke problem with 1, 2, 4, and 8 bytes structures
Posted by whodges at 3/26/2006 11:07:29 PM
Hey all:
I'm having *exactly* the same problem that Torbj=F8rn Vik described in
two of his posts titled "PInvoke failure" and "Obscure marshalling
problems (NullReferenceException)" (found them on Google Groups). He
unfortunately didn't receive a reply, so now I'm trying. :)
Basically, the... more >>
Referencing a COM component in C++.NET
Posted by Harsimrat at 3/26/2006 3:08:05 PM
Hello Everyone,
I have a .exe COM Component which I referenced in C++.NET and when I did
that it changed some signatures on function definitions....
The function I need to use have to return S_OK....
but .NET changed ths signature to void .....what is the best way to deal
with this prob... more >>
getting int array from unmanaged DLL to C#
Posted by PP at 3/26/2006 12:00:00 AM
Hi Sirs,
I am struggling with passing arrays back from an unmagaged C DLL into
C#. The DLL's functions returns pointers to e.g. integer arrays which
I want to use from a C# application.
Does anybody know how to write the C# wrapper ?
Some more details follow:
The unmanaged DLL exports ... more >>
VC++ 7.1 Winform App & Callback from Unmanaged Static MT Library
Posted by SteveW at 3/25/2006 12:42:29 PM
Hi -
This issue has probably been addresses elsewhere, but I cannot seem to find
a good solution. Also, I posted on WinForms but did not get any replies so
maybe this is the approprate ng.
I have a simple (VC++ 7.1) WinForms app. The app uses the services of a
staticly linked VC++ 7.1 unm... more >>
Calling C++ class constructor from C#
Posted by Amil at 3/25/2006 10:02:47 AM
I know all about using interop to call a C or C++ function (not method) from
C#, but...
I want to instantiate a C++ class (e.g. call the constructor) in C# and call
a method on it. For now, I'm having trouble creating the C++ class. When I
do, I get a null reference exception. For now, I... more >>
error '80070002' intermitent
Posted by Joe Gass at 3/24/2006 11:33:22 AM
Hi
I've written a .net component that should be callable from asp
It's worked on 3 computers, dev xp machine and 2 2003 web edition servers.
But deploying to one production machine (also 2003 web edition) I'm getting
some errors
Had to install framework 2.0 (rebooted even tho it didn't ask f... more >>
Accessing controls collection of any open window through c#
Posted by Sameeksha at 3/24/2006 12:13:03 AM
Hi everyone,
I want to access controls collection of any open window through c# code.
The ultimate aim is to be able to click a button, fill in a text box through
c# code (sort of automation). Any framework -- .net 1.1 / 2.0 will do.
I got success till the point of getting windows handle... more >>
C# 2005 and Com
Posted by Tim Gee at 3/23/2006 6:03:40 AM
Hi,
Could anyone point me in the direction of some examples showing how to
create a .exe (or the equlivant) COM server in C# 2005.
Cheers
Tim... more >>
Creating COM-dll with C# 2005
Posted by Roland Kossel at 3/23/2006 12:00:00 AM
Hello group,
I'm trying to expose functions contained in a dll to COM, so I can use
it for example in Excel VBA (that's just one place where I need it). I
have searched the internet, found some articles on it, tried out
different ways and never got a dll I could use.
One example:
I created... more >>
Reg:using COM Interop as non admin
Posted by prince at 3/22/2006 10:23:48 AM
I have developed a plugin for Image pro plus software in VB .NET(VS
2003) using COM Interop . The plugins works if I login as an
administrator but fails to open if if its a general user. What changes
should I make to the registry so that the plugin can be used even by
non-admin users.
... more >>
Set combo box value in Excel from asp.net
Posted by TimZ at 3/22/2006 8:45:47 AM
I have an Excel 2002 spreadsheet which has a few combo boxes. The
selections in the combo boxes are used for calculations. My asp.net
page needs to set the value of the combo box.
I understand I can retrieve the selected value by looking at it's
linked cell, but I am not sure how to actually... more >>
Text Under Mouse Pointer
Posted by goraya at 3/22/2006 3:37:05 AM
Hi All
I have label control that shows a string of words how can I find out
the word under the mouse pointer ? I donot wanna read whole label
string just the word that is currently under mouse pointer?
Thanks in Advance.
... more >>
ZwCreateFile returns STATUS_DATATYPE_MISALIGNMENT
Posted by Charles Law at 3/22/2006 12:21:21 AM
I am trying to open a file from VB.NET with ZwCreateFile, but I get
STATUS_DATATYPE_MISALIGNMENT returned. It's hard to know which bits to post,
so apologies for the dump below:
<header stuff>
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=1)> _
Structure OBJECT_A... more >>
Automating Excel with InvokeMember
Posted by Peri at 3/22/2006 12:00:00 AM
I have to import data from Excel. I can't add reference to Excel COM
because that way I will have problems when clients will not have Excel
installed. So I automate Excel through reflection.
PrepareExcellObjects()
{
const string className = "Excel.Application";
_type = Type.GetTypeFr... more >>
Passing ActiveX object as parameter from VB6 to com exposed .NET class
Posted by Christian Anderson at 3/21/2006 6:06:43 PM
Hello,
to understand why I want to do this, here is some background:
I am trying to migrate a big application with many forms from VB6 to
..NET. The code is only separated by the form modules; there are no
layers. So the only incremental approach I see, is taking one form at a
time an migr... more >>
array of struct from c++ to c#
Posted by scottelloco NO[at]SPAM gmail.com at 3/21/2006 12:51:48 PM
Hi,
I currently have a single struct being passed from a C++ dll to a C#
app by reference. I'm now trying to pass an array of structs back to
the C# app using the same technique, but I am receiving an
NotSupportedException when trying to do so. All of the posts I have
seen so far are passing ... more >>
COM interop clarification
Posted by BM at 3/20/2006 5:39:11 PM
I have a legacy com component with no IDispatch in the interface
hierarchy.
The interfaces exposed by this component are not automation compatible.
There are no SAFEARRAYS / VARIANTS ....no other self describing types
....
the component also exposes a sink interface .
there are only c++... more >>
MSHTML Deployment Problems in Non Visual Studio dot net Systems!
Posted by karthick.ramachandran NO[at]SPAM gmail.com at 3/20/2006 7:53:38 AM
Hi,
I have this application in which I am using webbrowser control and
mshtml. I have developed this using Microsoft Visual Studio dot net
2005. Now the application works perfectly in my system and also in all
the systems which have Visual Studio dot net 2003/2005.
But when I try to deploy ... more >>
Wrong size when restoring form that has no WS_DLGFRAME style flag set
Posted by Martin.Hallerdal NO[at]SPAM gmail.com at 3/20/2006 4:23:20 AM
Hello,
I have a form that I don't want to display the title bar for. The way
I've implemented this is to to remove the WS_DLGFRAME style flag.
However, when this form is minimized and then restored, it is restored
to the wrong size. The height of the form increases 19 pixels (height
of a title ... more >>
byte array in struct to unmanaged - sizeof
Posted by The Real Andy at 3/20/2006 12:00:00 AM
I have been playing with some interop over the last copule of days and
have a small problem. I am trying to use DeviceIOControl to talk to a
custom driver. I have successfull called CreateFile and have used
DeviceIOControl to initialise the device. The problem I have is when i
try to send data.
... more >>
Marshalling Exception
Posted by Monu at 3/20/2006 12:00:00 AM
Hello,
I m using waveOutOpen() in C#.net code.I got the exception " Can not marshal parameter #3: The type definition of this type has no layout information." i m passing an object of a class WAVEFORMATEX that i hav written as parameter #3. I saw some other codes, where such parameter is working ... more >>
No joy implementing IInternetSecurityManager -- any sample code?
Posted by DavidB at 3/19/2006 1:26:48 PM
Having (laboriously) implemented IInternetSecurityManager in response to
WebBrowser.WebBrowserSite.IServiceProvider.QueryService, I now find that (a)
only GetSecurityID() and MapUrlToZone() get called, and (b) nothing they
return does anything useful. Return bad stuff and the WebBrowser contro... more >>
calling c++ function from c#
Posted by SeanGerman NO[at]SPAM gmail.com at 3/17/2006 2:18:36 PM
Howdy,
I've worked through the few threads on this issue in the group archives
but still not quite getting where i need to be. Other than whacking
around some MUD code a few years ago, this is my first time with C++.
Working in VS.net 2k3, my solution has a C# project and a C++ project.
In... more >>
GDI Interop problem
Posted by Nadav at 3/17/2006 4:29:26 AM
Hi,
Introduction:
I have developed an interop project built of an unmanaged COM object and a
..NET WinForm application, the WinForm Application implement the user
interface while the unmanaged COM implements a collection of mathematical
calculations and algorithms.
The COM object, when ... more >>
Obtaining a "CoClass" from interface in .NET for the purposes of sinking events.
Posted by shehrzad NO[at]SPAM gmail.com at 3/17/2006 12:03:30 AM
I am trying to implement an COM object (in ATL), that can be used in a
variety of contexts (Win32 console apps, MFC dialog apps, WinForms C#
or MC++ apps). This ActiveX control is a logger component writes a
message to a log file, calls OutputDebugString, and then fires an
event. The way I have... more >>
P/Invoke efficiency for structs and arrays
Posted by Christian_Fröschlin at 3/16/2006 6:46:24 PM
Hello,
I'm looking for some insights regarding the efficiency
of transferring data between managed and unmanaged code.
Here, I restrict myself here to the sample task of
transferring 10 double values, which demonstrates
most issues. I tried the blow methods, each
executed 10000 times to get ... more >>
Find the path and version of a COM library at runtime
Posted by Steve Lynch at 3/16/2006 3:02:46 PM
How can I find the full path and version of a COM object at runtime? For
example when my program is running on a system it could be using a different
version of MAPI and CDO than what I compiled with. I would like to log the
version of the DLL and the path in the file system the DLL is loa... more >>
asSpreadsheet readonly - is it possible ?
Posted by Bogdan Kot at 3/16/2006 1:21:12 PM
Hello !
I use axSpreadsheet in my .NET c# application and I want to set all
worksheets loaded to this component to ReadOnly, like for example
TextBox.ReadOnly = true;
Is it posible ?
Regard,
Bogdan Kot
... more >>
Child Form in COM causing problems
Posted by satelite at 3/16/2006 1:10:27 PM
Hello,
I am developing a dll in VB.Net for use in a COM application. Part of the
functionality of the dll is to open a modeless form within the COM app. On
the form is a button that runs a process. If the process throws an error it
opens a messagebox describing the error.
Here is th... more >>
C# XslCompiledTransform crash when called from VCL C++
Posted by Jeroen ter Hofstede at 3/16/2006 7:09:27 AM
Environment:
- .Net Framework v2.0.50727
- Borland C++ Builder 5
We are extending our C++ application with functionality in a C# dll.
The C++ app creates an object from the (registered) dll and calls a
method in it. This method creates and uses an XslCompiledTransform
object. Unfortunately, ... more >>
COM Interop in VS 2005 MUCH slower than VS 2003
Posted by Kevin Frey at 3/16/2006 12:00:00 AM
Hello,
(Running on Windows XP Pro SP2).
Firstly, can someone tell me if there is a memory leak in VS2003 & VS2005
when using COM interop concerning BSTR's not freeing up resources? Our test
app, which uses a COM component to iterate over records and access their
properties, seems to be l... more >>
Cleanup of COM objects declared on the stack?
Posted by Dave Black at 3/15/2006 7:48:27 PM
For cleanup of COM objects that are declared local to a function on the
stack, is it necessary to call Marshal.ReleaseComObject() and set the local
stack variable to null to remove all rooted references?
TIA
Dave
--
2b || !2b... more >>
AccessViolationException: Attempted to read or write protected memory
Posted by Thomas Spellman at 3/15/2006 6:24:54 PM
I'm trying to use libusb-win32 (http://libusb-win32.sourceforge.net/)
via #libusb (http://www.icsharpcode.net/opensource/sharpusblib/) with
..NET 2.0 on Windows XP SP2. I keep getting an exception from a
function, usb_get_busses(). It works the first time I call it, but
throws an exception if ... more >>
|