Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008


all groups > dotnet interop > february 2006 > threads for february 8 - 14, 2006

Filter by week: 1 2 3 4

P/Invoke of CallBack with char* params: return error
Posted by Lionel Reyero at 2/14/2006 1:13:26 PM
Hi there, I am trying to P/Invoke a DLL able to perform a wifi scan. There is a poll method to which I have to pass a pointer to a function. Then the native code will call back the passed function which has char* parameters. I tried to write my P/Invoke (see below) but when I run the ap...more >>

OVERLAPPED - Marshaling problem
Posted by Exardious NO[at]SPAM gmail.com at 2/14/2006 12:47:43 AM
When calling GetOverlappedResult in Kernel32, i use an OVERLAPPED structure. What can happen, is that the Garbage Collector could move around the memory in which the OVERLAPPED structure resides before the operation completes, and thereby crashing my program. The solution is to create an unman...more >>

Using Activator.GetObject with MS Word
Posted by Evan Stone at 2/13/2006 4:41:05 PM
Hi, What I'd like to do is attach to an instance of Word (if it's running), and if it's not running then create a new instance of the application. To that end, I was wondering if the following was a valid use of the Activator.GetObject() method: public Word.ApplicationClass CreateWordAp...more >>

Program shuts down sporadicaly
Posted by Exardious NO[at]SPAM gmail.com at 2/13/2006 1:10:47 AM
Hi I hope someone is able to help me towards a solution here. I've developed a program that flashes the ROMs of smartphones. It runs with multithreads. I have 16 simultaenious threads of the same class, collected in an array of that class. The flashing process takes about 20 mins, regardles...more >>

Struct mapping C/C#
Posted by Totto at 2/12/2006 12:41:14 PM
Hi group, I'm trying to map up a struct from a win32 dll. The struct in c goes like this: typedef struct _struct1 { SHORT var1; WORD var2; SHORT var3; FLOAT var4; Int32 var5; Int32 var6; CHAR var7[14]; } STRUCT1; My mapping in C# [StructLayout(LayoutKind....more >>

Listing symbols in a static library for interop
Posted by Nishith Prabhakar at 2/11/2006 9:26:43 PM
Hi, Is there a tool that can be used to list out all the symbols in a static library that was created using VC++ 6.0. I am interafcing this library to my C# project using an MC++ wrapper, but am getting unresolved external symbols errors. There is a slight difference in the header and the f...more >>

newbie: mysterious interface created
Posted by Heiner at 2/10/2006 6:52:07 PM
Hi! This is most probably a well know issue, but as I do not know the correct terms to use in a search. I did not find an answer so far. I have created a com dll, which contains 2 interfaces: Itest1 and ITest2. ITest1 has one method: HRESULT test([in] ITest2 * x, [in] ITest1 * y); Furt...more >>

Inerop help
Posted by yuriy_zubarev at 2/10/2006 11:55:29 AM
Greetings, I apologize for re-posting this, but I'm running out of options on my side. I've got a DLL that's not COM compatible and I'm stuck using interop for the first time. I got couple of simple DLL calls all right but cannot get the most important one to work. Here is documentation:...more >>



Runtime error creating a Visio drawing surface in .NET 2.0
Posted by EmpowerDave at 2/10/2006 9:52:30 AM
Hi all. I have an application that embeds multiple Visio documents using the Visio drawing surface control (Microsoft Visio 11.0 Drawing Control Type Library). It was working fine on VS.NET/.NET 1.1, but after I moved to VS 2005/.NET 2.0, customers started reporting the runtime error below...more >>

Application w/in MDI Form
Posted by Brandon at 2/10/2006 6:34:27 AM
I've searched around for this and have found some VB examples but 1) I'm not sure that they're VB.NET and 2) If they are VB.NET, then they're not working once ported to C#. I'll be doing this in .NET 2.0 w/ VS.NET 2k5 Below is my code: #region WinAPI Functions [DllImport("user32.d...more >>

Basic Interop Questions using Visual Studio
Posted by cawoodm NO[at]SPAM gmail.com at 2/10/2006 6:19:49 AM
I have some basic questions about generating .NET dlls for use in classic COM applications. I would like to understand the inner workings a bit better. I have written a basic VB Class and built it using Visual Studio. I am NOT using the "Register for COM Interop" option! I then use regasm.e...more >>

Problem getting IDispatch iface for .NET objects from unmanaged co
Posted by Michael Goffioul at 2/10/2006 5:43:25 AM
Hi, I'm trying to access and manipulate .NET objects from unmanaged code using COM. Up to now I succeeded in creating a ICorRuntimeHost object, getting the default AppDomain and creating some .NET objects (I'm mainly interested in System.Windows.Forms objects). The problem I have is twofold...more >>

