all groups > dotnet interop > march 2004 > threads for march 29 - 31, 2004
Filter by week: 1 2 3 4 5
CreateInstance(t) when t is interface (for Mattias)
Posted by Lars Olsson at 3/31/2004 5:54:53 PM
I'm trying to use the IGroupPolicyObject interface
suggested by Mattias S. :
http://www.dotnet247.com/247reference/msgs/39/197771.aspx
I'm wrapping this interface in another class sort of like this:
namespace MyNamespace
{
class WrappedIGroupPolicyObjectClass
{
... more >>
P/Invoke & CallBack functions
Posted by Maxim Kazitov at 3/31/2004 3:54:06 PM
Hi,
In my project I call some C functions from C# code, and some times I should
use callback functions. Usually all works fine.
But in some cases I have following problem :
Error Message: Run Time Check Failure #0 The value of ESP was not properly
saved across a function call. This is usu... more >>
Object Reference not set to an instance... Marshal.Copy problem
Posted by Robin Tucker at 3/31/2004 2:40:42 PM
(apologies in advance for cross post)
Hi there,
I have the following method which uses COM IPersistStorage to "save" a COM
object into an ILockBytes in order for me to be able to fetch the data()
bytes and put them into a database. I am using similar methods to create
COM objects after rea... more >>
.Net COM component registration without restarting IIS?
Posted by bitseek NO[at]SPAM hotmail.com at 3/31/2004 2:13:04 PM
Hello,
I have built a .NET C# COM component for use in classic ASP
applications. When I deploy this COM the only way that I have been
successful is to restart IIS after registering in global cache. With
my VB6 COM components I was able to register the COM in MTS without
restarting IIS. The me... more >>
NEWBIE: use COM Interop or P/Invoke?
Posted by Dan Schullman at 3/31/2004 1:02:08 PM
I'm trying to utilize some COM code (the WM Format SDK to be precise) from a
..NET application and could use some help/pointers on how to interoperate
with it.
FYI, I'm relatively new to Windows programming and am not familiar with many
of the technologies I find in the docs (e.g., OLE, ATL, M... more >>
xTAThreadAttribute and P/Invoke interop
Posted by Dan Schullman at 3/31/2004 12:19:22 PM
I'm creating a C# application that uses P/Invoke to call into an unmanaged
C++ DLL that in turn interacts with COM objects. Will the use of a
xTAThreadAttribute declaration in the C# application have any impact on the
COM threading model eventually used by the C++ DLL? And if not, how can I
cont... more >>
CoCreateInstance error using LocalSystem user--Win2K vs. XP
Posted by Michael Foertsch at 3/31/2004 9:36:18 AM
I am using Interop between COM and C#. I am calling CoCreateInstance to get a COM object. The code is executing inside a service, running as the LocalSystem user
This code executes correctly on XP and Windows Server 2003; i.e. the COM object is instantiated and can be used. However, running the... more >>
80004003 Invalid Pointer when exposing .net assembly to COM
Posted by Richard Murillo at 3/31/2004 9:21:11 AM
I am attempting to setup an API that will bridge managed code into an older legacy system. When I follow the directions in MSKB 817248 on exposing a .NET Assembly for COM Interop (or have VS.Net 2003 do it for me) it successfully registers the assembly in COM, however, i cannot create an instance of... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Exception from HRESULT: 0x8004E005
Posted by Lars-Erik Aabech at 3/31/2004 9:17:04 AM
Hi!
I've read a few posts allready about this problem, but all of them are
inconclusive. I'd really like to know exactly why, and what we should do
about it.
The context is a .net webform calling a static method on a class which is in
turn calling a VB COM+ component which is also used in A... more >>
Problem with COM interop inside a C# webservice
Posted by marco NO[at]SPAM marcoganz.com at 3/31/2004 2:52:24 AM
Hello!
DESCRIPTION
===========
I've registered a COM DLL containing several coclasses:
coclass PlainVanillaObj
{
[default] interface IPlainVanillaObj;
};
[
uuid(AA2715F9-6EF6-40D3-9CFF-04069358221D),
helpstring("PathTableObj Class")
]
coclass PathTableObj
{
[default] interfac... more >>
out and OutAttribute
Posted by Andreas HÃ¥kansson at 3/30/2004 11:13:21 PM
Hello,
I have recently started looking into using interop to use Win32
Interfaces
such as IShellLink and IDiskQuotaControl etc and I was wondering if there
are any differences between making a parameter in a method
out parameter
or
[Out()]parameter
Are the two the same ... more >>
Windows Service using Excel Interop is flaky
Posted by fly1322 NO[at]SPAM email.com at 3/30/2004 8:41:33 PM
Hi,
We have a Windows Service developed using C# that is setup to
automatically generate Excel reports and copy them to multiple shares
based on certain daily criteria. The development env is .NET
Framework 1.1, Office XP plus Office SP PIA, VS.NET 2003 on Win XP
Professional. We created a ... more >>
String Truncation problem when marshalling LPTSTR string to a managed string
Posted by sandeep at 3/30/2004 5:31:07 PM
Hi
I am marshalling a LPTSTR string to a managed string and I get just 30531 characters, rest all is truncated
To be more specific, I have writen code to call "GetOpenFileName" from Comdlg32.dll using P/Invoke, so I could create CustomOpenFileDlg which can read any number of files(limited by the... more >>
type mismatch - string array from c# returned to vbscript client
Posted by Brian Newtz at 3/30/2004 12:21:40 PM
Hello!
I have a c# component which implements the following interface:
public interface IFiles
{
string[] GetFiles(string path, string filter);
bool FileExists(string path);
}
I have it registered for COM and in the GAC so that I can use it from a
classic asp client (vb... more >>
OLE in RichTextBox, IStorage Interop
Posted by Paul Perry at 3/30/2004 8:41:05 AM
Hello
I've been assigned the task of supporting the "Insert Object" command in our C# WinForms application, which allows the user to choose an OLE obejct to insert in a RichTextBox which is the main editor in our form
I have found how to access the OleUIInsertObject() Win32 API to display the di... more >>
how to pass delegate to win32 dll?
Posted by Franz at 3/30/2004 3:09:11 AM
Suppose I have a delegate in C#.
class FooForm {
public delegate void MyFuncDelegate(int iX, int iY);
MyFuncDelegate _myFunc;
[DllImport("Bar.dll")]
public extern static void SetMyFunc(MyFuncDelegate myFunc);
public static void MyFunc(int iX, int iY) {
System.D... more >>
Using VB6 objects from .NET
Posted by PaulR at 3/30/2004 12:51:11 AM
Hi
I have some old VB6 code and I need to automate some testing from .NET by using the VB6 objects and interrogating the results. The VB6 object basically just does some work and returns an XML string which I need to validate
An asp page using the VB6 object would be something like..
set myOb... more >>
Print Windows Control from IE
Posted by Mattias at 3/29/2004 10:21:08 PM
I am hosting an .NET Window Control in an HTML page. It works fine until I try to print the page. When printing the page the Windows Control does not get printed.
Is there a way to make the .NET Windows Control to get printed or do I have to go back to using ActiveX controls?
Any ideas or comments... more >>
ADOX problems
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 3/29/2004 3:05:29 PM
When a set a reference to the ADOX library, I can use the
objects for database structure manipulation, but I get new
errors in other parts of my application, for example,
using the Date() function results in error messages.
Is ADOX confusing the definitions of other libraries?
... more >>
COM target does not implement IDispatch
Posted by r_adhakrishna NO[at]SPAM yahoo.com at 3/29/2004 2:07:24 PM
Hi
could anybody can plz explain me why would I get this error mentioned
below when I am trying to access COM+ proxy from my C# component.
COM target does not implement IDispatch
thanx in advance.
--RK... more >>
Need help making a .NET Managed Wrapper for (unmanaged) C++ .lib (Getright SDK)?
Posted by Mello at 3/29/2004 12:14:42 PM
Hello all
I just purchased the getright SDK a few nights ago to integrate into a
downloader app I'm developing for a company. The SDK comes with a sample
C++ app (just source) and a .lib file. The application won't compile in
VS.NET 2002 (the documentation says it wants MSVC++ 5 or 6) -- it h... more >>
Interop and Word 2003?
Posted by Rodzilla at 3/29/2004 12:14:11 PM
I am trying to do some modifications to a Word document using VS/VB 2003.
I have Office 2003 installed, and I have the PIA's for Windows XP installed.
I included a reference to Micrsoft Word 11.0 library, which is an
Interop.Word.Dll, and the Microsoft.Office.Core 11.0 dll from the GAC gets
... more >>
Calling COM interop from ASP page
Posted by Sanjay Kedare at 3/29/2004 6:22:43 AM
Hi,
I am getting following error when I call COM interop from
ASP page.
Error Type:
mscorlib (0x80070002)
File or assembly name ajcj2njd.dll, or one of its
dependencies, was not found.
/dom/dom.asp, line 4
If I set the application protection to low in IIS, it
works. I tried giving ... more >>
|