all groups > dotnet interop > october 2004 > threads for october 22 - 28, 2004
Filter by week: 1 2 3 4 5
Problem when using COM from a webservice
Posted by rknewsaccount NO[at]SPAM yahoo.co.uk at 10/28/2004 3:10:05 AM
Hi,
I have written some code in VB.net that uses a COM object via a
reference I have add to my project. This program works as expected. I
thought it would be a neat idea to expose the functionality offered by
this program as a web service so that I can use the program across my
UNIX/LINUX and... more >>
tlbimp on Excel9.olb
Posted by Tim Marsden at 10/27/2004 4:31:28 PM
Hi,
I hoping am using Tlbimp Excel9.olb to generate the office.dll and excel.dll
so i can then use ilasm to created the ils to modify.
However I get the message "Tlbimp error: System.IO.FileNotFoundException -
File or assembly name Microsoft.Vbe.Interop, or one of its dependencis, was
not fou... more >>
Office interop
Posted by Luca Guccione at 10/27/2004 3:34:54 PM
How I can use different version of the same assembly in one project?
Ex: microsoft.office.interop ver 11.0 (for Office 2003) and ver 10.x (for
previous Office version).
Thx
Luca Guccione
... more >>
GetCustomAttributes: MarshalAsAttribute
Posted by Chakravarthy Bollapalli \(IFIN SCC COM\) at 10/27/2004 12:22:48 PM
Hi,
I tried to retrieve CustomAttributes from a field in a class that has a
MarshalAs attribute but I couldn't.
Out of frustration I tried all possible combinations.
GetCustomAttributes(true);
GetCustomAttributes(false);
GetCustomAttributes(typeof(MarshalAsAttribute), true);
GetCustom... more >>
CFSTR_SHELLIDLIST Clipboard Format
Posted by Jeff Gaines at 10/27/2004 11:38:56 AM
I am trying to use the CFSTR_SHELLIDLIST clipboard format to allow the
creation of links to files for a drag and drop operation in a C# app.
I am obtaining PIDL's to the files in question and then setting up a
CIDA structure in global memory - reading it back it seems to be in the
format req... more >>
C# Word automation
Posted by Weston Weems at 10/27/2004 10:08:11 AM
Hello...
I've seen about 10 ways to do this, and for whatever
reason I cant insert page breaks or linebreaks (or rather
I can, but they dont appear to happen in the resulting
document.
I get a reference to the endofdocument bookmark range
then I can create a paragraph based on that, a... more >>
ASP.NET and Excel
Posted by Jan at 10/27/2004 2:23:01 AM
I want to use Excel-sheets as input and output in an ASP.NET environment. I
always get the message that the application has not enough priviliges to open
Excel.
Can anybody give me an idea what i have to do. I'm working on a localhost
with IIS... more >>
Bug in Office Interop using SaveAs?
Posted by Jediah L. at 10/26/2004 11:55:24 PM
The following code snippet fails when trying to save a mailitem to a windows
folder:
I've tried many variations of path - If i supply a file name I get an
"Invalid Parameter" error - so i'm pretty sure it just wants path - and when
I supply path (with \ or without \ as the last char) this i... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Preventing aggregation in a .NET class
Posted by Robert Simpson at 10/26/2004 3:01:02 PM
Is there any way to mark a .NET interop class as non-aggregatable? My .NET
classes are being instantiated as aggegatable objects by 3rd party COM
objects, and when they're passed around to my other .NET objects they're
being passed as __ComObject because the Marshaler can't figure out what to... more >>
Attaching a form object to an existing window?
Posted by RichM at 10/26/2004 11:23:02 AM
Is it possible to create an empty form that attaches to an existing window
handle? I have a .NET class library method that requires a form ref as a
parameter, but all I have is a window handle. I'm hoping to do this the easy
way.... more >>
How can you call managed code without hosting the CLR
Posted by Roy Chastain at 10/26/2004 11:18:15 AM
The code at http://www.codeproject.com/dotnet/bridge.asp is an example of how to call managed C++ from an unmanaged CLI program.
This code does not make any of the calls to initiate the CLR etc.
I have tried it, and it works, but I really don't understand how and why since the CLR and default... more >>
Marshal::StringToHGlobalAnsi implicit
Posted by rcotton NO[at]SPAM mindspring.com at 10/26/2004 10:51:56 AM
Does the following code cause a memory leak in .NET?
Void Function1()
{
hFile= CreateFile(static_cast<const char
*>(Marshal::StringToHGlobalAnsi(s).ToPointer()),
GENERIC_WRITE,
0,
NUL... more >>
Remoting: Returning an Arraylist of datatables
Posted by Z D at 10/26/2004 10:27:51 AM
Hello,
I'm currently using Remoting (HTTP/Binary) to remote a simple object.
Everything is working fine except for one function that returns an arraylist
of datatables.
When I call this function, nothing is returned (ie length of array =0).
However, if I comment out my config file so tha... more >>
Non-visual C# objects on a webpage are not marked as "safe for scr
Posted by lwickland at 10/26/2004 8:11:04 AM
Non-visual C# objects on a webpage are not marked as "safe for scripting"
I'm developing .NET components in C# which are used as ActiveX-style
controls on web pages that are displayed inside a custom browser which is
based on the IE web browser control. On 3 of about 100 PCs that the control... more >>
Java classes called from .net program
Posted by licx_ NO[at]SPAM hotmail.com at 10/26/2004 6:24:53 AM
I need to call methods of java classes from a .net program. There is a
way to do this?... more >>
IDE is very slow because of Output window
Posted by James NO[at]SPAM avecsys at 10/26/2004 5:31:01 AM
I have a C# WinForms app which reuses unmanaged C++ dlls using COM interop.
When I debug the app by running the code in the IDE, it is very very slow. In
fact almost too slow to use. However, when I run the .exe, it is very very
fast. I have noticed huge numbers of lines of info being printed ... more >>
program dialing a RAS connection from C# program
Posted by Nadav at 10/26/2004 1:25:03 AM
I have a program in C# that uses P/Invoke to dialup a RAS connection.
On some computers this does not work.
The error I get is #86 (The specified network password is not correct).
I tried looking for information on this error on the internet and As far as
I can tell this error is related to aut... more >>
Changing an unmanaged string from managed code
Posted by Roy Chastain at 10/25/2004 2:47:40 PM
I have successfully loaded a MANAGED C++ dll from an UNmanaged C++ program. I can even manage to call methods in classes in that
DLL. What I need to know is how to pass a string back to the UNmanaged code from the managed code.
public __gc __interface KMS::Transport::Managed::IManager
{
pub... more >>
Office 2000 Interop
Posted by Ken at 10/25/2004 6:43:03 AM
I've written a VB.Net application that uses Office 2003 (Word and Excel)
automation. But, I have a mix of Windows 2K workstations with Office 2K,
Office XP, and Office 2003.
I've read KB articles about Office development under the .Net framework,
including an article on the Office XP PIAs. ... more >>
Messages for MouseLeave, MouseEnter, etc.
Posted by James Hancock at 10/23/2004 12:23:54 AM
Anyone know what messages are analogous to:
MouseLeave
MouseEnter
MouseHover
??
Thanks!
... more >>
Read Only Recommended
Posted by Aric Levin at 10/22/2004 4:28:05 PM
I am creating an Excel File through code, but when I try to open the file, I
always get the following message:
<File name> should be opened as read-only unless you need to save changes to
it. Open as read-only?
KB Article 181688 Mentions this problem:
http://support.microsoft.com/default.a... more >>
Office Add-in. Trapping/Redirecting CTRL-S
Posted by Jason at 10/22/2004 3:21:02 PM
Built an Office Addin with .net 2003. I have captured the save and save as
menu options so I can run my own code before the regular save function
executes. However, I have not been able to figure out how to do the same with
CTRL-S. Does anyone have any ideas?
Thanks
Jason
... more >>
Whidbey TypeLibConverter improvements? (please leave my interface types alone)
Posted by Per Bergland at 10/22/2004 1:30:42 PM
Does anyone know if the Whidbey TypeLibConverter has an option that
corrects the IMO greates flaw of all:
The VB6-esque conversion of all coclass default interfaces to the
coclass itself (just like VB6 pretends that the default interface == the
coclass but does a much better job at it than .N... more >>
Passing blittable types in callback functions
Posted by Ken Soh at 10/22/2004 12:15:02 PM
Hi all,
I'm having problems passing a blittable type (bool) from unmanaged C++ code
to a managed callback function.
I have an unmanaged C callback function declared as follows:
typedef int __stdcall PostProcFileCallback(void *pData, LPCTSTR pszFilename,
bool bSkipped);
and some code ... more >>
Confusion: Threading & COM Interop
Posted by Z D at 10/22/2004 11:48:22 AM
Hello,
I'm having a strange problem that is probably due to my lack of
understanding of how threading & COM Interop works in a WinForms.NET
application.
Here's the situation:
I have a 3rd party COM component that takes about 5 seconds to run one of
its functions (Network IO bound call... more >>
|