all groups > dotnet interop > april 2006 > threads for april 1 - 7, 2006
Filter by week: 1 2 3 4 5
Keyboard Hooks for IE.
Posted by Sujoan at 4/7/2006 11:53:27 PM
Hi,
We are trying to implement a keyboard hooker for IE using C#. For
this we are trying to install a global message hook using
SetWindowsHookEx function:
mHook=SetWindowsHookEx(WH_KEYBOARD_LL,new
KeyboardHookProcDelegate(KeyboardHookProc),((Marshal.GetHINSTANCE(Assembly.GetExecut... more >>
New to Dot Net Interop
Posted by Wayne Sepega at 4/7/2006 3:02:37 PM
I have a need to create a dotnet class assembly that will be registered as a
COM object and called by an ASP page. I've been searching the web, but
haven't come across anything great or not to far above my head at this point
on accomplishing the above.
Any tips? or links to point me in the ... more >>
Excel XP Interop: How to add worksheet to a workbook using c#???
Posted by katzky at 4/7/2006 1:28:02 PM
I am trying to add a worksheet to a workbook. The following code produces an
error at the last line:
Excel.Application theApp = new Excel.ApplicationClass();
Excel.Workbook theBook = theApp.Workbooks.Add
Excel.XlWBATemplate.xlWBATWorksheet);
Excel.Worksheet theSheet= (Excel.Worksheet) t... more >>
Multiple DLL instances
Posted by ng5000 NO[at]SPAM gmail.com at 4/7/2006 9:05:14 AM
Hi,
I have a non thread safe vendor supplied DLL (probably created/written
with Borland C++ Builder). I would like to have multiple threads
accessing seperate instances of this DLL, which I've discovered is not
possible.
What I then embarked on doing was creating a C# assembly (i.e. a DLL)... more >>
.NET 1.1 and Outlook integration issue
Posted by sme NO[at]SPAM nospam.nospam at 4/6/2006 1:17:02 PM
Hi,
I am using Visual Studio .NET 2003 application in order to get access to a
shared folder's contacts. I have "Referenced" the COM library for Outlook
2003.
Below you may find a sample code that loops through a specific user's
contects.
The pronle is that from the 1000 contacts that are... more >>
Deploying .NET COM wrapper
Posted by rosedb0 NO[at]SPAM gmail.com at 4/6/2006 11:35:18 AM
I'm having a little trouble deploying a .NET DLL, and I was wondering
if anyone here could help.
Basically, I've built a DLL to expose some .NET components to COM.
After building the DLL and running "regasm /tlb" and "gacutil", I can
call these components from VB6 on the development machine ... more >>
SAFEARRAY returned from VC6 interface object to VB.NET
Posted by gary NO[at]SPAM garygen.com at 4/5/2006 9:12:29 PM
I have a legacy VC6 application that has an interface object which has
functions which return SAFEARRAY's of BSTR, DATE, double, etc.
I was able to call these functions from VBA, VB6, etc using standard VB
arrays.
EXAMPLE:
Dim thingArray( ) as String
Dim myLegacyObj as LegacyApp.LegacyObj
... more >>
Problem calling VB6 function with byRef Parameters
Posted by Jeff K at 4/5/2006 9:16:12 AM
I have a vb dotnet app which calls into a vb6 component class. It passes in
2 byref parameters as soon as I call the class I get a "Type mismatch"
error.
Here is my code.
VB dotnet
Dim strSndbxId As String
Dim strOverwriteChanges As String
dim strCn as string
Dim oSF As Object
strCn ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Marshal.FreeHGlobal or Marshal.FreeCoTaskMem for PIDLs
Posted by lraiz NO[at]SPAM yahoo.com at 4/5/2006 8:01:03 AM
Hello,
I use p/invoke to call SHParseDisplayName exposed by shell32.dll and
this call returns an address of PIDL that it allocated in unmanaged
memory. I am expected to release it.
I am confused if I can use FreeHGlobal or FreeCoTaskMem for this
purpose. Does it make a difference in this ca... more >>
MSHTML - IDM_PRINT - Print Template - IE Automation
Posted by Marc Rowe at 4/5/2006 7:59:01 AM
Hello,
I have a client who requires IE to print HTML files. The automation is
complete using the above, but now they want to be able to switch printers
(not print to the windows default priter, but to a printer specific to a
document)
Is there a way to set the Printer when using the title... more >>
__pin vs __nogc Which one to use?
Posted by Peggy at 4/5/2006 1:22:32 AM
Hi
I am working on Mixed code where a lot of calls are passed on from my
Managed wrappers to unmanaged C++ classes. Working on performance I
noticed that using PtrToStringChars had a lesser overhead than using
Marshall::StringToHGlobalUni.
I came to this because I noticed with the declarati... more >>
Version problem with Interop dlls?
Posted by Farrukh at 4/5/2006 12:00:00 AM
Hi
I know, this post might not be fully suitable for this group, but I didn't
find any other good group yet. I'm finding and i'll post it there as well.
For now, please guide me.
We have a build process which builds our projects (VS 6 and VS.Net) while
setting the build numbering same and... more >>
Primary interop assemblies for FX 1.1 and 2.0
Posted by Vagif Abilov at 4/4/2006 12:17:43 PM
Hello!
We have a primary interop assembly for a COM object that is used in our .NET
1.1 projects. Now we are porting them to .NET 2.0. Although .NET 2.0 can use
existing PIA assemblies, we can also recreate PIAs using VS 2005 tlbimp
tool. However, we need to be able to support both 1.1 and ... more >>
Pinvoke reading files, returning char * values.
Posted by anirudh at 4/4/2006 7:18:47 AM
Hello,
I am trying to use an Win32 DLL developed using Visual C++ 6.0 in my
C# .net application.
The signature of the original function is as follows :
BOOL __stdcall GetXMLString(
const char* strInputFileName, // The input STL or RP file
name
const char* strPassword,
... more >>
IObjectWithSite and IOLECommandTarget Issue
Posted by John Littleton at 4/4/2006 6:21:01 AM
I am building a VB.NET dll browser extension to respond to the click event of
a custom button added to IE's toolbar.
I am implementing the IObjectWithSite interface to handle acquiring a
reference to the browser. And I am implementing the IOLECommandTarget
interface in order to receive the ... more >>
Expose a .Net user Control to COM
Posted by RF at 4/4/2006 3:53:44 AM
Is it possible to expose a .Net USERControl (GUI) to COM so that it can be
used by VB6 as if it were a regular ActiveX control. I know you can expose a
class library, but what would you need to do when you have a user interface?
Thanks... more >>
Different versions of COM/.NET Bridges
Posted by Peter Hase at 4/4/2006 12:00:00 AM
Hi,
I'm using following bridge architecture to connect
native 32-bit applications with .NET
32-bit => COMServer.exe => .NET.dll => .NET Destination apps
The 32-bit client acts as COM client which calls the (ATL-build)
COMServer. This acts as host for the .NET.dll assembly, which exposes... more >>
Question about Marshal.ReleaseComObject
Posted by Steve Lynch at 4/3/2006 5:47:44 PM
I'm cleaning up someone else's code and noticed that Marshal.ReleaseComObject is
being called on the same objects over and over again in a loop, usually around
500 times. Is this a good design, or should Marshal.ReleaseComObject only be
called after the loop has finished and the object won'... more >>
Best way to return a struct of strings?
Posted by Scott Markwell at 4/3/2006 1:15:34 PM
I want to pass back a group of data to a caller. What I am currently
doing involves returning a pointer to a struct defined in IDL and
available in the TLB. The thing is this gets messy w/ managed .NET code
involving messing w/ a System.IntPtr. Will managed code properly
release a structu... more >>
threading problem calling COM method
Posted by Alan Baljeu at 4/3/2006 1:07:28 PM
I want to be able to have a C# thread invoke a COM method on a different
thread.
I have three DLL's, B, C, and D.
B) C++, unmanaged, COM client, .net client.
C) C++, COM server
D) C#, COM server
1. From B, I instantiate a coclass defined in C. This coclass uses the
FreeThreadedMarshall... more >>
Using an unregistered COM object
Posted by Itay Sandbank at 4/3/2006 5:48:02 AM
Hello.
I have a 3rd party DLL containing an in-process COM object I want to use
in my application. However, I don't want to install the COM object on the
target machine. Instead I'd rather just put it in my application's folder and
use it without registering it.
Is there any way to... more >>
COM Interop method call only partially successful
Posted by Keith Walton at 4/2/2006 2:13:40 PM
I'm trying to call a method in a COM DLL from .net. Here is some unmanaged
C++ code that can call the method successfully. I'm trying to do the same
in
VB.net using a custom interop DLL:
DWORD dwSize = MAX_PATH;
DWORD dwSizeNeeded;
m_pszLogFile = new char[dwSize];
rc = pIDgnExtModSupErr... more >>
Register COM Programatically
Posted by Khaled Hussein at 4/1/2006 5:38:52 PM
Hi
I was having an application that uses an ActiveX control, and I wanted to
know if I can merge it with any managed dll, so that I can hide the ActiveX
control, and I got a firm no answer due to the fact that COM should be
registered and added to the COM DB, where the COM loads, .. etc.
... more >>
|