all groups > dotnet interop > june 2005 > threads for june 8 - 14, 2005
Filter by week: 1 2 3 4 5
migration vb6 to vb.net
Posted by DavideR at 6/14/2005 2:19:01 AM
I Am trying to migrate a vb6 project to vb.net but in the upgrade wizard the
conversion crash with a critical error (vbu.exe unspecified error ....) when
the wizard is loading type library stdole
I have vs2002 sp1 Framevork1.1 sp1
What can i do?
Best regards
Davide
... more >>
Hosting the IE browser in a UserControl
Posted by Glass Half Full at 6/13/2005 4:38:09 PM
I've created a very simple user control that basically hosts the IE browser.
The purpose was to abstract some of the logic of setting the content of the
browser from a string. I have a small problem with this control. When I
use this control with a tab control (placing my browser control on ... more >>
ilasm and delayed signing
Posted by Brian R. at 6/13/2005 4:08:01 PM
I have some IL that I need to reassemble back into a primary interop
assembly. I want my developers to be able to do this on their own, but I
don't want them to have the private/public key pair. They have access to the
public key.
How can I have them assemble the IL (using ILASM) and dela... more >>
Showing Dialog form in Excel
Posted by test.file NO[at]SPAM gmail.com at 6/13/2005 1:34:24 PM
I'm working on a project (SDK 1.1) where we're automating Excel XP. We
have an ExcelService class which is responsible to maintaining Excel
object states and cleanup. The class also acts as a sink for the click
events of several buttons that it creates in Excel Commandbars.
Some of these but... more >>
getting window handle..
Posted by ve at 6/13/2005 1:33:51 PM
Hi,
i am developing an application which me to call c++ code from c#. basically
i have created idl for that in c++ and it worked fine. Now i want to pass
window handle to the c++ code. I got the handle then i am passing
Handle.IntPtr() to the c++ code. Basically in the c++ code i need to d... more >>
VB6.0 dll
Posted by Devs at 6/13/2005 12:59:02 AM
how i can use vb6.0 dll in vb.net
--
mohan ... more >>
interop: Passing pointer to COM to efficiently receive large data chunk
Posted by Robert Schnitzer at 6/12/2005 9:21:18 AM
I'm writing COM to expose some unmanaged imagery generation functions to c#.
My question is how to best (easiest, clearest coding style) pass a managed
pointer to COM to receive back a loaded image:
example 1: using safearray
COM:
process([in,out] SAFEARRAY* bytes)
C# call:
byte[] bytes = ... more >>
passing string array to C++
Posted by Bruce Parker at 6/11/2005 6:11:01 PM
I have an unmanaged api I need to call. The definition for it is the
following:
DLL_API int Adapt( Global* g, char** strings, int numStrings);
I need to wrap this api in C++ and then pass a string array from c# to the
wrapper api. Here is my attempt:
C++ wrapper
DLL_API long MyAdapt(... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
AppDomain.Unload leaks ?
Posted by greg at 6/11/2005 12:00:00 AM
Hi all,
Can anyone tell me why the code below leaks?
Here is what I do:
1) create new AppDomain
2) create an instance of AppDomain2Class in it,
3) call a AppDomain2Class.Run() method
4) unload AppDomain
No additional assemblies are involved ( even if they were, unloading
AppDomain
suppose... more >>
Marshaling 2-Dim Arrays
Posted by rmacias at 6/10/2005 3:22:55 PM
I am currently writing a C# app replacing an old app written in VB6. Part of
the app save it's structure contents to a binary file. The old VB6 app dumps
the structure into the file via:
Put #Fnumb, , MyVB6Structure
It is critial for my app that I write to this binary file in the sa... more >>
Converting IDL interface to C#
Posted by peter.moberg NO[at]SPAM gmail.com at 6/10/2005 12:39:38 PM
Could someone please help me to convert this IDL interface to a c#
interface. The thing Im having problems with is to convert the
different parameter types..
interface IComponentAuthenticate : IUnknown
{
HRESULT SACAuth([in] DWORD dwProtocolID,
[in] DWORD dwPass,
... more >>
Struct to API Problems
Posted by Joel Cade at 6/10/2005 12:25:03 PM
I'm trying to wrap calls the USPS Address Matching System API.
Am I missing something in my call to the API?
My calls to the API are declared as follows:
<DllImport("zip4_w32.dll", BestFitMapping:=True,
CallingConvention:=CallingConvention.StdCall, CharSet:=CharSet.Auto, _
E... more >>
The check of the signature failed for assembly...
Posted by rr_dot_net at 6/10/2005 12:07:13 PM
I have this working in vs.net 2002. I'm now moving to vs.net 2003.
vb6 exe calling vb6 ocx which references vb.net dlls. vb.net dlls are delay
signed so I can obfuscate before strong naming. vb.net dlls reference a few
activex controls and dlls that I've imported and strong named (in frame... more >>
Failed to send the message - EM_GETCHARFORMAT to a running instanc
Posted by ptran at 6/10/2005 11:37:09 AM
I am trying to get the font size of a running instance of WordPad (based on
Rich Edit). When I called the following function in my Windows Form which is
shown but not activated (SW_SHOWNOACTIVATE), WordPad crashed with the dialog
message - "WordPad MFC Application has encountered a problem a... more >>
DragDropHelper / OLE Drag Drop problems...
Posted by taj at 6/9/2005 9:22:19 PM
hi there,
i'm trying to make use of the IDropTargetHelper interface using it's
implementing class DragDropHelper to have drag images from windows
explorer shell using c# und .net framework 1.1SP1 using WinXP-SP2, and
guess what, i don't it to run...
i gaining the interface using the foll... more >>
ActiveX Control
Posted by Dan at 6/9/2005 12:21:02 PM
Good Day All,
I have a series of Active X user controls that I am going to be needing to
use in a .NET project. However, I am running into an issue with the Wrapper
that is generated for the controls. All of these controls expect that their
parent implements a give interface. That is how th... more >>
Connected users list
Posted by Mircea Pleteriu at 6/9/2005 9:54:31 AM
How to get the list of the users connected to my system?
... more >>
Impersonate and Activator.CreateInstance
Posted by tomas.kallsen NO[at]SPAM endir.se at 6/8/2005 1:35:45 PM
Hi,
I'm creating a Powerpoint Application object for use in Powerpoint
automation (Powerpoint 2003) like this:
Type t = Type.GetTypeFromProgID("PowerPoint.Application");
object app = Activator.CreateInstance(anApplicationType);
...which works like it's supposed to, and I can use the obj... more >>
Byte[] from an IStream
Posted by Chris Capson at 6/8/2005 8:43:35 AM
I have a C++ .NET application where I need to place an IStream* into a
Byte[] and pass this back to a C# application.
Something like this I guess:
void MailAttachments::GetAttachmentBinary(MAPICDO::Attachment*
pAttachment, Byte b[])
{
IStream* streamUnk = NULL;
//attSize is size of th... more >>
|