all groups > dotnet interop > july 2003 > threads for july 1 - 7, 2003
Filter by week: 1 2 3 4 5
Loading a DLL with a dynamic path.
Posted by howard at 7/7/2003 4:08:58 PM
A previous thread on this forum, dated 6/24/2003 at
4:48:36 PM, explains how to manually call LoadLibrary to
load a DLL from a full path given dynamically at runtime,
as detailed in
http://www.dotnetinterop.com/faq/?q=LoadLibrary
I have encountered the following problem when I do this:... more >>
Handling errors from .Net components in VB6 code
Posted by TJoker .NET at 7/7/2003 2:03:36 PM
Hi all.
I'm writing some .net compoents that are also going to be used from vb6
code. Is there a way for me to distinguish all the different types of
exceptions that the .net code my throw ? My .net component can throw a few
different types of exceptions and I need my vb6 code to take action
di... more >>
Weird Error with Regasm
Posted by David M. Nolf at 7/7/2003 12:26:38 PM
Can anyone tell mw why REGASM would be giving me the following error:
Type MyType from Assembly blah, Version,Culture, publickeytoken can not
extend from any other type.
I am not sure why I am getting this error as I can see nothing wrong. There
is also no documentation on this error and w... more >>
Office Web Components w/ Windows Forms on Citrix
Posted by Heather at 7/7/2003 12:08:01 PM
Hello -
We have a VB.net app that utilizes Office Web Components,
including the pivot table and spreadsheet components. The
app works fine under normal conditions. However, when we
run the app through a Citrix server, there is one
exception. If, during the course of a user session, an... more >>
COM at .NET termination. Program hangs!
Posted by David Taylor at 7/7/2003 11:46:50 AM
I wonder if anyone can help me unravel the following.
(Sorry for the detail, but I don't want to miss out anything that later
turns out to be important!)
I have written a simple .NET console application that references an in
process .COM server (written in house, but not by me). All works we... more >>
Documentation about namespace Word
Posted by Dehaibe_François at 7/7/2003 7:46:01 AM
Hi,
I'm programming an application that have to generate a=20
Word Document.=20
I have the basic commands to create, modify and close a=20
document but I would like to know if someone have tutorial=20
or help about all classes and methods of the namespace=20
Word.
Thanks a lot.
Best ... more >>
How To Step Into .NET DLL From VB6 IDE
Posted by Steve at 7/6/2003 7:09:37 PM
I implemented C# .NET DLL (a.dll) for used in both .NET
(b.dll) and VB6 (c.dll) business logic DLL. They are then
called by ASP.NET and classic ASP respectively. For .NET
environment, b.dll calling a.dll is working fine, so I
know my .NET a.dll is working. After I GacUtil and regAsm
to m... more >>
Using .NET COM objects in VB4
Posted by R_O_O_K at 7/6/2003 2:38:25 PM
Hi!
I encounter the following problem:
Let's have a simple .NET COM class.
using System;
using System.Runtime.InteropServices;
namespace Galaxy.Guide
{
[Guid("F747532F-D6F7-4c4b-A372-76DBC4CDD02A")]
public class DeepThought
{
public void TheAnswer() {
System.Windows.Forms.Me... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Freeing memory immediately after Marshal.PtrToStruct()
Posted by Michel Gallant at 7/6/2003 10:58:33 AM
Marshal.PtrToStructure() documentation indicates that it returns
a "newly allocated managed object" from unmanaged memory described by IntPtr.
Can the allocated memory be free'd immediately after PtrToStructure() ??
and are all members of the managed structure returned accessible?
Are there cas... more >>
KeyContainer tool
Posted by Michel Gallant at 7/5/2003 10:52:43 PM
The keypal .NET utility has been updated to show which of the
listed CryptoAPI key containers have an associated MY store certificate.
Source code is provided showing P/Invoke approaches to calling Win32
CryptoAPI functions of various types:
http://pages.istar.ca/~neutron/dotnet/keypal
-... more >>
IntPtr value type via P/Invoke
Posted by Michel Gallant at 7/5/2003 12:43:37 PM
Probably a simple marshaling question:
..NET value types passed as arguments via P/Invoke must be prototyped
and passed as ref to marshal back changes to the value type. Fine.
According to the .NET MSDN docs, IntPtr is a value type.
Why then when a prototype is configured (for example to ge... more >>
Webbrowser not calling IDispatch method
Posted by Daniel Weber at 7/4/2003 1:25:41 AM
Hi!
In the docs it says: "To gain this control, you need to implement your
host's IDispatch so it handles DISPID_AMBIENT_DLCONTROL. When the WebBrowser
Control is instantiated, it will call your IDispatch::Invoke with this ID."
(ms-help://MS.MSDNQTR.2003FEB.1033/ProgIE/workshop/browser/hosting... more >>
Return string from Fortran Dll back to C#.
Posted by Alex Dong at 7/3/2003 5:45:54 PM
Dear all:
My C# program need a string returned from a Fortran Dll.
The Fortran Dll is like this:
SUBROUTINE REDO(s)
!DEC$ ATTRIBUTES DLLEXPORT::REDO, C
CHARACTER*(*) s
!DEC$ ATTRIBUTES REFERENCE :: s
s = 'Let them talk, now!'C
END
And I use C# PInvoke to call it, the client code lik... more >>
declaring struct with fixed arrays for PInvoke
Posted by Donald Kackman at 7/3/2003 3:12:20 PM
I've got a third party C dll that I need to make use of from C#. I am
attempting to go directly against it's C-style API with P/Invoke rather than
creating a COM wrapper or somesuch other approach.
The problem I am facing is that this dll defines a struct that has two fixed
lengths arrays as m... more >>
Errors automating Excel in VB .NET
Posted by Chris McKenzie at 7/3/2003 3:06:30 PM
I'm trying to generate some custom excel spreadsheets from VB .NET 2003. =
I keep getting the following error.
I have a reference to Microsoft Excel 9.0 Object Library in my project, =
version 1.3.
An unhandled exception of type 'System.InvalidCastException' occurred in =
Generator.exe
Ad... more >>
Calling Win32 API PrintDlg
Posted by Corrie Meyer at 7/3/2003 7:04:14 AM
I am pulling my hair out with this one.
I have the PrintDlg structure and want to get the default printer from
this.
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
[System.Runtime.InteropServices.ComVisible(false)]
public class PRINTDLG {
public Int32 lStructSize;
public... more >>
How do I pass a null value from an old ASP page to a C# component?
Posted by googposter NO[at]SPAM hotmail.com at 7/3/2003 6:42:06 AM
Hi All and thanks for reading:
My C# function looks something like this:
public void MyFunc(int dbId) {
if (dbId==null) {DoSomething();} else {DoSomethingElse();}
}
How do I pass a null to dbId from an old style ASP page?
I've tried passing vbNull (becomes 1), Nothing (becomes 0)... more >>
debugging a C++ dll in a c# program
Posted by Philippe Desgranges at 7/2/2003 5:43:38 PM
Hi!
Does anyone knows how to debug a C++ dll within a c# program with Visual
Studio .NET 2003.
Any help would be apreciated.
regards
---
Philippe Desgranges aka Tsunami
3ie Team Member www.3ie.org
... more >>
MSHTML Rendering Behaviors impossible in .NET
Posted by Robert Temple at 7/1/2003 5:00:37 PM
I was having a problem implementing IHTMLPainter in C#
and saw that you had been trying to help someone else
with the same problem a few months ago on:
microsoft.public.windows.inetexplorer.ie5.programming.comp
onents.webbrowser_ctl
Here is the link to the thread on google:
http://groups... more >>
Lib to Dll Format
Posted by gregory Maroulis at 7/1/2003 8:02:21 AM
Hi
Doeas anyone know if is a tool or a way to convert a .Lib
File of C Version 4.0 to Dll so i can used it from VB.?
Thanks in advance
... more >>
|