| sending pointers of C#.NET methods to native dll (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, I need to send the pointer of a C# method to a native user32.dll method. How can I do that? To be specific the method is SetWindowLong of user32.dll which in VB6 is being is being called as follows glOldWindowProc SetWindowLong(glWindowHandle, GWL WNDPROC, AddressOf WndMessage) My question pertains to the last parameter "AddressOf WndMessage" WndMessage is a method in a class in VB6. How do I ... |
|
| Calling .Net DLL from Delphi/VB6 (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi, I have a Delphi app which needs to call a DLL created using VB.Net. I have created a sample DLL which has a single public function. This takes a string as input and returns a string, very simple. I then generated a strong name and registered in the GAC. All fine so far. I then use regasm assembly.dll /tlb to generate a type library. No prob. When I open VB6 I can register the DLL using the TLB... |
|
| System Menu modifications (3 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi all, I need to convert a VB6 program that appends menu items to the control menu (SystemMenu). I was wonder if the framework has intrinsic functionality for this or must I continue to use win32 calls? Thanks, Mike |
|
| NEWBIE: use COM Interop or P/Invoke? (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I'm trying to utilize some COM code (the WM Format SDK to be precise) from a ..NET application and could use some help/pointers on how to interoperate with it. FYI, I'm relatively new to Windows programming and am not familiar with many of the technologies I find in the docs (e.g., OLE, ATL, MFC). My sense is that most of these are windowing related, but I'm writing server code that is probably mo... |
|
| .NET and VB Interop (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi We are considering starting to develop in .NET (ASP.NET to be exact). We have an existing application based on ASP, VB DLLs, and Stored procedures (SQL Server 2000). And would like to develop new functionalty only with .NET This means we would like to use .NET DLLs from inside standard VB (and ASP pages if possible), and more important use VB Dlls from .NET code First tries with using a referen... |
|
| Working with Excel Page Setup via Interop (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Trying to get an answer to the following questions, hope someone here can help... I'm trying to access the Excel's page setup for a Excel file I'm creating via Office.Interop. I almost got it, I need help with two little things. In PageSetup for the Sheet: 1) How do I set the scaling option buttons? I need to switch the option to 'Fit to # wide by # tall'. I can't find the 'hook' for this. 2) I wa... |
|
| .NET Control (form) used as ActiveX (5 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, We have developped a MMC snapin that displays, as result views, a few ActiveX controls that we have developped using MFC/ATL. We need to build a new control (UI) and I would like to do it using .NET forms. Is there any way to create a .NET control and then creating an instance of it using "ActiveX Control Test Container"?? Thanks |
|
| ADOX problems (2 replies) |
| microsoft.public.dotnet.framework.interop |
| When a set a reference to the ADOX library, I can use the objects for database structure manipulation, but I get new errors in other parts of my application, for example, using the Date() function results in error messages. Is ADOX confusing the definitions of other libraries? |
|
| Calling COM interop from ASP page (6 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, I am getting following error when I call COM interop from ASP page. Error Type: mscorlib (0x80070002) File or assembly name ajcj2njd.dll, or one of its dependencies, was not found. /dom/dom.asp, line 4 If I set the application protection to low in IIS, it works. I tried giving all rights to bin folder where by dll is but no luck. Please help. Thanks in advance, Sanjay Kedare |
|
| COM target does not implement IDispatch (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi could anybody can plz explain me why would I get this error mentioned below when I am trying to access COM proxy from my C# component. COM target does not implement IDispatch thanx in advance. RK |
|
| Keyboard Buffer (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I need to write chars directly to the keyboard buffer from a .Net Windows Service. I am trying to communicate to an app that bypasses the windows messaging system completely. |
|
| VB6 client accessing .NET runs first time but not subsequent times (3 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello All, I have a C# project in Visual Studio .NET. It builds myproject.dll. I have set the "Register for COM Interop" option to True as I want to access the classes from VB6. The C# code looks like: namespace myproject { public class netInterfaceImpl : netInterface { public void someMethod(string p1) { ... } public netInterfaceImpl() { } } } In the VB project, I added a reference to myproject.t... |
|
| Code throws error from Windows Service but works from Winforms (3 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, I have a piece of VB.net code that creates a table programatically using ADOX. This code works fine from a winforms application. It even works on a windows 2000 computer when run as a windows service. However, when I execute the code from a windows service on an XP Professional system, I get a run time error when I am trying to add columns to the table. When trying to set the properties of the... |
|
| Bitmap Marshaling (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I'm developing BarCode class in C# that generates barcode bitmaps. I'll be using this class in an ASP page (not ASPX), so I'm creating a CCW (COM Callable Wrapper) to be accessed from my asp page. In the asp page I'll be using Response.BinaryWrite to display the image. My problem is that I can't figure out how to marshall the bitmap. Below is an snipet of my C# class and how I'm calling this class... |
|
| Using VB6 objects from .NET (3 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, I have some old VB6 code and I need to automate some testing from .NET by using the VB6 objects and interrogating the results. The VB6 object basically just does some work and returns an XML string which I need to validate. An asp page using the VB6 object would be something like... set myObj CreateObject("MyAPI.SomeVB6Class") result myObj.DoSomething() Can anyone advise me of the best approac... |
|
| Help with Windows Media Encoder in C# (6 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I am trying to create a .wmv using the Media Encoder SDK (v9) in C#. I am having problems with source groups that have graphic (.bmp, .gif and .jpg) files. According to the "Using a File as a Source" page in the documentation "C:\WMSDK\WMEncSDK9\wmencsdk.chm", plug ins for .bmp and .jpg are included with the SDK. THe second paragraph also atates that "The correct plug in is automatically chosen fo... |
|
| String Truncation problem when marshalling LPTSTR string to a managed string (6 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi, I am marshalling a LPTSTR string to a managed string and I get just 30531 characters, rest all is truncated. To be more specific, I have writen code to call "GetOpenFileName" from Comdlg32.dll using P/Invoke, so I could create CustomOpenFileDlg which can read any number of files(limited by the buffer). My OpenFileDlg is Explorer style and in this the file names returned by windows are null sep... |
|
| OLE in RichTextBox, IStorage Interop (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello, I've been assigned the task of supporting the "Insert Object" command in our C# WinForms application, which allows the user to choose an OLE obejct to insert in a RichTextBox which is the main editor in our form. I have found how to access the OleUIInsertObject() Win32 API to display the dialog. I have figured out how to get an IRichEditOle pointer, to access the IRichEditOle InsertObject()... |
|
| RTC Client (6 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, I am trying to implement a SIP client on RTC 1.2 with c# when I try to create a profile it gives cast error please help me to create a profile and register the presence on the server |
|
| Create ActiveX component with vb.net? (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Is it possible to create an activex component using vb.net? I need to make a component to be used by a Windows Scripting Host vb script, but wish to use some features available in vb.net for the component. |
|
| Problem with the PIAs (3 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi all, I have a pb with the PIA. I am rebuilding an old friend from the article "Building Excel Real Time Data Components in Visual Basic .NET". Everything goes fine when I use the PIAs shipped with the example, but they refer to Excel 10. Following the article, I referenced the Excel 11 lib (add ref com Microsoft Excel 11 lib). And now I get the message "COM Interop registration failed. File or ... |
|
| CoCreateInstance error using LocalSystem user-Win2K vs. XP (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I am using Interop between COM and C#. I am calling CoCreateInstance to get a COM object. The code is executing inside a service, running as the LocalSystem user. This code executes correctly on XP and Windows Server 2003; i.e. the COM object is instantiated and can be used. However, running the service on Win2K (Service Pack 4, all updates), I get a "Class Not Registered" result from CoCreateInst... |
|
| Passing arrays from an ATL COM object into .NET (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I'm trying to pass a 1D array from a COM object built using VC 6.0, into a .NET web service in C#, using COM interop. However, only the first element in the array is returned. The IDL definition for the COM method is shown below: [id(11), helpstring("method GetArray")] HRESULT GetArray([in, out] int *pnCols, [out, size is(,*pnCols)] int** ppArray); The implementation of GetArray() is as follows: S... |
|
| Newbie question (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I am very confused about COM interopability and .net! Particulary when it comes to the registry and CLASSID's etc. For example... 1. I compile a .net application with a reference to a local COM component on my development server 2. I copy over the assembly to the live environment How does the .net app know where the COM component lives? The two COM components will have different class id's? What h... |
|
| HTMlDocumentClass.CreateDocumentFromUrl is not working in .NET . (3 replies) |
| microsoft.public.dotnet.framework.interop |
| HTMlDocumentClass.CreateDocumentFromUrl is not working in .NET . mshtml.HTMLDocumentClass ms new mshtml.HTMLDocumentClass(); mshtml.IHTMLDocument2 ms1; ms1 ms.createDocumentFromUrl(@"http://kumarsub ri2/om5prototype/ie6/test.htm",""); the APO is throwing a Null Exception. Is this a bug? or is my code wrong? Please help ! Thanks Kumar |
|