all groups > dotnet interop > february 2006 > threads for february 1 - 7, 2006
Filter by week: 1 2 3 4
Calling a Win32 dll problems
Posted by Jeronimo Bertran at 2/7/2006 9:37:40 PM
I am having problems wiht the return type of calls to a particular dll.
The function is defined as follows in C++:
extern "C" DATREADER_API bool OpenFile(PTCHAR Name);
DATREADER_API is defined as
#define DATREADER_API __declspec(dllexport)
Now, from a C++ application I am able to us... more >>
COM component - Dispose !
Posted by abcd at 2/7/2006 2:00:04 PM
I have a COM Component. I use it from the C# applicaiton. After the usage
how should I delete that from the memory. My COM component does not support
Dispose method. Basically its a third party COM component written in VC++
and consumes license. Once I finished using it I want to release that... more >>
When some methods got lost after interop?
Posted by Andrew at 2/7/2006 12:25:28 PM
Hello, friends,
We have a COM dll, cqole.dll, and we need to use it in our C#.net app.
However, methods in the generated Interop.ClearQuestOleServer.dll did not
agree with what we could see using Object Viewer in VB 6.0.
What we saw using Object Viewer in VB 6.0 were the same as the help ... more >>
Excel as server application
Posted by JM at 2/7/2006 7:30:28 AM
Hi group, are there any authoritative references from MS or other parties
that speak to the use of Excel (via interop) as a server application? My
opinion is that you should avoid this if there are alternatives since Excel
was built for a single desktop usage scenario, but I'm looking for som... more >>
C# new Class does not recognized from unmanaged code
Posted by pavel.orehov NO[at]SPAM gmail.com at 2/7/2006 5:05:33 AM
Hi,
I have developed .NET 2005 C# library with one class X and register it
as COM interop. I have enabled the ComVisible in AssemblyInfo and have
checked ComInterop in project build properties.
I am using this class X from VBScript with CreateObject.
Everything works great.
The problem sta... more >>
DLL access through Byte Array causes 'System.NullReferenceExceptio
Posted by Roman at 2/7/2006 1:52:09 AM
Hi
I am quite new to VB and trying to port a VB6 wrapper for a DLL to VB .NET.
The DLL might be written in C or C++ and the functions partly expect 0-
terminated Byte Arrays filled with ASCII characters.
The VB6 definition was:
Private Declare Function TargetSetup Lib "VBtargetAccess.dll"... more >>
Question on COM pointer marshalling
Posted by Leon Finker at 2/6/2006 8:34:56 PM
Hi,
If I have an unmanaged host which does CoInitializeEx(0,
COINIT_MULTITHREADED), and then I pass a pointer to COM interface to managed
world. Why is it that when I use this interface from a background MTA thread
in managed world, a QI is made and I get Unable to cast COM object of type
... more >>
String* to string - truncates at 255
Posted by S Wheeler at 2/6/2006 3:25:54 PM
This may have been addressed previously; if so, please provide a reference
link.
I am trying to convert String* to std:string, something like:
std::string ToCppString(System::String* str)
{
std::string os;
//
if(str == 0) {
return(std::string());
}
System::IntPtr intPtr( Marshal::Stri... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Overlapped structure
Posted by Benny Tops at 2/6/2006 6:42:29 AM
Hi,
I'm having a hard time to get the following to work. I want to be able
to enable and disable routing functionality of the Windows OS
dynamically. The iphlpapi.dll provides to functions to do this:
- DWORD WINAPI EnableRouter(HANDLE* pHandle,OVERLAPPED* pOverlapped);
- DWORD WINAPI Unenabl... more >>
register dll COM
Posted by Frank at 2/6/2006 12:16:41 AM
I'm trying to register a .net dll COM.
Doing it with a setup all is working but I would like to know if there is
another way to register it. I tried the regasm tool: it works when I
UNREGISTER the dll but when I register the dll the message is "Types
registered succesfully" but .... it doesn... more >>
Question about Office InterOp
Posted by Jacky Ngew at 2/5/2006 12:41:14 AM
I understand taht I can generate Excel and Word documents in ASP.net. My
question is, given that my server has Office installed, can I have more than
one Excel process generating documents at any instance?
I know there are components out there but I cannot afford it now :(
Any help much ap... more >>
.NET COM+ registration under Windows 2003 x64?
Posted by Zhenxin Li at 2/5/2006 12:00:00 AM
Hello,
I want to ask a question about how to do .NET COM+ registration under =
Windows 2003 x64.
Our .NET product can be installed without any problem under Windows 2003 =
32bit version. The installer msi package itself should be 32bit =
application.=20
There are some .NET custom action... more >>
Howto invoke good 'ole DLLs from VB.net?
Posted by Bernard_Delmée at 2/3/2006 8:39:30 PM
Google is not my friend tonight. Or I am just being too
impatient. Anyway can someone point me to relevant MSDN
articles (or other up-to-date technical info) regarding
parameter passing between (unmanaged) C DLLs and VB.net
programs.
I haven't done that since the 16-bits days (VC1.5 & VB3).
... more >>
How to use API calls in VS2005 for printing
Posted by Enrique at 2/3/2006 4:56:27 AM
I have this code in a class, works fine in VS2003 but not in VS2005,
somebody help me! The error said "PInvokeStackInbalance" in OpenPrinter.
Imports System.IO
Imports System.Drawing.Printing
Imports System.Runtime.InteropServices
Public Class RawPrinterHelper
Shared xDocumentName As ... more >>
Problems with CDO / ADODB
Posted by Muntz at 2/3/2006 3:24:02 AM
I've been happily using this code for some time in VS 2003.
CDO.Configuration oConfig = new CDO.ConfigurationClass();
ADODB.Fields oFields = oConfig.Fields;
oFields["http://schemas.microsoft.com/cdo/configuration/sendusing"].Value =
CDO.CdoSendUsing.cdoSendUsingPickup;
oFields["http://sc... more >>
UCOMIConnectionPoint.Unadvise() and finalization
Posted by news.microsoft.com at 2/2/2006 9:41:15 AM
I have a .NET Windows Form app that uses the Internet Explorer browser
control for various pieces of functionality, although what follows could
pertain to any COM object. In order to subscribe to the COM object's events,
I use code similar to the following taken from the book ".NET and COM: The
... more >>
CoInitializeSecurity from a C# app fails with error 0x80010119, on chinese and japanese Win2003
Posted by Gaurav Lochan at 2/1/2006 6:51:31 PM
Hi,
I've got a C# application that uses the Virtual Server COM API, and so
based on their sample code, the first thing my application does is call
CoInitializeSecurity with the specified parameters. I'm using
VS2003.NET and .NET 1.1 to develop the application.
This has worked fine on engli... more >>
Mangled bits of gc class embedded within native C++ class.
Posted by seek help at 2/1/2006 5:26:37 PM
Hello,
IDE: VS .NET 2003.
Problem: Mangled bits of gc class embedded within native C++ class.
Description: I have a gc class, BoxedInfo. This wraps a Value type
structure, NotiInfo. Basically, this structure is imported into MC++ library
from a C# library.
//gc class in MC++
[StructLa... more >>
Please confirm my c to c# structs
Posted by Martin Venter at 2/1/2006 2:36:19 PM
Hi,
I'm busy writing wrapper in c# for a dll. (iaxclient.dll for anyone that are
interested)
It uses a number of structs that I need to convert from c to c#.
I've done all of them as I think they should be done but I need someone to
look over them and confirm.
I'm sure I've made mistakes... more >>
fatal error C1084: Cannot read type library file: 'q:\myapp.tlb': Error loading type library/DLL.
Posted by Regy at 2/1/2006 4:13:01 AM
Hello!
Here's my situation:
..NET
**************************************
I've created a simple .NET C# Class Library that uses
System.Runtime.InteropServices.
In it, I define this interface (that exposes some basic functions):
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public inte... more >>
|