all groups > dotnet interop > october 2003 > threads for october 29 - 31, 2003
Filter by week: 1 2 3 4 5
Array
Posted by XingZheng at 10/31/2003 11:43:40 AM
Hi
I use pInvoke to call Dll.
How to delete buffer which is allocated in visual c++.
In Visual C ++
public void GetArray(BYTE* &buffer, UINT* length)
{
buffer = new BYTE[10]; //How to delete buffer in C#
......
}
In C#
public void GetArray(out IntPtr lpBuf, out int length);
... more >>
Application crashes ignoring try{...}catch{...}
Posted by Alexey Kouzmitch at 10/31/2003 10:00:09 AM
Hi,
I wrote a console application which is called from a SQL Server job. The
application utilizes a COM object, to pump data from a legacy (not very old
however) application to SQL server. The application works fine, but once in
a while it fails with the following message written to the event ... more >>
How to automate outlook without office ?
Posted by François_Vallernaud at 10/31/2003 9:04:22 AM
I see that it is possible to automate outlook with the
automation object for office msoutl.olb
Unfortunatly Office isn't installed on my computer.
Is it possible to automate outlook using an other way ?
thanks for your help... more >>
Mapping IDL Interface
Posted by Shawn at 10/31/2003 8:34:33 AM
From the Platform SDK, for MMC. Please help mapping the
interface IToolbar for use with C#. I'm specifically
having problems with the AddButtons method, that accepts a
c-style array of MMCBUTTON structure.
IToolbar (from Platform SDK):
[
object,
uuid(43136EB9-D36C-11CF-... more >>
Exclude from Marshal
Posted by Jonny Nilsson at 10/31/2003 8:09:43 AM
Hi
I have a struct with 4 variables in it. How do I do if I dont want all these
variable to be Marshal. Like exsample below.
/Jonny
public class Test
{
public int nType; // To be marskal
public int nSize; // To be mar... more >>
Accessing C# Components from Borland C++ Builder
Posted by Curtis at 10/31/2003 7:46:47 AM
I am investigating the possibility of porting an
application originally developed in Borland C++ Builder 3
to C#.NET. As a proof of concept I need to develop
components in C# and access them from Borland. At least
one of these components is required to access the Serial
port.
So far... more >>
strange error not cought by try...catch...
Posted by Alexey Kouzmitch at 10/30/2003 5:01:20 PM
Hi,
I wrote a console application which is called from a SQL Server job. The
application utilizes a COM object, to pump data from a legacy (no very old
however) application to SQL server. The application works fine, but once in
a while it fails with the following message written to the event l... more >>
Problem in Passing structure to SendMessage API
Posted by anand.dani NO[at]SPAM T-Mobile.com at 10/30/2003 3:16:45 PM
Hi,
I am trying to pass structure in LParam of SendMessage API. I could
not able to get the value in called window.The code and declaration is
as below:
//Class A
//********
[DllImport("User32.Dll" , CharSet=CharSet.Auto)]
private static extern long SendMessage(
IntPtr hWnd, // h... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
2003 Excel Interop Interface Change
Posted by Roman at 10/30/2003 6:39:58 AM
It seems that some of the Office 2003 interfaces changed
(Excel's theWorkbooks.Open in particular). I am using this
call in my Windows Forms application. Do I have to add
references to two Excel assemblies (2003 and prior) and
have to seperate 'Open' calls in the 'If' statement
(depending ... more >>
HttpContext.Current always returns NULL when called from Classic ASP
Posted by mattk NO[at]SPAM mattk.dj at 10/30/2003 5:14:28 AM
Hello,
I am porting my existing ASP business logic into C#, compiling as an
application, then using COM callable wrappers to instantiate the
application under ASP.
I am trying to use HttpContext.Current.Request.MapPath in my c# code,
but when I call the code from ASP HttpContext.Current ret... more >>
Do threads behave Differently on Windows 98?
Posted by Codemonkey at 10/29/2003 4:46:41 PM
Hi,
Sorry for the cross group post, but I couldn't find a group that deals with
threading in .net.
Anyway, I've noticed a difference in the way my program acts on Windows 98
than it does on WindowsXP and was wondering if anybody can explain this
behaviour.
My application runs in the back... more >>
Trouble passing interface as VT_DISPATCH
Posted by Greg Freeman at 10/29/2003 2:52:43 PM
I'm trying to pass a callback object from .NET to COM.
I implement the callback functions in class MyCallback
The COM object needs a Variant VT_DISPATCH type passed to identify the
callback object.
C++ code:
MyCallback * cb = new MyCallback(layer);
Object * dispatch=new
System::Runtime::Int... more >>
Call user defined word vba function from C#
Posted by AP at 10/29/2003 2:43:01 PM
Hi,
If I have created a word template that has a VBA function that I defined in
it, is there anyway I can call this function from C#?
Adam
... more >>
Marshaling Unsigned Types
Posted by Barry Simon at 10/29/2003 11:56:33 AM
Is there a way to marshal unsigned arrays between managed and unmanged code?
Marshal.Copy does not seem to support this and I am unable to find anything
else that does.
- Thanks in advance
... more >>
Accessing .NET class instance from Word
Posted by AP at 10/29/2003 10:20:19 AM
Hi,
My .NET application has a dll with a singleton class in it. In this
singleton class I create and launch a word document. In this word document I
would like to add a close event handler that will call back into the .NET
singleton class. Is this possible? How would I get a handle on this
si... more >>
MSXML interop possible?
Posted by Rick Walters at 10/29/2003 9:54:43 AM
Hello all,
I'm trying to get a legacy ASP application to connect to the functionality
I've created in a .NET component. The ASP app needs to pass an MSXML
DOMDocument to one of the methods of the component, which should then
manipulate it and pass it back.
My first assumption (possibly inco... more >>
Problems deleting from the GAC
Posted by mattk NO[at]SPAM mattk.dj at 10/29/2003 7:02:44 AM
I have a number of different versions of the same assembly in the GAC
that I cannot seem to remove. I got them in there by using:
gacutil /i emailAuth.dll.
I have tried to following methods to remove them:
1. gacutil /u emailAuth
2. gacutil /uf emailAuth - both generate the following mess... more >>
NullPointerException when calling C function in aspnet application
Posted by Christopher Sin at 10/29/2003 5:28:04 AM
Hi, I repost my message here, because I have had posted it
on a wrong group.
Hi,
First, Please ignore my poor English speaking.
I have to write a c# wrapper to a C library.
This is OK, but I have difficulties with some functions
that deals with double indirections.
The C function is
... more >>
|