ChrisCC's Q&A profile
Visual C# String Testing
Hi All, I've a question. In perl I can do the following to test if a variable contains a series of strings: if ($myVar =~ /^SGT|^MSG|^BG/) { doSomething; } =~ basically means "contains" so what the above line is saying is: if($myVar "contains" /Anchored on left with SGT OR anchored on left with MSG OR anchored on left with BG) { doSomething; } Anything similar in C# --Richard ...Show All
Visual C# About System.IO.Ports
hi im developing a c# console application that can send and receive data from a gsm modem. this my code. the problem is that i wasn't able to get an expected response from my modem. whenever i issued an AT command say "AT" or "AT+GMM" i always get the same response, "AT" and "AT+GMM", respectively. if i send a command for example "AT" is should get the answer: AT OK ryt can u tell me what's wrong with this code Program myProcess ...Show All
.NET Development Problems reading array in struct
Hi, I'm trying to marshal the DS_SELECTION_LIST struct ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/ad/ad/ds_selection_list.asp ) to C#. It works, but only the first element is retrieved. I believe this is because the marshaler can not determine the array size. However, the field cItems in the struct determines the array size. But I can not use the SizeParamIndex with UnmanagedType.ByValArray. So I tried the UnmanagedTyp ...Show All
.NET Development Why do I get different result using XmlNodeType.NodeType when I read the same XML file
Why do I get different result using XmlNodeType.NodeType when I read the same XML file //-----------------The content of a.xml file----------------- <Folder></Folder> //-----------------The content of a.xml file----------------- //-----------------The content of b.xml file----------------- <Folder/> //-----------------The content of b.xml file----------------- In XML document the file a.xml is the same as b.xml, but ...Show All
Visual Studio Tools for Office Use Visual Studio 2005 or use VBA in Access or Excel?
I am looking for some direction as to how to begin a new project. I am wondering if it would be better to try and use Access or Excel along with VBA to do this project of if I should use VS.NET 2005. What I would like to do is make a proggy similar to QuickBooks. When I downloaded QuickBooks and ran it on trial, I noticed it looked like someone took Access and created a custom form for it. I want the program to be able to keep track of ...Show All
SQL Server Web Replication from SQL 2005 Express
I am attempting to set up the following: SQL Server 2005 with Merge Publication Web Replication Enabled IIS Configured as documented, except DB server is an AD Domain Controller so can't assign Local User to Application Pool SQL 2005 Express Using RMO to create subscription Using Basic Authentication of HTTPS Calling the replisapi.dll diag works fine When I attempt to do a web synchronization with the Publisher ...Show All
Visual Studio Express Editions How to make radio buttons in a groupbox unchecked when form loads?
The excercise is a small app containing 3 group boxes (2 contain radio buttons, 1 contains check boxes) When the app starts the first group box containing Male & Female radio buttons receives focus,but for some strange reason always checks the Male radio button by default. I am trying to get both radio buttons in this group box unchecked so that the user decides without a default option being used. Any help gratefully received ...Show All
.NET Development How to monitor files in different folders using the FileSystemWatcher?
Hi This is what i came up with but it doesn't monitor these folders simultaneously Did you wire the events And you resert the Filepath every time in the loop. For each root directory you need a dedicated FileSystemWatcher object. ...Show All
Visual C# Returning multiple values from methods
How do I return multiple values form methods Hi Yogesh, Is it possible to returns multiple values without "ref" / "out" parameters. Regards, kailash ...Show All
SQL Server SQL2000 Linked Server to Oracle
Server: Msg 7399, Level 16, State 1, Line 1 OLE DB provider 'MSDAORA' reported an error. The provider did not give any information about the error. OLE DB error trace [OLE/DB Provider 'MSDAORA' IUnknown::QueryInterface returned 0x80004005: The provider did not give any information about the error.]. Searching on this error I get tons of hits, I have read through them all and tried every posted suggestion, however I still am unable to get this ...Show All
Visual C++ Unmanaged type conot derive from a managed type
Hello Everyone, I have a COM Component, I added it as a refrence.....and I do something like this using namespace BBDEVMGRLib; namespace USBClient { class USB: public IChannelEvents { public : USB() { } ~USB() {} }; } I get this error Error 1 error C3625: 'USBClient::USB': an unmanaged type cannot derive from a managed type 'BBDEVMGRLib::IChannelEvents... Anyone how can I fix this e ...Show All
.NET Development Change Primary key in DataTable
Hi, I have following problem:there's a DataSet with a DataTable (with primary key[int]) that I just got from a DB. Now I need to locally create new DataRow with a valid primary key from DB. How do I best do this I use 1.1 I was working at this issue some days earlier. Probebly these lines of code would solve your problem; using System; using System.Data; using System.Data.OleDb; namespace ConsoleApplication30 { class Clas ...Show All
Visual Studio Express Editions Burning Express ISO Images To CD
Hello All, I Am having difficulty burning the Visual Studio Express ISO images to CD. The extracted images will run fine when setup is executed from my hard drive. However, the minute I burn these files to a CD, the setup will fail. It fails during the first stage of the setup process when it is copying the temporary files to my hard drive. It always has trouble copying the 10th file, ixpvc.exe. It does not matter which install I am trying to ...Show All
SQL Server SQL Express user permissions?
I'm trying to build a web application using SQL2005 Express and Visual Studio Express. It all works OK on the local machine, but gives an error "Login failed for user xxxx\ASPNET" when used remotely. I can't find where I can set login permissions for SQLServer 2005 Expresss - can anyone help, please Thanks John This looks like a problem in the login control. The error reported probably has nothing ...Show All
Visual C# Developing web apps using VC# Express?
Hi. Is it possible to develop web applications using Visual C# Express Edition, or will I need the full Visual Studio 2005 product for this If not, is it possible to code the project as a windows forms project in VC# Express, and then copy the project to a Visual Studio 2005 machine and compile it as a web application Thanks! /Anders (newbie) Nope, you cannot develop a web application using Visual C# Express e ...Show All
