all groups > dotnet interop > june 2007 > threads for june 8 - 14, 2007
Filter by week: 1 2 3 4 5
Returning an Array of C# Structures
Posted by hpw at 6/14/2007 1:41:56 PM
Hi all,
i'm trying to use COM Interop to return an array of c# structures to
Native code.
I tried to marshall the Array as SAFEARRAY.
The structure:
[StructLayout(LayoutKind.Sequential)]
[ComVisible(true)]
public struct teststruct{
[MarshalAs(UnmanagedType.LPStr)]
public string... more >>
AccessViolationException Occurred
Posted by Mehul Gurjar at 6/14/2007 1:27:49 PM
Hello,
I am trying to call an API Function (API is written in C Language). On a
particular function I am getting an exception
"AccessViolationException was unhandled by user... Attempted to read or
write protected memory. This is often an indication that other memory is
corrupt."
Can ... more >>
change coclass in COM Assembly
Posted by herc at 6/14/2007 8:23:06 AM
I have a .Net 1.1 assembly that is being exposed/packaged as a COM
object. Interally there is a class "Dog" that to the outside world I
want them to see "Cat". Back in the world of unmanaged C++ this is
easy to do, simply change the name in the idl file from Dog to Cat and
change any reference... more >>
Help! - The callee is not available and disappeared Error Message
Posted by JerryWEC at 6/13/2007 2:12:38 PM
ATTN: COM Experts
I have been getting this error message and have post a few times but still
don't have any answers and I can't find any on the www.
*** Message:
The callee (server [not server application]) is not available and
disappeared; all connections are invalid. The call may have e... more >>
waveOutPrepareHeader crashes with Vista x64
Posted by assaf at 6/13/2007 1:55:20 PM
Hello all.
I am invoking waveOutPrepareHeader in Vista x64.
I am getting the following error:
"An invalid parameter was passed to a system function."
Here is the code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System... more >>
How to ensure Microsoft.mshtml is on deployement machines?
Posted by Dan Cooperstock at 6/13/2007 7:59:19 AM
I'm using a CodeProject project in my application that shows how to embed
an editible IE control into a .NET window, and control it in various ways.
(I'm using it for mail merge.) However, the code requires a reference to
the Microsoft.mshtml assembly (a Primary Interpop Assembly, I believe), ... more >>
using Unsigned Thirdparty DLL
Posted by Aravind at 6/12/2007 3:12:00 AM
Hi,
I have a Third party DLL which is not signed. I am trying to use that DLL in
my Class Library. While time of building i got an error saying "The
referenced DLL doesnot have strong name key"
I used ILDASM to disassemble the dll. The output containes Sample.IL
Sample.res and Sample.Res... more >>
Marshal.AllocHGlobal in 64 bit Vista
Posted by assaf at 6/11/2007 8:50:31 PM
Hello all.
I see that Marshal.AllocHGlobal is always returning memory in a 32 bit
memory address.
Can I be assured that this will always be the case?
Thanks.
Assaf
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is there not an easier way to latebind in C#?
Posted by Mark Howell at 6/11/2007 5:45:30 PM
Rather than p/Invoke, is there not an easier way to Interop to Office
products in C# such that I don't have to worry about what version the user
is running? In VB it's merely using late binding (Createobject, etc). I
don't want to include a reference to VB in my C# program and p/Invoke
(G... more >>
VB2005 not deploying properly
Posted by Tym at 6/11/2007 1:41:53 PM
I've googled until I'm blue in the face - nowhere can I find the solution to
this....
Developed my first real app in vb.net 2005. works great on my PC and my
laptop (which also has VB.Net 2005 installed on it)
The app also installs in my friends new Dell laptop
However, on my other PC a... more >>
few problems while calling NetShareAdd from C#?
Posted by giddy at 6/11/2007 2:41:39 AM
hi,
This is the first time i'm calling win32 functions from C#(i did call
MessageBox! though =P) and i think i've done my homework with the
memory management , the call however does not succeed , it fails with
an error.
It fails with error code : 127 (which i cant find in LMErr.h)
I prob... more >>
log4net implimentation in a DLL ..???
Posted by Jaddu at 6/11/2007 12:00:00 AM
HI All,
Here is my problem:
log4net works fine with my Client (Windows Application .Net 1.1)
but does not log any thing when i use it in my server (Com+ DLLs).
Does any one know why or how to make it work.
Thanks in Advance
Harish
... more >>
Type library cannot be re-imported as a CLR assembly
Posted by Alex at 6/10/2007 7:28:31 PM
Dear All,
I am trying to write a C# DLL that would work with VBA and C++ applications.
After registering my DLL with RegAsm (regasm MyDll.dll \t MyDll.tlb) I can
use it in VBA. However I can not add a MyDll.dll or MyDll.tlb to
VisualStudio 2005. If I am trying to add it in C++ environment t... more >>
'System.StackOverflowException'
Posted by Sandeep Thoppil at 6/9/2007 8:36:19 AM
Hi
I am using Word 2003 interop to read and write into activeX controls that I am using inside Word document. I am accessing those controls from a VB.net application.
In some machine I found the application unexpectedy getting closed. As i debugged it I found ...
An unhandled exception of ty... more >>
Mangaged to Unmanaged code I2C device access violation issue
Posted by Tonofit at 6/8/2007 4:55:00 PM
I'm doing a IO Control function call to set a I2C device's frequency as the
first part of a sequence of other IO calls. I'm getting an access violation
in unmanged code in passing PBYTE pBufIn in the function below's signature.
I've included a description of the comments for the driver funct... more >>
Excel 2007 Copy to Clipboard -- Word 2007 Paste Special
Posted by JT at 6/8/2007 3:38:06 PM
We are programatically generating Excel Charts (2007) and need to
embed them into a document. The problem stems that we do not
initially know how many charts will be generated, and they all differ
in data points. Thus because of the way they are linked we cannot:
for each DataSet in All_Data... more >>
Basics of Excel interop
Posted by Kevin at 6/8/2007 2:06:04 PM
Hello, I'm writing a C# application in VS 2005 that needs to open
Excel and output charts for various reports. My plan of attack was to
record a macro in Excel of the end user creating and formatting the
charts the way they want, and then include the code from the macro in
my C# project.
I a... more >>
COM and Marshal Problem
Posted by login NO[at]SPAM derimay.com at 6/8/2007 12:33:12 PM
Hi,
I am certainly not an expert to C# and COM/Marshal.
I cannot manage how to handle this problem:
I want to call the following COM function from a C# Programm:
IDL Description: (Simplified)
interface IaIf : IDispatch
{
..=2E.
[id(20), helpstring("")] HRESULT getSomething([in] int numRo... more >>
Load a COM component dinamically
Posted by Roger Tranchez at 6/8/2007 9:56:00 AM
Hello,
One of our enterprise applications must have a reference to a tlb file that
exposes methods from a COM component residing on our local network.
Not all the users of that application will have to use the functionality of
that COM component, thus, it will be no necessary to load alway... more >>
Interop and .NET 3
Posted by jweizman at 6/8/2007 4:05:53 AM
Hi
I have an OCX i would like to use in .NET 3 with WPF.
I use aximp to create the wrapper. unfortunatly, this creates a
Winform 2.0 dependency.
I don't want to mix .NET 2 and .NET 3 together....
What can i do ?
Thanks
Jonathan
... more >>
|