|
Search
Tutorials and Code
Syndication
My Account
Community Forums
Webmaster Tools
Tech Jobs
|
Struct Argument With An ArrayI would like to pass a struct with an array as argument in a function but I must be mistaken someway. Can someone correct my code to fix it? ---VB.NET code: ----- Public Class Form1 Private...
Why Managed C++ And Not C#?Hi all We are about to start a new project from scratch. Performance and development time are important issues. Thus, we have decided to make use of .NET with respect to short development time and...
Word 2007 - Excel.Application.SendKeys Equivalent?Does anybody know if there is an equivalent of Excel.Application.SendKeys for Word 2007? I'm using the DSOFramer control and am trying to programmatically close a Print Preview window before saving...
How Should I PInvoke An ANSI Multibyte String To A Varargs ParametI have to use PInvoke to call a C library function that has the following signature: foo(const char *, const char *, EnumType, ...) The function configures a resource in a way that varies...
Marshalling An Array Of Structs Of Blittable TypesI'm trying to call RegisterTraceGuids() from C#. One of the parameters of this method is an in/out array of structures. Do I need to make this an IntPtr or can I define the structure in C# and make...
CCW COM And ParametersI am writing a component in C# which is a COM Callable Wrapper. Some of the methods pass structs across COM. My question is, how does COM pass parameters such as structs? I know that C# passes...
COM Interop Versioning QuestionI am having a problem with COM Interop file versioning. To make this example brief but accurate: COM Component MyCOMDLL.dll (created in VB6) TypeLib version 1.2 (MyCOMDLL.dll#1.2) C# Component MyCSDLL...
Problem With VB6 TabStripHello, in VB6 I have a form with a TabStrip control. In the TabStrip1_Click event I set the .Visible property of the controls. This work fine since more than 10 year. Now I use the same form...
Memory Leak Hosting ATL ActiveX Control In C# AppHello, We have a c# App hosting an Unreal Streaming Technologies player ActiveX control that plays streaming video sent by Unreal Media Server. http://www.umediaserver.net/bin/UMediaControl5.cab...
Concerning Binary/Project CompatibilityHi I was wondering if anyone could explain or perhaps include a link which explains what happens with respect to binary/project compatibility of a dotnet interop project when you build (or rebuild...
Incomplete Office 2007 Install? Where Are .NET PIAs For Excel? Need VSTO?I may have botched an install of Office Professional 2007, or I may have a different problem. I hope someone will be able to tell me which, and if the problem was the install, give me some advice...
Re:Recent BI Technology News...Hi, There is an interesting technology news here at tekwits. Thought you would be beneficial if you read this=85 Get the latest industry news about BI Technologies. (http:// BI.tekwits.com) has...
Howto Get Folders Associated IconHi, I'm trying to do a tree view folder explorer. I have seen too many samples over internet teaching how to implement a tree view with directory information. However, allways these tutorials uses...
Use OCX In C#I have an OCX control that I added as reference to my C# project. I am able to view all the objects contained in the OCX using object browser. When I compile my code, it failed at the following line...
WCF - Building A Fixed Width ChannelHi everyone, I can't seem to find a good way to feed a system that reads fixed width data or delimitted data with WCF. I am very familiar with the existing channels, and have looked into developing...
How To Refresh Data Between C++ --> C#, Using COMInteropFrom a C++(6.0) assembly I'm calling a C# class which opens a .NET form. This form should display a changing value from the C++ program. My issue is the value in my C# form is fixed to the start value...
Installing A COM Compatible Assembly From A CAB Via IEI have a .NET assembly written in C# that is COM compatible. This assembly is going to be used by a legacy web application that uses VB6 ActiveX controls embedded in ASP. If I register the assembly...
Problem In Second Call To External DLLI have a C# class that contains this: [DllImport("FHT_MMDRIVER.dll", EntryPoint = "MMDRIVER")] public static extern void MMDRIVER( [MarshalAs(UnmanagedType.LPStr)]System...
RE: Conversion Of Vb6 Common Dialog Control To .net 2.0Hello Fellow, Since the Microsoft Common Dialog Control 6.0 does not come with Microsoft Visual Studio .NET you need to download the activeX control and keep using it within the .net environment....
Calling From A Script To A Host Method That AcceptsHello Ehud, from what I know the 'params' construct is not supported by COM. In theory, this changed signature here should be valid (I didn't say work ;-) void MyHostMethod([MarshalAs(UnmanagedType...
Debugging Unmanaged CrashesSometimes my software crashes on Windows Vista. It looks this happens randomly and only on Windows Vista (with XP this has never happened). It looks like the crash is an unmanaged exception (I catch...
Retry: C++ COM Server C# Client Interoperability ProblemHi, Please ignore my previous post today. We built a Visual Studio 2005 C++ COM dll in process server(universal marshaler,Apartment threaded) . When we use a unmanaged C++ client with this dll...
C++ COM Server C# Client Interoperability ProblemHi, We built a C++ COM dll in process server(universal marshaler,Apartment threaded) . When we use a unmanaged C++ client with this cll, we can successfully call the COM methods. The IDL and C+ + client...
Calling Conventionhi group, About calling conventions, to clean the stack is to remove only any parameters info from the stack, and/or any from place where such information were placed ? Carlos.
Need Help Using VB6 COM DLLs In C#I have a VB6 DLL that has a class, IGenericEnv, that is used as an interface definition for another class clsGenericEnv that implements IGenericEnv. When I build the VB6 DLL, in the VS2005 Object...
Get The Child Window CaptionWe need to develop a C# app that identifies the selected window. We then need to get the caption to retrieve some information. Getting the caption off parent windows is fine, but we have several application...
Allocating Unmanaged Array To Store Unmanaged ObjectsI trying to add objects to an array without success. The array is declared as A** arr**. It is allocated with with the new operator. Two instances of the class A is allready instanciated with the...
Notification Of Events To ProcessesI have a .NET assembly exposes as a COM interface. Some methods are available on the interface, e.g. ChangePrice(...) I have a VB6 COM client that calls the ChangePrice method of the interface passing...
Exposing Nested Arrays To COMI have a method in .NET (C#) which returns string[][]. When using RegAsm or TlbExp (from the .NET 2.0 SDK) to create a COM type library for the containing assembly, I get the following warning: WARNING...
Creating An Exchange Mailbox Though C#Lang: C# Tech: asp.net Framework: .Net 3.5 The down and dirty is, I have a one page webform that creates a new user in active directory. I do this with the use of the System.DirectoryServices classes...
Excel / .Net: Extract A Given Range Into Picture Or X(HT)ML?Hello there, Is there any -reliable- way to extract certain, given ranges in excel files into either a picture (each) or into proper xhtml? I am asking because I am currently automating a document...
Developed In Excel 2003 With C# Not Working In Excel 2007I've been developing in Windows XP with Office 2003. I have written a set of addins in C#. They work fine in my local machine. but I believe that they are not working when I install the software...
Invoking OLE Functionality Through C# InteropsHello All, Currently I have an MFC based MDI application (.exe) in which we created OLE layer such that the application can be easily accessed by MS Excel and invoke some of its properties....
C++/CLI COM VisibilityHello, I have a C++ application that needs to call some functions of a C# library. Moreover the C# library has to call (asynchronously respect to the functions of above) some functions of the C++...
How To Use Both COM & .NET Client With A Com Visible .NET Class?Hello, I have to develop a component in .NET that could be used by both COM clients et .NET clients. This component is based on the OPC DA 2.0 specification and uses COM interfaces to expose features...
Method Overloading For COM/VB6In my C# class library, I have these ComVisible method overloads: public void Method(string S) public void Method(string S, string T) If I set the ClassInterfaceType to AutoDual, these appear...
Parameter "ReturnLength" Always "0" When NtQuerySystemInformation Is Called,...Hi, the topic says all. I use this code from C# to call the NtQuerySystemInformation. When i call NtQuerySystemInformation the first time with zero buffer length to get the buffer size needed for...
Calling C API From C#I have been battling an API call for days with no luck. The API information and my code is below. When I call it I get an IllegalOperation exception saying something like there was an error writing...
IExtractImage InterfaceI want to display thumbnails of PNG files in a file manager app running under XP Pro x64. In a directory of 1003 files using Image.FromFile takes around 38 seconds. I managed to find a couple of...
Verifying Uniqueness Of Office Files In Asp.net C#Hi everybody! I have been trying to make this scenario work (excuse my english, it's been a while since I've wrote technical english): I have a site, you can download Excel files from it, then the...
Passing Variant* To COM DLL From C#I have a COM component whose function signature has variant *. I need to pass variant * from C#. Actually the data which I need to pass from C# is in byte[] format. Please let me know how to pass...
Using The Config File In An ActiveX ControlI have created an ActiveX control. I have not been able to get the appsettings from the config file. I used the debugging container and in IE. Both I could not get the config settings. Also, on...
Returns Wrong Parameter Error For PInvoke Call,..Hi, i get a "Wrong Parameter" from Marshal.GetLastWin32Error() on using this: [StructLayout(LayoutKind.Sequential)] public class SP_DEVINFO_DATA { public...
How To Make VB6.0 Release A Managed Dll ? (COM Interop)I've made a simple C# COM object in a dll library for use in a VB6 object. After I've finished with it I set the c# COM object to nothing, the VB6 process ends, and I detach the COM object from the...
How To Make VB6.0 Release A Managed Dll ? (COM Interop)I've made a simple C# COM object in a dll library for use in a VB6 object. After I've finished with it I set the c# COM object to nothing, the VB6 process ends, and I detach the COM object from the...
Shell32.IShellDispatch5 In VistaI'm building a C# app in VS 2008 on Vista that references the shell as follows: var shell = new Shell32.ShellClass(); shell.MinimizeAll(); This works fine on Vista (where I developed the...
Renaming Enum Via InteropI am looking for a way to have an enumeration that is exposed via the Interop have a different name in COM than is specified in the managed assembly. For example: Given the following enumeration...
Suppress "Excel Has Encountered A Problem" Dialogs From .NET ConsoleHi - I've got a console app which is using the interop to open Excel workbooks and parse them. Intermittently I get a dialog appearing "Microsoft Excel has encountered a problem and needs to close...
C# Translation And Call Of SetupDiBuildClassInfoListEx(...)Hi, can someone please give me a translation of this call from C to C#: WINSETUPAPI BOOL WINAPI SetupDiBuildClassInfoListEx( IN DWORD Flags, OUT LPGUID ClassGuidList, IN DWORD...
When Using System.IO.FileStream, I Write 8 Bytes, Then Seek To The Start Of The File, Does The 8 Bytes Get Flushed On Seek And The Buffer Become A Readbuffer At That Point Instead Of Being A Write Buffer?When using System.IO.FileStream, I write 8 bytes, then seek to the start of the file, does the 8 bytes get flushed on seek and the buffer become a readbuffer at that point instead of being a write...
|
Latest Tech Bargains
Advertisement
Free Magazine Subscriptions
Today's Pictures
Today's Video
Other Resources
Latest Download
Latest Icons
|