How do i create a mixed mode DLL with MFC, ATL, CLR
Posted by n.prabhakar NO[at]SPAM gmail.com at 2/10/2006 12:50:03 AM
Hi, How do i create a mixed mode DLL which supports all three - MFC, ATL and CLR. I have gone through the link <a href="http://msdn2.microsoft.com/en-us/library/ms235211.aspx">http://msdn2.microsoft.com/en-us/library/ms235211.aspx</a> I have tried various combinations of the steps describ...more >>

Problem with Structures using FieldOffset -- BUG?
Posted by Danny Mavromatis at 2/9/2006 10:45:45 AM
I'm trying to set up a structure using unions (fieldoffset) and I'm running into a problem. When I try to setup a union with either data array or message type, I get a an array with a fieldoffset the following error: System.TypeLoadException: Could not load type 'Test.Message' from assembly ...more >>

Using Word add-in does not work when opening second document
Posted by Stamppot at 2/9/2006 5:47:47 AM
Hi, I created a very simple add-in to Word that creates a toolbar with a button that colors the selected text when pressed. I've tried to create a new add-in keep it as simple as possible to narrow down the possible errors. I'm using c# in Visual Studio 2005 and Word 2003. It works fin...more >>

Access global variables in Active X DLL from .NET
Posted by CodeMonkey at 2/9/2006 2:44:02 AM
Hi All, I have referenced a Vb6 Active X DLL in my .NET project and I can see all my COM Classes in the DLL no problem. However I cannot see any of my global variables or public functions/subs which are in a module in the COM DLL. Is it possible to see these from my Vb .NET application? If not,...more >>

COM interface with no type library
Posted by Ray Mond at 2/9/2006 1:25:35 AM
I need to work with a SQL Server COM library (sqlvdi.dll). In the samples, there are C++ code like this hr = CoInitializeEx (NULL, COINIT_MULTITHREADED); if (!SUCCEEDED (hr)) { printf ("Coinit fails: x%X\n", hr); exit (1); } hr = CoCreateInstance ( CLSID_MSSQL_ClientVirt...more >>

Need Help in Excel Interop
Posted by Jorrell at 2/9/2006 12:13:39 AM
Hi guys! I really need help from this one. I created a desktop application that connects to the ms sql database and transfer the data to excel.... its working. But when I transfered the codes to a web application, it is still working but the excel won't show up. I tried to look into the Ta...more >>

Need help with vanishing event
Posted by hakan_cn NO[at]SPAM hotmail.com at 2/8/2006 11:24:52 PM
Hi all I have a VB6 ActiveX component (dll) that listens to a real-time data feed of stock quotes and then passes them on using events. The consumer of these events is a C# application using .NET 2.0 All event wires OK and the C# application runs just fine getting all real-time events from th...more >>

Problem with Event sink (ATL C++) when the event source is a C# object
Posted by Cristian Marinescu at 2/8/2006 7:19:30 PM
Hello everybody, I need to send from a C# object events, that have to be caught in my C++ code. I have followed the instructions from the MSDN article "Raising Events Handled by a COM Sink", but I have a problem when I call AtlAdvise in the C++ client: the method FindConnectionPoint will fa...more >>

Registering a .NET assembly for COM interop access from an ASP page
Posted by Zoe Hart at 2/8/2006 2:19:41 PM
I need to access a .NET assembly from a traditional ASP page. What I've read in the .NET Framework documentation says I have to do two things: 1) Register the assembly using regasm.exe. I've done that. 2) "After registering an assembly using Regasm.exe, you can install it in the global ass...more >>

.NET assembly configuration in mixed-mode (ASP/ASP.NET) web site
Posted by Zoe Hart at 2/8/2006 10:41:39 AM
I have a web site that is made up of mostly ASP pages, with a small (but growing) number of ASP.NET pages. I'm writing a component that will initially be called from some ASP pages, but will eventually be called from ASP.NET pages when those pages are ported over. Because ASP.NET is the clie...more >>

Interop a static class from .Net to VB 6.0
Posted by jignesht NO[at]SPAM gmail.com at 2/8/2006 4:42:37 AM
Hey I have a static class written in C#.I want to expose this class to Vb 6.0.For this I am using Interop.I have added necessary attributes to my ..Net classes. For a non static class by adding the attributes I was able to access the class in Vb client. But for a static class it soes not work ...more >>


DevelopmentNow Blog