Groups | Blog | Home


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 > september 2004 > threads for september 15 - 21, 2004

Filter by week: 1 2 3 4 5

PIA and Excel 2000
Posted by Tom Donohue at 9/21/2004 8:53:03 PM
I have a desktop application which has been upsized from .Net 1.0 to .Net 1.1 (VS2003). The application creates an excel spreadsheet as an output option. Some users do not have Excel; others have Excel 2000 (stand alone rather than Office). My development machine has Office 2003. My questions...more >>


Help! Question with marshalling
Posted by jemmicat NO[at]SPAM hotmail.com at 9/21/2004 11:31:45 AM
I have an old dll written in vc6 and have used it in vb6. Everything works fine. The vb6 declaration just and client code just like below: Public Const DEF_D_OPERATER = 1 Public Type CRNO No1 As String * 3 No2 As String * 5 End Type Public Type DLG_IOSTR keiban As ...more >>

(out pointer to) array of structs marshaled from c++ to c# as return value
Posted by pavel.savara NO[at]SPAM seznam.cz at 9/21/2004 5:36:18 AM
Hello, c++ signature: struct TickInfo { time_t ctm; char symbol[8]; double bid; double ask; }; __declspec(dllimport) TickInfo* MtGetUpdatedTickInfo(const int handle,int *items); my c# try: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Pack=8)] ...more >>

regasm or tlbexp ?
Posted by shahidmehmood NO[at]SPAM gmail.com at 9/20/2004 11:35:46 PM
i want to use .net components in my vb6 application, should i used regasm or tlbexp to use the .net dlls, moreover will these dlls run without the .net runtime ? I was to basically use the serialization scheme of .net, binary formatter class is sealed and moreover i cannot export the mscorlib...more >>

Using a C# GUI component from VB6
Posted by Einstein at 9/20/2004 7:11:01 PM
Hi All, we have two applications...one is Next Gen .NET Application written in c#...where as one application is in VB6...we need to use some .NET components in VB6 ... I understand this is possible via Inter-OP in case of NON GUI business components ....but is the same possible for UI component...more >>

ARRRGGGHHHH Function Pointers!!!!
Posted by Mark Olbert at 9/20/2004 5:48:50 PM
I am totally bollixed up on this one. If I can marshal a delegate to a legacy DLL as a callback, why the hell can't I do something to a delegate to assign it to a function pointer variable in a structure?!? It sure seems like the two operations are very similar; why do I have to cross a DLL bou...more >>

Why is image is upside down?
Posted by assaf at 9/20/2004 2:33:50 PM
hi all i included the sources of my form. when run, u can open a bmp file. once opened, and resized, u will see that the image is upside down. can someone please tell me why this is happening? tnx assaf the code: using System; using System.Runtime.InteropServices; usin...more >>

ICatRegister interface in managed c++
Posted by snchandra95 NO[at]SPAM yahoo.com at 9/20/2004 1:30:15 PM
Hi! How do you use ICatRegister interface in a managed c++ project? I need to add some category information and want to use this interface. I know you can use ComRegisterFunctionAttribute and directly add it to the registry. Is there a way to use ICatRegister interface instead to do this? ...more >>



Unmanaged Function Pointer from Managed Code?
Posted by Mark Olbert at 9/20/2004 12:10:51 PM
I have a legacy unmanaged DLL function that expects to be passed a structure like this: typedef struct tag_ACALLBACK { void *ncCallbackFunction; void *ncUserData; } ACALLBACK; I'm stumped about how to assign a managed class method to the ncCallbackFunction function pointer. I've tried...more >>

Accessing com-object with same name and versions but different functionallity?
Posted by ssunnerberg NO[at]SPAM hotmail.com at 9/20/2004 4:39:09 AM
Hi! I´m writing a VB.net app which communicate with Adobe InDesign through a com-interface. Adobe has released a new version of InDesign called InDesign CS and a new com-component accessing it. In my app I have some different project, one talking to InDesign CS and another one talking to the ol...more >>

