Software Development Network Logo
  • SharePoint Products
  • Audio and Video
  • Windows Vista
  • Windows Forms
  • Visual C#
  • Microsoft ISV
  • Game Technologies
  • Visual Basic
  • Visual FoxPro
  • SQL Server
  • Visual C++
  • IE Development
  • Visual Studio
  • .NET Development
  • VS Team System

Software Development Network >> arcliner's Q&A profile

arcliner

Member List

Noremac
TiKu
Bert van Uitert
xRuntime
Dawa Tsering
Mehmet Metin Altuntas
Bill Martin
Igor Afanasev
z-one
JohnnieK
ElliotHC
Kripz
jcsam
ShawnE
Muna
andradrr
Helen999888
Cordell Swannack
mike6271
enric vives
Only Title

arcliner's Q&A profile

  • .NET Development Dual MatchCollection on "A B|C D|E F|G H" input

    I have an input file (this is simplified; the real input file is very very very large): A 1\n B 2\n C 3\n D 4\n I am using the following code: Regex first_part = new Regex("[A-Z]* "); Regex second_part = new Regex("[A-Z]*\r\n"); MatchCollection firsts = first_part.Matches(input_file); MatchCollection seconds = second_part.Matches(input_file); for (int i = 0; i < firsts.Count; i++) { Console.WriteLine(firsts[ i ].ToString() + " " + seconds[ i ].ToString()); } Does the MatchCollection implementation guarrantee that the output is still matched up accordingly What this I mean that A and 1 are still printed on the same line, and B and 2 as well (although on another line). Thanks! Why don't you use ...Show All

  • SQL Server Schedule Job Keep on failing!

    Hi, Actually i saved a SSIS package into a SQL Server 2005, then scheduled to run a job from SQL Agent, but, the job keep on failing and no error message was returned in order for me to toubleshoot. After the job failed, i restart the job again, and it actually continue to run, but unfortunately, it stopped again after some time. And, before i sheduled the job, i actually tried to run the package itself in SQL Server Business Intelligent, it runs suceessfully. In the package, i actually set the ProtectionLevel to DontSaveSensitive. Another option that I used to run the pakage was using dtexex.exe: dtexec.exe /FILE "E:\Package.dtsx" /MAXCONCURRENT " -1 " But, the error message returned also not so u ...Show All

  • Visual C++ Linker Error LNK2001 When Calling a Function from a DLL

    Hi, I am using VC++ 6.0 Standard Edition, trying to call a function from a DLL using the Load Time method. The .exe compiles fine, but it seems that the linker does not see the .lib and gives me the 2001 error. I'm guessing it could be an IDE parameter that I have missed. Here's a simplified version of the code: ============ DLL =================== #include "stdafx.h" #define dll_entry( type ) extern "C" type __stdcall dll_entry( int ) run_alert () { return 15; } ========= .DEF File =========================== LIBRARY psMyDll EXPORTS run_alert ================Executable module ==================== #include "stdafx.h" //#include "psMyDll.h" int run_alert(void ...Show All

  • SQL Server Combing Multiple Databases for Ad Hoc Reporting

    Hey all. Sorry to ask such a basic question, but I am needing to combine data from about 3 different databases into 1 ad hoc report. I know that you can include multiple datasets, but I need this to act as 1 dataset so that the table data between all databases are related to one another. I know very little about the potential of analysis services / integration services, so I don't know if they contain the answer to my problem. Does anyone have a suggestion of how I should approach this problem (as always, speed is a bit of a consideration here as well). Thanks! Are those 3 db's on different servers/instances If yes, one way is to create linked servers to them, and do a BIG join of the 3 db's say SELECT * FROM DB1, ...Show All

  • .NET Development Is it possible make new thread with return value???

    Hi , I want to make new tread but to return data set. IS it possible public static DataTable fillAvailableEquipments() { getData=new ThreadStart(fillAvailableEquipmentsByTread); getDataThread=new Thread(getData); getDataThread.IsBackground=true; if(Defaults.Lenguage == Language.English) getDataThread.CurrentUICulture = Defaults.enCultureInfo; else getDataThread.CurrentUICulture = Defaults.ruCultureInfo; frmHead.MyTread=getDataThread; getDataThread.Start(); } private static void fillAvailableEquipmentsByTread() { DataTable dt = some method that return DATA TABLE; } It give me error becouse thred has to be VOID ...can it be done in some other way HELP.... ...Show All

  • Visual C++ Double quotes in in strings....

    There is a string: dotnetfx.exe /q /c:"install.exe /q" How does one hand double quotes in something like this if ( ! IsInstalledFramework()){ShellExecuteAndWait(_T( "dotnetfx.exe\0" ),_T( "/q:a /c:\\" install /l /q "\0" ), true );} Thanks... You have two \\ , which creates a \. \" creates quotes. if ( ! IsInstalledFramework()){ShellExecuteAndWait(_T( "dotnetfx.exe\0" ),_T( "/q:a /c:\" install /l /q\ "\0" ), true );} You shouldn't need the \0, your constant strings should be null terminated by the compiler, at least I would have expected that to be the case. ...Show All

  • Visual Studio 2008 (Pre-release) WCF Client blues (MSDN Subscriber)

    Hello.  I have been trying to write a WCF client to consume a java-based web service secured by Apache WSS4J but have not been successful.  The web service requirements are: 1. Must be accessed via https (i.e. SSL). 2. Request must use SOAP 1.1 format. 3. The SOAP Body in the request must be signed, with the BinarySecurityToken (X509 certificate) embedded in the headers, per WS-Security 1.0 spec. 4. However, the web service itself does NOT sign the responses.  So, the client must NOT expect the response to have any WS-Security headers in it. First off, how would you implement your WCF client given the above requirements   If only someone can answer this question, I'd be in heaven.  ...Show All

  • Visual Studio Team System SMPT Server name in Team Foundation Server Installation

    Hi All, I installed Team Foundation Server, and missed specifying SMTP server name. Now my installation is completed and is working fine, and I want to mention SMTP server information to it- since I want to send emails via 'Project Alerts' now. Can someone suggest me how can I mention SMTP server information on my insalled server. (I tried sending emails using Project Alerts but they did not work.) I would really appreciate help in this regard, Kavya PS: Here is the documentation which specifies where I was supposed to enter the SMTP server name: On the Specify Alert Settings page, select Enable Team Foundation Alerts , and type the following information: In the SMTP server box, type the name of the server that you ...Show All

  • SQL Server SQL Task - Output Parameter fails using strings.

    Scenario: Using Execute SQL Task in SSIS. Connection Type: Ado.Net IsQueryStoredProcedure: True SqlStatement: [spAdoNetParamTest] I trying to return a output string from a stored procedure and place the value in a package level variable.  I am able to do this with other data types.  See sample SP below.  However, the task fails when trying to return a string with an error.  Does anyone know how to set the size property for a string parameter   Here is the error: Error: 0xC002F210 at Execute SQL Task, Execute SQL Task: Executing the query "[spAdoNetParamTest]" failed with the following error: "String[0]: the Size property has an invalid size of 0.". Possible failure reasons: Problems with the query, "ResultSet" pr ...Show All

  • Windows Forms Automatically login Remote Desktop web connection?

    Hi, everyone! I'm looking for a way to have my Remote Desktop Web connection send the login credentials behind-the-scenes, so it would automatically login when a user clicks "Connect". I don't know if it's possible or not, but the MSDN article about Remote Desktop Web Connection here indicates that "Optionally, the user supplies automatic logon information (username, domain) for the remote session." To me, this sounds like it might be possible, but I don't see any forthcoming way to do it. As always, your help and consideration is appreciated Well, the default.htm does a put_Username, but not put_ClearTextPassword, so I guess it's not using the "AdvancedSettings" st ...Show All

  • Visual C# Create a function that takes a Property and a Value as a parameter

    This might be a little out there, but lets say that I really want to pass a property of a complex class to a function that will assign the property a value. Example: Private Void AssignValueToProperty(Property property, Object Value) { property = Value } Form1_Load() { AssignValueToProperty(This.BackColor, Color.Red) AssignValueToProperty(This.Text, "Form1") AssignValueToProperty(This.Size, new Size(500,500)) } Is such a function possible, maybe using tools like reflection can someone post a quick example of how I would do this not quite sure what you mean. you can use the public properties approach. Example:   //top of class, global variable declaration: private string theName = String. ...Show All

  • .NET Development Exporting to excell and access

    Hi, I would like to export some information I am storing in some lists to an excell and access database.  I have included Microsoft.Oddice.Interop.Excell and .Access in my references and put the proper using statements, but to tell you the truth I have no idea how to use them.  Can anyone point me to where there is documentation on how to do this and an example would be very very helpful for me to learn a lot faster.  Also is it necessary to do this in COM   I was hoping not but if so then is there a place I could go to learn more about COM in c# Any help here would be great thanks. Matt That is exactly what I am looking for thanks. I have a few more questions though. I noticed that ...Show All

  • Visual Studio 2008 (Pre-release) Xamlpad source code or extensibility

    Is the source code project for Xamlpad publicly available I'd like to be able to experiment with XAML with application objects in addition to the standard WPF objects within a modified Xamlpad. Failing source code availability, is there any way of getting Xamlpad to load application assemblies Thanks for the info. I couldn't find the WPF samples for a short while until I realized that they were in zip files in the samples folder (as opposed to sub-directories within the samples). ...Show All

  • Visual Studio Express Editions [VB Express] program freeze

    hi my program adds COM ports to a ComboBox and there i choose the Right COM ( where i have connected a device) to send commands to that device. the problem is, that when i chose the wrong COMport the program freezes and i have to shut it down. how can i solve this problem i want my program to still run, when i choose a wrong port...so i can choose another one! code sample: With mySerialPort .PortName = ComboBox1.SelectedItem .Open() ''here i open a port If mySerialPort.IsOpen Then .Write("AT" & vbCr) ''sending commands via RS232 to a .Write("AT+CPIN " & vbCr) GSMmodem Else Label1.Text = ("Port still closed" ...Show All

  • Visual Studio 2008 (Pre-release) Construct contextmenu for each item during databinding

    Hi there, I'm trying hard to find out the event that will be raised when data binding. Example, I'm binding to a DataTable in a Dataset, and displaying the result using ListView. All I wanted to do is to construct a custom ContextMenu for each item in the ListView during data binding. The context menu content will vary from item to item (atleast the enabled property will change). At the moment I got the ContextMenu element for the ListView in XAML using ListView.ContextMenu element. Its showing the ContextMenu on each line item as expected, but since its referencing to a single context menu, any property change in MenuItem is reflected on each row. Any thoughts Saravana http://www.digitaldeposit.net/blog ...Show All

©2008 Software Development Network