A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
I 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...
| On Monday, September 28th 2009 at 07:32 AM by GiuseppeDini | No Replies |
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...
| On Thursday, May 21st 2009 at 09:19 PM by ST | No Replies |
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...
| On Tuesday, May 12th 2009 at 11:34 AM by Mike | No Replies |
I 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...
| On Tuesday, May 5th 2009 at 05:59 PM by Anonymous | No Replies |
I'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...
| On Monday, April 27th 2009 at 03:05 PM by Anonymous | No Replies |
I 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...
| On Saturday, April 25th 2009 at 09:18 PM by Anonymous | 1 Reply |
I 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...
| On Monday, March 9th 2009 at 04:13 PM by Anonymous | No Replies |
Hello, 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...
| On Wednesday, March 4th 2009 at 10:23 AM by Alfred Malleier | No Replies |
Hello, 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...
| On Sunday, March 1st 2009 at 12:53 AM by Anonymous | No Replies |
Hi 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...
| On Wednesday, February 25th 2009 at 09:42 AM by Simon | No Replies |
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...
| On Wednesday, February 25th 2009 at 02:28 AM by jbrock@panix.com | No Replies |
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...
| On Monday, February 2nd 2009 at 06:58 AM by Tekwits | No Replies |
Hi, 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...
| On Monday, February 2nd 2009 at 06:00 AM by katxalot@gmail.com | 1 Reply |
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...
| On Sunday, February 1st 2009 at 10:49 PM by Intell | No Replies |
Hi 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...
| On Saturday, January 17th 2009 at 01:02 PM by Jethro | No Replies |
From 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...
| On Thursday, January 15th 2009 at 10:43 AM by Anonymous | No Replies |
I 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...
| On Wednesday, January 7th 2009 at 05:13 PM by Anonymous | No Replies |
I have a C# class that contains this: [DllImport("FHT_MMDRIVER.dll", EntryPoint = "MMDRIVER")] public static extern void MMDRIVER( [MarshalAs(UnmanagedType.LPStr)]System...
| On Tuesday, January 6th 2009 at 04:51 PM by Vic | No Replies |
Hello 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....
| On Tuesday, January 6th 2009 at 04:42 PM by Paco | No Replies |
Hello 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...
| On Tuesday, January 6th 2009 at 02:29 PM by Christoph | No Replies |
Sometimes 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...
| On Tuesday, January 6th 2009 at 06:21 AM by nagar@community.nospam | No Replies |
Hi, 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...
| On Sunday, November 2nd 2008 at 03:24 PM by ClassicalMusicRocks | No Replies |
Hi, 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...
| On Sunday, November 2nd 2008 at 03:12 PM by ClassicalMusicRocks | No Replies |
hi 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.
| On Tuesday, October 28th 2008 at 06:42 PM by xcal | 2 Replies |
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...
| On Monday, October 6th 2008 at 01:37 PM by Anonymous | No Replies |
We 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...
| On Monday, September 22nd 2008 at 04:33 PM by Anonymous | No Replies |
I 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...
| On Thursday, September 18th 2008 at 10:37 AM by Anonymous | No Replies |
I 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...
| On Thursday, September 18th 2008 at 06:45 AM by Anonymous | No Replies |
I 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...
| On Tuesday, September 16th 2008 at 05:36 AM by =?ISO-8859-1?Q?Vicke_L=F6=F6d?= | No Replies |
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...
| On Wednesday, September 10th 2008 at 10:41 AM by hypergig | No Replies |
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...
| On Tuesday, September 2nd 2008 at 04:11 PM by =?ISO-8859-1?Q?J=F6rg_Battermann?= | No Replies |
I'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...
| On Tuesday, September 2nd 2008 at 08:26 AM by madhusudhan.maddula@gmail.com | No Replies |
Hello 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....
| On Tuesday, September 2nd 2008 at 01:05 AM by Anonymous | No Replies |
Hello, 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++...
| On Monday, September 1st 2008 at 11:49 AM by Alessandro | No Replies |
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...
| On Monday, August 25th 2008 at 09:52 AM by =?iso-8859-1?Q?Fr=E9d=E9ric_Queudret?= | 1 Reply |
In 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...
| On Sunday, August 24th 2008 at 06:11 AM by vicke.loeoed@gmail.com | No Replies |
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...
| On Saturday, August 23rd 2008 at 05:23 PM by =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | No Replies |
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...
| On Thursday, August 21st 2008 at 07:34 PM by Capt Laser Man | 1 Reply |
I 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...
| On Wednesday, August 20th 2008 at 07:46 AM by Jeff Gaines | No Replies |
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...
| On Tuesday, August 19th 2008 at 03:14 PM by neniel | 3 Replies |
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...
| On Tuesday, August 19th 2008 at 12:49 AM by Anonymous | No Replies |
I 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...
| On Monday, August 11th 2008 at 11:02 AM by John | 1 Reply |
Hi, i get a "Wrong Parameter" from Marshal.GetLastWin32Error() on using this: [StructLayout(LayoutKind.Sequential)] public class SP_DEVINFO_DATA { public...
| On Sunday, August 10th 2008 at 11:01 PM by =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | 1 Reply |
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...
| On Wednesday, August 6th 2008 at 11:51 AM by Anonymous | No Replies |
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...
| On Wednesday, August 6th 2008 at 11:47 AM by Anonymous | No Replies |
I'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...
| On Wednesday, August 6th 2008 at 10:41 AM by mr.mike.ward@gmail.com | No Replies |
I 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...
| On Wednesday, August 6th 2008 at 08:30 AM by Anonymous | No Replies |
Hi - 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...
| On Tuesday, August 5th 2008 at 10:45 PM by northof40 | No Replies |
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...
| On Thursday, July 31st 2008 at 04:49 PM by =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | 1 Reply |
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...
| On Monday, July 28th 2008 at 09:38 PM by DR | No Replies |