looking into what the .net code is doing from a vc6.0 c++ app??
Posted by Hazzard at 9/18/2004 5:54:23 PM
i am trying t.o troubleshoot an app in vc6. c++ which imports a few .net dll's. The tli,tlh's are created from tlb's and I am off and running. Problem is, I am playing a guessing game about where the app is failing. It is neither an art or a science. I make sure the .NET components and code w...more >>

Methods that return pointers to managed objects
Posted by Mark Olbert at 9/18/2004 4:29:40 PM
I am thoroughly lost on how I go about implementing a method in C# that must return a pointer to a managed object which can be used in unmanaged code (I'm trying to interface with a legacy package). Example: public class ClassA { .... } public class ClassB { private ClassA classAInst...more >>

Implementing IDispatch in C#
Posted by Juan Dent at 9/18/2004 4:21:03 PM
Hi, Yes, it sounds strange. Yet, I am doing a migration of some code in C++ using COM to C# in .NET and this C++ unmanaged code calls the IDispatch methods GetIDsOfNames and Invoke which have a special implementation in the original C++ COM servers. All the logic of these COM servers depend...more >>

Help Serializing .Net Generics List object
Posted by Michael Rockwell at 9/18/2004 6:59:01 AM
I am attempting to serialize a C# generic list collection but it is not working. My code looks like this: public struct RawData { public Guid id; public DateTime Time; public Double Value; } List<RawData> RawDataList = new List<RawData>(); foreach (datarecord dr in AllDataRecords) { ...more >>

Embed interop DLL file in executable
Posted by Guogang at 9/17/2004 4:20:36 PM
I am tring to create a single .exe file that user can download. However, this program need reference to COM object, thus need a interop dll file like this: Interop.CAPICOM.dll. Is there a way to embed this DLL file and the exe file into one single executable (like using a static link in the C+...more >>

.ASP 6 <--> ASP.NET/C#.net
Posted by Curt Smith via .NET 247 at 9/17/2004 11:11:28 AM
(Type your message here) Please point me in the right direction to figure this out. Aging .ASP v6 needs to share the Session[] with a co-resident ASP.NET/C#.net assembly. I have the ability to place the .NET directories within the .ASP stuff if needed. I'm told that .NET apps do not shar...more >>

ChangeDisplaySettingsEx
Posted by tomer at 9/16/2004 3:01:47 PM
Hi, I am trying to DllImport ChangeDisplaySettingsEx function from user32.dll. It works well, unless I try to use it in order to get VIDEOPARAMETERS struct. When I pass the struct the function returns DISP_CHANGE_BADPARAM and the struct doesn't get filled. This is the DllImport: [Dl...more >>

Windows Service to start OC4J
Posted by Sunil at 9/16/2004 9:29:58 AM
Hi, I have created a .net windows service to start the Oracle OC4J using the startup batch file. Though the OC4J has started, the windows service still shows starting.How Can I change the windows service status to started (without killing the process) so that the windows service can be used to ...more >>

Interop with unregistered DLLs
Posted by mg689 NO[at]SPAM columbia.edu at 9/15/2004 7:13:27 PM
Hi all, I'm trying to avoid registering a COM dll, since it causes problems in the production environment. What I would like to do is somehow load a COM dll from the application folder at runtime by a .NET application without registering that COM dll. So ideally I would design the app in Stud...more >>

Force a COM object reference to decrement
Posted by Joel at 9/15/2004 5:15:23 PM
I have an method that intstantiates a COM object. I need it to be accessed by only 1 thread at a time so I use a Mutex to enforce this. But it doesn't look like the COM object is being released from memory when I'm done with it before the next thread tries to instatiate it again. Is there a way t...more >>

Deploying .net DLL
Posted by S K via .NET 247 at 9/15/2004 11:42:32 AM
Hi, I am trying to deploy a .NET DLL such that it can be referenced by both VB6 and .net So I gave it a strong name and installed it using setup project of .net I can access it fine using .net as well as VB6 but the problem I have is that I can access it from VB6 only using CreateCompo...more >>


DevelopmentNow Blog