all groups > dotnet interop > september 2007
Filter by week: 1 2 3 4 5
Access Excel data
Posted by kkarre at 9/29/2007 5:41:01 AM
Hi,
I'm building a VSTO solution for Excel.
When trying to use dataset designer to create datatables and tableadapters I
get into trouble:
VS 2005 won't connect to Excel!
In the Add Connection I use this driver:Microsoft ODBC Data Source (ODBC)
I choose 'Excel files' and the connection seems ... more >>
0x80040154 - Exception, Interop and 64bit OS.
Posted by ng.w.purrer NO[at]SPAM lenzing.com at 9/25/2007 7:45:46 AM
I have two server
Server A) Production Server with Windows 2k3 64Bit + Comos
Server B) Development Server with Windows 2k3 32 Bit + Visual Studio
2005 + Comos
Comos is the software where the dll is from.
With the command on Server A)
TlbImp "C:\Program Files (x86)\Comos\ocx\comos.dll" /... more >>
Initialize and script ActiveX controls not marked as safe
Posted by Sankalp at 9/24/2007 6:35:11 AM
We have built an ASP.NET C# web application, which is used in the
intranet and uses the Microsoft.Office.Interop.Outlook.dll to
interface with Microsoft Outlook installed on the users machines. For
the ActiveX to work properly, the users need to enable the "Initialize
and script ActiveX controls... more >>
C# How to add index PrimaryKey with DAO
Posted by Requena Claudio at 9/24/2007 3:38:01 AM
Hi,
I’m trying to add an Index PrimaryKey in one table with no success.
in the code below the Fields.Append don't exist and give me error.
DAO.TableDef OBJTable = DAO_DATABASE.TableDefs["Table"];
DAO.Index OBJIndex = OBJTable.CreateIndex("PrimaryKey");
OBJIndex.Fields.Append(OBJIndex.Crea... more >>
ActiveX COM Object In COM+
Posted by Wayne Berry at 9/23/2007 10:36:02 PM
I would like to have my ActiveX Control (User Control in C#) that has a GUI
be hosted in COM+, is this possible? I have to set ComVisible(false) on the
Class in order for it to regasm, and regsvcs correctly, however then it
doesn't show in COM+ under the applications interfaces.
The idea w... more >>
ASSERT in ~CCmdTarget after Drag&Drop between MFC and C#
Posted by whagedorn at 9/21/2007 12:00:00 AM
Hi,
I have written a small test application, where I integrated a c#
forms-window in a mfc-application via COM Interop.
Everthing is running very well, but if I use Drag&Drop from the MFC-part to
the C# window I got a debug ASSERT
in the destructor of the CCmdTaget-Class, which is the basecla... more >>
"Class not registered" error when assembly registered with multiple versions
Posted by Lidström at 9/20/2007 8:44:55 PM
Hello!
I have registered a C# private assembly with two versions (using regasm),
so that the registry contains entries like this:
....\InprocServer32\1.0.0.0 <= I want this
....\InprocServer32\1.0.2819.34866 <= unfortunate mistake
This was before I fixed the ass... more >>
Forms Interop + CrystallReportViewer not working
Posted by PGC at 9/20/2007 12:00:00 AM
Hi,
..NET form itself loads ok but when I bind the DataSet to the report viewer I
get a "Can't find entry point" error.
e.g. CRreportViewer.SetDataSource(MyDataSet) throws an error.
Any ideas on how to get around this one?
Thanks,
PGC
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
C# and C++ in same assembly
Posted by nickdu at 9/19/2007 2:46:03 PM
I've been reading through the MSDN docs and just can't seem to find an answer
to my question. What I'm trying to find out is whether it's possible to
introduce C# into our C++ application. I don't want to do this via a DLL but
instead would like the C# code to be statically linked in the exe... more >>
Stack overflow help
Posted by Bob Bins at 9/18/2007 5:30:00 PM
I am getting a strange System.StackOverflowException exception when my COM
object fires an event in to my .net code.
The call stack is only about 10 items longs so its not the standard infinite
loop. What else would cause this? Is there a way to see how much stack
space is taken up and wh... more >>
Getting byte array from C# to ATL COM DLL
Posted by shiva at 9/18/2007 8:32:06 AM
Hi,
I have a VC++ COM DLL which is making calls to C#.net DLL. The C#.net DLL
functions which are byte array expecting SAFEARRAY from VC++ DLL. VC++ DLL
get called from my VB client where I need to pass this SAFEARRAY as VARIANT
to VB.
Could anyone help me how to get byte array from C# int... more >>
Specific Problem calling VC8 dll from c# .NET
Posted by Jon E at 9/18/2007 1:16:03 AM
Having spent years using Visual C++, I'm a relevent newbie to .NET./ I'm
fairly comfortable with teh new programming environment, but the one area
that I constantly struggle with is calling legacy VC DLL's (straight Dll's,
not extension Dlls). Using www.PInvoke.net I usually find an equivalent... more >>
Unregistering Outlook Addin ( kb: 302901 )
Posted by Chuck B at 9/13/2007 11:01:53 AM
I went thru the steps in the microsoft article
http://support.microsoft.com/?kbid=302901 and created an Outlook addin.
Now I don't know how to get rid of it. I tried running regsvr32 /u with the
path to the addin in the debug directory but got the following message:
"MyComAddin.dll was loa... more >>
managed dll and callback
Posted by curiousdotnet at 9/12/2007 10:48:00 PM
I've got a managed dll that does certain remote operations and a client app.
They are both written in c#. How do I implement a callback method in the
client app for the dll to call when the remote ops state changes. Does it
involve using delegates on the client app? And how to do the sa... more >>
Converting GDI+ Bitmap from unmanaged code to managed code
Posted by Cartoper at 9/11/2007 8:53:15 AM
I have a very simple (I think) question: How do I convert a unmanaged
GDI+ bitmap into a managed GDI+ Image? The code is C++ CLI (.Net
2.0). There is another option, the Bitmap is being generated by
calling it's function UnlockBits() that takes a unmanaged
Gdiplus::BitmapData structure. Is i... more >>
DX8 SetNotificationPositions, Error 32811
Posted by hzgt9b at 9/10/2007 11:50:19 PM
Using DX8,
I am developing a VS2005, VB.NET program to record audio from with
the
mic or phone line in.
As a starting point, I found a tutorial and examples on DirectSound
written is VB6. When I try to convert that program to VB.NET I get
run
time errors on the following code (frmDX_Record.... more >>
Convert custom object on the clipboard dynamically when pasted
Posted by simonjarita at 9/10/2007 2:06:26 AM
i'm using the clipboard and drag&drop to transport data (in its native
format) whithin my application. now i would like to provide this data
in other formats (like text and csv) to other applications.
however, i don't want to convert the data into the other formats
already at the moment when i... more >>
Strong Named Interop DLLs & GAC
Posted by NonNB at 9/9/2007 10:22:38 PM
Hi
Cannot register assembly "XXX".
Could not load file or assembly 'YYY, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its
dependencies. The system cannot find the file specified.
I've created a VS 2005 Windows Forms app and have had similar issues
(both during compiling... more >>
Won't instantiate
Posted by Chris Davoli at 9/7/2007 1:26:07 PM
Here is the error I am getting. Anybody know what I need to do to this
component? Do I need to register it? It won't let me regiter it. (see
previous post)
{"Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG))"}
[System.Runtime.InteropServices.COMException]:... more >>
Interop Error
Posted by Chris Davoli at 9/7/2007 1:22:02 PM
I'm getting the error message "Class not registered (Exception from HRESULT:
0x80040154 (REGDB_E_CLASSNOTREG))" I have an interop component that a vendor
sent. I get the following error when I register that component in the debug
directory:
AxInterop.ISITELib.dll was loaded, but the dllRegist... more >>
string to char[]
Posted by Pascal Cloup at 9/7/2007 12:00:00 AM
Hello,
What is the siplest way to convert a System::String to un unmanaged array of
ASCII char[]?
thanks in advance
Pascal
... more >>
Expose TypedDataSet via ComInterop
Posted by Red Devil at 9/6/2007 6:20:00 PM
Hi,
I have generated TypedDataSet (TDS) from a xml schema and need it to be used
by a legacy application. I would like to know if TDS can be interoped with
using interface?
Your reply is much appreciated
... more >>
Passing objects from .NET wrapper to VB6 COM
Posted by nmasilamani NO[at]SPAM gmail.com at 9/6/2007 3:30:20 PM
Hi,
I'm new to COM Interop. I need to pass custom objects from .NET
wrapper class to VB6 component. The .NET object contains various data
types. Basically something like "ID and Name" fields for one object
and the second object contains "id, name, alias, controltype,
required, defaultvalue... more >>
Accessing Unmanaged(COM DLL) Struct pointer from C#
Posted by sekhar.roy NO[at]SPAM gmail.com at 9/5/2007 8:38:24 AM
Hi,
I'm trying to access a struct pointer from a ATL COM DLL.
The Signature of the function in C++ end is like -
C++:
STDMETHODIMP Ctest::GetPtr(DataRecord** pstData)
I have added the DLL as a referance in the project and trying to
access from C# like that -
IntPtr ds = Marshal.AllocHG... more >>
Cannot create remote COM on my own machine
Posted by AlexZh at 9/4/2007 4:00:30 PM
I read a lot of threads trying th solve the problem but with no
success.
I have my own very simple .Net com (C#). In the project properties I
set "Register for COM interop", so all the registration is done.
In my client code I had:
Type myComType = Type.GetTypeFromProgID(ProgId,"",true);
Objec... more >>
Excel interop question
Posted by Remi NO[at]SPAM newsgroups.nospam at 9/4/2007 11:56:02 AM
I am develloping a .net application using excel automation. Me and my
colleague are having trouble with the excel reference. When i add the
reference and he does a get-latest, the excel reference is not found and the
app wont compile. If he add it again and i do a get latest i have the same
... more >>
CoTaskMemFree on memory not allocated by CoTaskMemAlloc
Posted by Alain Frisch at 9/3/2007 7:36:45 PM
Hello,
I understand that the .Net runtime will sometimes try to release the
result of unmanaged function calls with CoTaskMemFree. What happens if
this memory has not been allocated with CoTaskMemAlloc? In particular,
if the result pointer lies within the unmanaged (malloc) heap, is it
s... more >>
Callback to unmanaged code
Posted by Paul S at 9/3/2007 12:00:01 AM
Hi
I have a legacy product written in C++ with a class - Protocol -
containing a method - int Send(LPCTSTR data). I would like to call managed
code with this
funtion as a callback. The Idea is that managed code is given a filename
which it then
open, process and send it back to a client... more >>
|