all groups > dotnet interop > february 2004 > threads for february 1 - 7, 2004
Filter by week: 1 2 3 4
Creating email in outlook
Posted by John at 2/7/2004 3:23:39 PM
Hi
I am trying to find the way to create an email in outlook. I am using the
code given at the end. It works fine the first time but calling the code
second time gives the following error;
Unhandled Exception: System.Reflection.TargetInvocationException: Exception
has been thrown by the tar... more >>
Issue about output parameter
Posted by Mary at 2/7/2004 2:06:09 AM
Hi everyone,
In real work,some functions have output parameter,it is not necessary for the calling procedure to pass in a parameter that contain non-null value,so a programmer hope passing in a object variable and get back the output value.
The following code works well in VB.NET.
... more >>
Win32 Variable Type to C# Variable Types
Posted by Alireza Haghshenass at 2/6/2004 9:52:59 PM
Dear All,
I wanted to know wether there is a reference for changing different Win32
variable types (Data Types) to C# equivalents or not ? If yes, can anyone
post me the URL?
Alireza
... more >>
Dragging messages from Outlook to .NET WinForms app
Posted by Morten Joehnk at 2/6/2004 3:02:25 PM
Help!
I'm trying to do drag-and-drop of messages from Outlook to a .NET WinForms,
but whatever i try, i cant get the message - is there anyone who have
succeeded doing this - and how?
Thanks in advance
... more >>
.NET remoting object interop
Posted by dinesh336 NO[at]SPAM hotmail.com at 2/6/2004 10:56:25 AM
Hi all,
I have a .NET object that is called from C++ ATL app using all the
wonderful interop goodies like tlbexp.exe, regasm.exe, #import
......server.tlb etc. The problem is I want to have only one instance
of the object irrespective of the number of clients (C++ or otherwise)
connecting to ... more >>
Capture Ctrl+Alt+Del
Posted by Pradeep M M at 2/6/2004 3:36:06 AM
Hi
How can we capture Ctrl + Alt + Del keystroke in C# or VB.NET
Pradeep... more >>
PInvokes with managed and unmanaged objects
Posted by James Lapalme at 2/6/2004 1:50:04 AM
Dear All,
I created a dll with the following:
extern "C" _declspec(dllexport) int myFunction(A*){return a->myInt();}
class A{
public:
int i;
int myInt(void){rerturn i;}
}
I creates a C# client with the folllowing:
public class MyClient{
[DllImport("MyDll... more >>
Proper way to get a byte, char, short, int16, etc from a UInt32
Posted by Tom Luetz II at 2/6/2004 12:03:24 AM
I have some code where the data is stored as a series of UInt32's; often the
data
is of a type smaller than this, such as a byte, char, etc.
What is the proper way to get the desired type when this situation exists?
Thanks in advance,
Tom
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Invalid cast in accessing Custom Document Properties.
Posted by Sandeep at 2/5/2004 8:21:06 PM
Hi,
I am trying for word 2000 automation with c#. There I want to get all custom document property of the document as follows:
Microsoft.Office.Core.DocumentProperties props = (Microsoft.Office.Core.DocumentProperties)aDoc.CustomDocumentProperties;
(where aDoc is active Word document).
But t... more >>
Wrapper DLL not working!
Posted by msnews.microsoft.com at 2/5/2004 3:52:02 PM
Hi,
I have an OCX created using Borland Delphi. I'm trying to create a .NET
wrapper for this. I used the TLBIMP.exe command to create the .NET DLL. But
when I try to add it to the toolbox by through 'Customize Toolbox - .NET
Framework Components' and select this new DLL I created, Visual Studi... more >>
ActiveX EXE events not getting through.
Posted by Eric Porter at 2/5/2004 11:12:21 AM
I have a COM DLL, which calls methods in a .NET DLL. Both the COM DLL and
the .NET DLL use an ActiveX EXE. The ActiveX EXE raises one event. The
ActiveX EXE has a strongly named Interop RCW. The .NET uses this RCW but
does not listen for events. The COM DLL defines its reference to the
Acti... more >>
workbook.saveas() problem
Posted by StevenDahlin at 2/5/2004 10:46:05 AM
I am attempting to create a new workbook with the following:
exlWB.SaveAs( "test.xls",
Excel.XlFileFormat.xlWorkbookNormal,
null,
null,
false,
false,
... more >>
COM Interop and Delay Signing of String Names
Posted by Aaron at 2/5/2004 9:21:07 AM
I have a VB.NET DLL that I wish to Delay Sign (ie. I want to assign a strong name after compiling the DLL and obfuscating it). This DLL will also be callable for COM Interop
I have found instructions for setting up the configuration for COM interop and Strong Names, but not for delay signing whe... more >>
unregister dll - com interop
Posted by jackie_sean NO[at]SPAM yahoo.se at 2/5/2004 8:25:20 AM
Ive made a dll with dotnet and i used it as a com dll (com interop).
So I have a myComNet.dll and myComNet.tlb
I need to unregister the dll.
Heres what i did:
regasm /unregister path\myComNet.dll /tlb
it says:
Types unregister successfully.
Types library 'path\myComNet.tlb' unre... more >>
Calling a VB dll with a ByRef variant argument from C#
Posted by nathanp NO[at]SPAM spring2.com at 2/5/2004 7:35:42 AM
I have an old vb dll with a method declared as
Public Function isOverBudget(ByVal OrderID As Long, ByVal encodeType
As Long, ByRef message As Variant) As OverBudgetEnum
The thing giving me a headache is the ByRef variant argument. tlbimp
created that part of the signature as 'ref object mes... more >>
Child Process
Posted by Goncalo at 2/5/2004 6:16:06 AM
Hi.
I don't know if this is possible, and may sound dummie, but...
Is there a way to see if a particular process is a "child" of a thread I am executing?
Thank's in advance
goncalo... more >>
Excel interop problem
Posted by Eugene Karimov at 2/5/2004 3:06:07 AM
Here is the problem
I add a reference to "Excel9.olb" file, in Application interface there is a Range membe
--------
[id(0x000000c5), propget, helpcontext(0x000100c5)
Range* Range
[in] VARIANT Cell1,
[in, optional] VARIANT Cell2)
-------
But when .NET Studi... more >>
problem accessing excel from vb.net
Posted by karthik_dx NO[at]SPAM hotmail.com at 2/4/2004 9:52:15 PM
i initially had some secutity problems while trying to access EXCEL
from VB.NET WEB APPLICATION. then i made some changes in dcomcnfg by
giving the access permission to users. but now i am getting another
error. the error is as follows
The server threw an exception.
Description: An unhandled... more >>
Using VB COM components which implement Interfaces contained in external libraries
Posted by Dirc Khan-Evans at 2/4/2004 5:39:09 PM
Problem:
We have VB Components which implement an interface from another dll.
Example: myClass (in A.dll) implements myInterface (in B.dll)
Now, when we generate RCW';s, either in VS.NET or using TLBIMP.EXE , it
tries to create a wrapper for the dll (interop.A.dll) and a wrapper for the
int... more >>
converting Unix datetime count to .Net DateTime object
Posted by Mark Worrall at 2/4/2004 5:34:49 PM
I am being supplied a count of number of seconds since Jan 1st 1970, i.e. a
Unix system time. How can I convert this into a valid .Net DateTime object ?
thanks,
Mark
WinXP / C#.Net 2003
... more >>
Using a C# delegate in VB6
Posted by omyek NO[at]SPAM yahoo.com at 2/4/2004 4:54:24 PM
Hello everyone,
I've got a C# dll that I'd like to be able to use in VB6. The library
looks something like this
namespace MyNamespace
{
public delegate void ProgressDelegate(string label, long
current, long total);
public class MyClass
{
public string MyFunction(ProgressDelegate... more >>
Calling Still Image API in C#
Posted by Travis Butynski at 2/4/2004 4:34:10 PM
Does anyone have any suggestions on how to call the Still Image API to
register (and un-reg) a C# application for a device? MSDN has an example
for C++ but I'm not sure how to translate this into C# code.
The STI API reference is located at:
http://msdn.microsoft.com/library/default.asp?url=/... more >>
C#: How to find out IE's URL
Posted by BK at 2/4/2004 3:21:17 PM
Hi all!
I am a total newbie on this stuff and I am probably asking for
an answer for very stupid (simple) problem.
Well..
I would like to write a C# application that checks URLs where
user go/surf by using IE. I found on the internet how to do that
by launching own instance of IE (new Inte... more >>
InvalidCastException Using AzMan from ASP.NET
Posted by cbilson NO[at]SPAM crimes.net at 2/4/2004 11:33:16 AM
Hi All,
I am having a problem using the AzMan PIA in an ASP.NET application.
Here are the basic steps my application is performing:
1. During startup, an AzAuthorizationStore is initialized from an XML
File. OpenApplication is called. The resulting IAzApplication is
stored in a static varia... more >>
Opening Word Doc files thru VB.NET that is alraedy open.
Posted by Suma_Krao at 2/4/2004 2:46:07 AM
H
I am trying to open a word Doc through VB.NET
I have included the reference for Microsoft Word 10.0 object library and Microsoft.office.core, and the office that I have on my system is Office 2002
I am using the following code to open a document and add some custom document properties to it
... more >>
Problem with InterOp of the MSI.DLL with VB.NET
Posted by Scott Williams at 2/3/2004 5:44:30 PM
I'm not a hardcore .NET InterOp guy, basically I add in the reference, and
away I go.
Let me explain the problem first, some of this is MSI specific but my
problem comes in the InterOp of the MSI automation objects. I am converting
a VB6 program I have that is a custom MSI build tool. One of... more >>
why my C# component COM is not listed
Posted by david at 2/3/2004 3:19:38 PM
Hi, all
I created a COM by C# using the method provided by:
http://64.4.8.250/cgi-bin/linkrd?_lang=3DCN&lah=3Dc1f2e39239ad48bfc6b0893=
786d6827e&lat=3D1075837339&hm___action=3Dhttp%3a%2f%2fwww%2ec%2dsharpcorn=
er%2ecom%2fvbnet%2fCOMinCSharpM%2easp
But in Visual Studio 2003, if go toolbox, r... more >>
Interop/deploy Questions!
Posted by Kris Rudin at 2/3/2004 11:19:14 AM
I have developed a C# application that uses the MS DSO (decision support
objects). I simply added the library as a reference in Visual Studio, and
then said "using DSO". This gives me the ability to create DSO objects and
use methods/properties.
This works fine on my machine.
What I don't u... more >>
Outlook not sending mail
Posted by John at 2/3/2004 3:46:54 AM
Hi
When I open a new mail in outlook from within my vb.net app and try to send
email by pressing the outlook send button, nothing happens. The send button
gets pressed but it does not send mail. I have to close the mail form, in
the end. What is the problem and how can I solve it?
Thanks
... more >>
Help!!!!!! Freeing memory on unmanaged heap
Posted by Rakesh at 2/2/2004 9:36:06 PM
Hi
I am calling a function in native C style dll which allocates memory and later freeing the same from C# app
However the memory does not get freed and keeps on increasing
Below is the code snippet
-----------------------------------------------------------
// MemoryDll.cpp : Defines the entry... more >>
Interop/DLLImport - MarshalDirectiveException
Posted by Tim Mulholland at 2/2/2004 2:45:01 PM
I need to access a function from a dll but am having problems with the
conversion.
the def from the documentation is:
extern "C" __stdcall int tira_get_captured_data_vb ( unsigned char data[],
int* size );
I tried converting that to:
[DllImport("Tira2.dll")] public static extern int
t... more >>
Help with IBindStatusCallback
Posted by Ben Rush at 2/2/2004 11:32:05 AM
(Summary - I need help creating a COM class in Managed Extensions for C++)
Hello world,
I am exploring UrlMonikers and would like to use them in my C# application.
I would like to have my managed class, therefore, implement an interface
called IBindStatusCallback (defined within urlmon.idl),... more >>
Problem with Excel 2000 in .NET
Posted by janezcas NO[at]SPAM yahoo.com at 2/2/2004 1:05:24 AM
I have problem with Excel 2000 running on target machine with Win2K
when opening it from .NET application (Windows Forms). Application
opens Excel from code and Excel stays open for user to work with the
xls file. However, if users closes Excel prior to ending the
application, Excel closes and d... more >>
Public .Net method not visible in COM app
Posted by Sun Murthy at 2/1/2004 10:51:11 PM
I followed MSDN examples to create a .Net component library and a CCW for it. I then proceed to use the CCW in a VB6 app. I see the .Net library listed as a reference in the VB 6 project, I can include that reference and instantiate that object. However, none of the public methods in the .Net compon... more >>
How can I call from C# an out parameter that is an array?
Posted by Pino at 2/1/2004 8:44:00 PM
Hi to all!
I'd like:
to call from C#, through marshalling, a function that dynamically allocate
an array of strings.
In other words, from C# the call should be the following:
int myfunc( out string[] my_array ); // C#
where the dimension of the array is calculated internally in the fo... more >>
Bind HTML event
Posted by Peter Wone at 2/1/2004 3:41:12 PM
Can someone explaini this before I go nuts? In the following example, all
the
event handlers fire except for the submit event handler. No errors,
it just doesn't fire. Also, binding any event to the form object stifles the
msg
from the onsubmit handler embedded in the HTML -- what's going on th... more >>
WebBrowser Control in C# App
Posted by Mike Schellhase at 2/1/2004 2:26:08 PM
I am building a Windows application that hosts an ASP.NET application using the MS Web Browser Control. (see http://www.west-wind.com/presentations/aspnetruntime/aspnetruntime.asp for a similar app). I run into problems if one of my ASP.NET pages needs to upload a file (via HTTP). I am using the ... more >>
|