all groups > dotnet interop > september 2005 > threads for september 8 - 14, 2005
Filter by week: 1 2 3 4 5
Trying to call .NET Framework Classes from VB6
Posted by Joseph Geretz at 9/14/2005 5:58:20 PM
I saw this nifty article which describes how to add the .NET framwork itself
as a reference to your VB6 project. (Guys don't jump on me, this is a VB6,
not a .NET question - please see code below.)
Anyway, I'm trying to use the .NET framework to do 3DES encryption inside my
VB6 application,... more >>
Problems with BindIFilterFromStream
Posted by Brian at 9/14/2005 3:01:37 PM
I'm using some example code from
http://www.codeproject.com/csharp/DesktopSearch1.asp?df=100&forumid=190772&exp=0&select=1153650
to parse PDF files for a DotLucene index. It uses the query.dll com
object's LoadIFilter method to return the correct IFilter for the file
being parsed (the PDF IFilt... more >>
How to setup machine to use interop.adodb.dll in order to acess CO
Posted by Iter at 9/14/2005 2:54:04 PM
Hi guys,
I got a problem about interop.adodb.dll and adodb.dll. In my company's
project, we use .net web service and com+ component and web service calls
com+ componet. when I compiled web services which need to reference to com+
component, the system copy adodb.dll to bin folder of web servi... more >>
Problems using C# class library - Class doesn't support Automation
Posted by Nadia at 9/14/2005 12:14:47 PM
Hi All,
I have a C# Class Library I created. It contains a form and one class.
I can access the one class from JScript OK, but when I try to access
the method that launches the from I get this error message:
"Class doesn't support Automation"
Here is an abbreviated sample of my code:
u... more >>
How to force in-proc DLL to run out-of-process?
Posted by Lee Chapman at 9/14/2005 10:50:14 AM
Hi,
I have have a .NET application that is running out of memory. We suspect a
memory leak in one of the COM components the application is calling. To try
to isolate this, I thought I would try running the COM DLLs out-of-process in
the standard surrogate, DLLHOST.EXE. To do this, I've cr... more >>
Use an OCX together with a own TLB-file
Posted by Sebastian W at 9/14/2005 7:04:36 AM
Hello.
I have exported the IDL from a OCX file in oder to change some details
(I removed some classes/interfaces, because they caused errors...).
Then I compiled the IDL to a typelibary (*.TLB) usin MIDL.
Now I want to use this component with my customized tlb in a .net
project.
But when ... more >>
MC++, TAO CORBA and static instance problem
Posted by jjr01 NO[at]SPAM yahoo.com at 9/14/2005 6:00:16 AM
I am writing an MC++ mixed-mode assembly (C++ and MC++) that will wrap
all TAO CORBA operations so that I can incorporate TAO into a C#
application. I am constrained to use TAO by the customer, so I can't
use IIOP.NET. I am constrained by the project to use C#, so I can't
use C++.
I am usin... more >>
Marshaling a pointer type
Posted by Tahir Sultan at 9/14/2005 5:49:06 AM
I am developing an application in C# using Microsoft visual studio .NET 2003.
Basically, I imported a com dll in my application by adding reference to the
COM dll. The com event in the original dll has the following signature:
HSESULT AddModifyGroupIndication(
[in] unsigned long groupListS... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
App using legacy DLL not shutting down.
Posted by cmbardon NO[at]SPAM engmail.uwaterloo.ca at 9/14/2005 4:49:49 AM
I'm trying to use a legacy C++ DLL in a .net application, and I'm
running into problems with the application not shutting down if any of
the methods on the DLL are invoked. I've tried accessing the DLL
through both p/invoke, and directly through managed C++, and the
results are the same. I sta... more >>
XP Autoplay and IHWEventHandler implementation
Posted by RonNanko NO[at]SPAM gm-squared.de at 9/14/2005 4:03:58 AM
I am currently working on a new feature for my application (related to
audio cd and mp3 management) which contains a cd ripping feature.
What I would like to do is to present the application in the XP
Autostart feature as soon as an Audio CD is inserted into a cd drive.
So far I managed to g... more >>
Please Help: COM+ Services and IIS Broken
Posted by JebBushell at 9/14/2005 2:06:03 AM
Using XP sp2, under COM+ Applications I see the following are not working
(i.e. their spheres are out of the box)
..NET utilities
COM+ Explorer
COM+ Utilities
IIS In-Process Applications
IIS Utilities
Does this may explain why my C# com service did not register itself?
I reinstalled... more >>
Com Interop QueryInterface
Posted by va_acharya at 9/14/2005 1:50:15 AM
Hi
I am vishal
I have imported some VB UserControls in my C# application throug
Interop and now i want to make a call to an interface function whic
has been implemented on all the UserControls. For that i am usin
following code
--IntPtr unknownIntPtr = Marshal.GetIUnknownForObject(cnt); //... more >>
How to reference PivotTable control in asp.net(vb.net) code-behind
Posted by Chrysan at 9/13/2005 9:29:01 PM
I have create an asp.net(.aspx) page, with a PivotTable control. I noticed
that, I can't reference it in my code-behind(.aspx.vb), because it doesn't
has the line 'Protected WithEvents PivotTable1 As OWC10.PivotTable' as
creating other controls, liked Label, Button, ...
Can anybody teach m... more >>
interop problem
Posted by tparks69 at 9/13/2005 2:40:04 PM
I have some VB6 components that I would like to reuse with my ASP.NET app. I
successfully created interop .dll's for these components using the tlbimp.exe
program. On my development machine the components work fine. The components
are called when I press a button on the webpage.
When I... more >>
simultaneous calling COM object method
Posted by Jarylka NO[at]SPAM gmail.com at 9/13/2005 9:20:21 AM
Hi, all.
Excuse me for my English.
I have ASP.NET web service with one method "Test".
This method "Test" invoke COM object method "Sleep".
And COM object method "Sleep", in one's turn, call procedure "Sleep"
from Windows API.
If I make 2 simultaneous call of method "Test" (web service) the... more >>
My COM+ Utilities are Broken. Any Ideas?
Posted by JebBushell at 9/13/2005 1:48:02 AM
Using XP sp2, under COM+ Applications I see the following with their balls
hanging out:
..NET utilities
COM+ Explorer
COM+ Utilities
IIS In-Process Applications
IIS Utilities
This may explain why my C# com service did not register itself. How do I
fix these guys?... more >>
Service hangs when accessing ActiveX control
Posted by Lucvdv at 9/13/2005 12:00:00 AM
Is there something that has to be taken special care of when using an
ActiveX control in a .Net service application?
I'm creating a VB.Net service app that uses an ActiveX control on a hidden
form.
When I start the program as a normal application, it works.
When I try to start it as a s... more >>
Can't access .NET class when running VB6 project in IDE
Posted by Joseph Geretz at 9/12/2005 3:27:30 PM
VB6 SP6, Visual Studio 2003
I've copied my .NET assembly (SRSNetBroker.DLL) into my project folder. I've
registered it for interop using RegAsm /tlb which generated a tlb file in
the local project folder.
If I compile my VB6 project to EXE, then I've got the VB6 Executable, the
..NET DLL... more >>
COMException - Type Mismatch - VARIANT* and SAFEARRAY
Posted by Gordon Brooks at 9/12/2005 1:33:06 PM
Hi folks,
I'm trying to call a COM method that has the following signature:
long Foobar(long category, VARIANT* handle_list);
The documentation says that handle_list is a SAFEARRAY of longs (int32) that
will be populated by the function. Tlbimp (regardless of /sysarray) gives me
a signa... more >>
Simply Call a method from a OCX?
Posted by News-mail.SW NO[at]SPAM gmx.net at 9/12/2005 7:34:39 AM
Hello alltogether.
I hope anyone of you can help me.
I have a OCX-file (arsole.ocx) which contains one class. I need to call
some methods of this class. They have BSTR parameters and return SHORTs
(The return codes are not required to catch).
When I am trying to include the OCX through the au... more >>
COM Interop + Threading + Scalability
Posted by Logu Krishnan at 9/12/2005 12:00:00 AM
Hi All,
Recently, I've been working on a web app that requires a VB6 Component to be
reused, in the ASP.NET App (We're migrating). The Client completely denies
to move the VB6 Component to a .NET Component, as they have invested heavily
Money+Time+Human for a long time for building and enri... more >>
Iterating through collection from VB6 gives error 424 Object requi
Posted by Joe at 9/10/2005 9:52:02 AM
See the example below.
I have a .Net class Customer which implements an interface ICustomer, and
which is stored in a collection CustomerCollection.
Both CustomerCollection and ICustomer are exposed to COM (ComVisible = true)
My Customer object is *not* exposed to COM (ComVisible = false), main... more >>
Best way to debug VB6 and VB.net interop
Posted by Eric at 9/9/2005 11:42:52 AM
I have a VB6 exe that calls a VB6 dll. The VB6 dll then calls a VB.net dll.
I finally have everything working but my question is this. What is the best
way to debug all of this code at the same time. This is how I tried to
debug this. I set the VB.net class library to start up by pointin... more >>
How to compile Interop.SHDocVw.dll into the exe of an application?
Posted by Long Nguyen at 9/9/2005 11:06:02 AM
Hi all,
In my VB .NET application, I create an instance of the Internet Explorer.
The Visual Studio IDE dutifully generates a DLL named Interop.SHDocVw.dll in
the same directory as my executable.
The problem is, when I copied my executable to a different directory without
copying the In... more >>
Passing Parameter from C# to C++ dll
Posted by Anitha R via DotNetMonster.com at 9/9/2005 8:15:11 AM
Hello,
I am a newbie to C#.I have been working in VC++ 6.0 .The dll worked fine in
VC++
C# application uses a unmanaged C++ dll compiled in VS.NET.
The C# passes a char[ ] or byte[ ] to WriteCard(int Sector,unsigned char *
WriteBuff).
The writebuff is becoming NULL.I tried by displaying Messa... more >>
how can I import the INewWindowManager interface?
Posted by SpotlessWill at 9/9/2005 4:30:03 AM
I got a requirement about the pop-up block staff. It is said in MSDN that
developer can implement INewWindowManager interface to handle the case under
your own rules(you can override some or all of the Microsoft Internet
Explorer pop-up blocking logic).
After installing the XP SP2 SD... more >>
COM exception 0x80040202 -- on w2k but not xp
Posted by dave greaf at 9/9/2005 12:00:00 AM
Hi,
I've got a com component which raise a 0x80040202 error when assigning an
delegate to his event.
It works well under XP not under w2k.I tried it on multiple machines and got
the same problem over and over.
This is the case for on event , another one works fine on both oses. (though
th... more >>
VSS Interop in C# terrible compared to C++ (v1.1)
Posted by Stu Carnie at 9/8/2005 10:33:37 PM
All performance tests were from v1.1 of the framework.
I have read numerous articles on performance and tuning, however I am
still perplexed (and a little concerned) with the performance
differences in the following scenario.
Scenario:
C# Console app which uses the Microsoft.VisualStudio.... more >>
Use com objects or .NET remoting?
Posted by Wendy Elizabeth at 9/8/2005 9:45:03 PM
I want a Visual Basic 6.0 web or desktop applications to communicate with a
Visual basic.NET web or desktop applications. I will also want visual
basic.net web or desktop applications to communicate with Visual Basic 6.0
web and desktop applications.
For this communication to occur, is it... more >>
Interop - XP vs. 2003
Posted by christopherkilmer NO[at]SPAM gmail.com at 9/8/2005 2:30:40 PM
I was given a dll that was written in C++ some years ago and was asked
to write a .Net wrapper for component.
Using .Net's DllImport attribute I created a wrapper that works as
expected on my XP box.
However, when I move the wrapper (and all dependent components) to a
Windows Server 2003 bo... more >>
when to use com+
Posted by Wendy Elizabeth at 9/8/2005 1:44:11 PM
I am basically new to the .net framework but I have experience working with
Visual Basic 6.0. I just started to work in a company where I am the only
programmer.
I am told that I will write new code in Visual Basic.NET and
will keep the old Viusal Basic 6.0 code the way it currently is.
If... more >>
Error 430 - Class does not support Automation or does not support.
Posted by Chad at 9/8/2005 1:24:04 PM
Hello Everyone,
I'm having an issue with a .NET COM Interop Assembly within VB 6. When I
try to create a new instance of a class, in VB 6.0, I receive the following
error: "Error 430 - Class does not support Automation or does not support the
expected interface".
I created .NET COM Inte... more >>
Union of structs in C#
Posted by bazooka at 9/8/2005 10:32:59 AM
How far is it possible to handle unmanaged C++ declarations of unions i
C#?? A struct with a union is resolved wit
[StructLayout(LayoutKind.Explicit)] and [FieldOffset(pos)] but wha
about this one??
typedef Byte Bits;
typedef union
{
struct {
Bits queue :4; /* Network interf... more >>
Callback from native C++ to managed C++
Posted by Drew at 9/8/2005 8:18:56 AM
I have a native C++ method that takes a function pointer as an
argument.
I've looked at the examples for getting a native C function to take a
delegate, but I just can't seem to get it to work with a C++ method.
Any ideas?
A little code to give you an idea of where I am at and what I want... more >>
VARIANT (automation type) in C#?
Posted by Petar Popara at 9/8/2005 12:00:00 AM
The ActiveX control takes this VARIANT as function argument:
[id(3), helpstring("method Init")] HRESULT Init([in] VARIANT a_properties);
I'm assigning it in C# as:
someCOM.Init("C:\\abc.xml");
but I got some exception on this line:
---------------------------
Microsoft Visual C++ D... more >>
|