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

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

rWarrior

Member List

Phil Winstanley ASP.NET MVP
Ben Taylor
CalinMac
nhd
Computer Guy69146
starLisa
jhinzman42
Deldy
Furtive Networks
AaronTM
Quilnux
Jeremiah Fulbright
JesusReagan
etcheverrjc
chris bax
Bowen294671
JavaBoy
S4turno
Leonard Lee
Superlexx
Only Title

rWarrior's Q&A profile

  • Visual Studio CreateItem and wildcards

    Does anybody know why this does not work It seems to have a problem with the recursive wildcards <CreateItem Include="@(sourceServer->'\\%(Identity)\$(OutputPath)\**\*')"> <Output ItemName="newSource" TaskParameter="Include"/> </CreateItem> Thanks, Russ Russ, it works for me. <Project xmlns=" http://schemas.microsoft.com/developer/msbuild/2003 "> <ItemGroup> <SourceServer Include="danmose1"/> </ItemGroup> <PropertyGroup> <OutputPath>public</OutputPath> </PropertyGroup> <Target Name="t" > <CreateItem Include="@(sourceServer-> ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Game Components Demo

    I've posted a video of my Game Components demo I did at Gamefest. http://blogs.msdn.com/xna/archive/2006/08/31/734204.aspx You can either right click on the Toolbox, Choose Items... and browse to the assembly containing the component or if you wanna go whole hog, try looking into the VS Content Installer (VSI template files) which will allow you to package up your component and send it to people. They double click on it and it installs for them into the toolbox. ...Show All

  • Visual C# Talk to SQL database from C#

    Hi everyone, I have a database file that I want to access from C#. I want to be able to read from it, write to it and generally do SQLy things with it. I have used SQL before, so I am not to worried about the actual language bit. What I can't get to work is the interface between C# and my file. My code so far is: using System.Data.SqlClient; private void Connect_Click( object sender, EventArgs e) { string connect = "connection timeout=45" + ";" + "Data Source=|DataDirectory|\\CsTestDataBase.mdb" ; SqlConnection myConnection = new SqlConnection (connect); myConnection.Open(); SqlCommand myCommand = new SqlCommand ( "INSERT INTO Info (MyDate, FileNa ...Show All

  • SQL Server SQL 2005 Express New Login

    Hello all Im new to SQL 2005 express so please bare with me, I have set up wireless peer to peer network and I am trying to access an express database from one machine to another. I can transfer files no problem. When I try to create a new login, I am forced to only select logins local to the machine with the database. When I try and create a new login by typing <machinename><windows account > of the second PC, SQL can not see it. I have tried both Windows authentication and mixed mode... no success. Any ideas Thanks That is standard Windows behaviour: either use accounts or groups from the local machine or make the machine member of a domain to allow domain users to get ...Show All

  • SQL Server SSIS: Roll Backed Data transfer task

    Hello, I'm Designing sql server 2005 SSIS Packages. According to my requirment i have a sequence container. It has few data flow task, on success of one next one is running. If any one of them get failed then it should roll backed all the transaction. Each Data flow task transfering a data from one server to another server in similar table. Thanks. Transactions are covered quite well in Books Online, and here are some other links to articles on transactions. Native Transactions ( http://wiki.sqlis.com/default.aspx/SQLISWiki/NativeTransactions.html ) Transactions in SQL Server 2005 Integration Services ( http://www.sqlservercentral.com/columnists/jthomson/transactionsinsqlserver2005integrationservices.asp ) SQL Server 2005 In ...Show All

  • SQL Server Custom Assembly Problem

    I am trying to use my own custom assembly in my SQL Server 2005 report. I have coded and compiled the following code to produce the ReportLibrary.dll: Imports System.Data Imports System.Security Public Class myClass Public Function myFunc() As Integer Dim value As Integer = 0 Dim permission As New SqlClient.SqlClientPermission(Permissions.PermissionState.Unrestricted) Dim myCommand As New System.Data.SqlClient.SqlCommand() Dim conn As New System.Data.SqlClient.SqlConnection( "MY CONNECTION STRING”) myCommand.Connection = conn myCommand.CommandText = "MY SELECT STATEMENT" Try permission.Assert() ...Show All

  • Visual C++ How to avoid Busy Waiting?

    Hey everyone :) I wish to know how can I translate a "busy waiting loop" approach into an event driven approach Lets say I have a queue of tasks, whenever there are elements in the queue, a process has to treat these elements Now I do it like this: while(1){ if(MyQ.Size()>0){ My.Q.RemoveHead .... } } This approach causes the cpu to work on full load, even if there are no elements in the queue. Is there a way to avoid this loop and somehow to create an event driven approach. Something like OnQueueHasElements... Thanks in advance :) As I understand it you don't want your infinitive loop to hug all the cpu time. You said this approach "causes the cpu to ...Show All

  • Visual Studio 2008 (Pre-release) Client and service see different SessionId for a duplex contract?

    Hi, I have a simple WCF app using the NetTcp binding and a duplex contract.  I'm using InstanceContextMode.PerSession and the sessioning works fine.  What I don't understand is why I get different values for "SessionId" on the client and service side when using a duplex contract.  For a non-duplex contract the client and service are seeing identical "SessionId", which is what I would expect.  So why not also for a duplex contract   Thanks, Alan Client code:     String strSessionId =         CMyService_ClientSideProxy.InnerChannel.SessionId;     These return identical strings to strSessionId above:     CMyService_ClientSidePr ...Show All

  • .NET Development Making a delegate for serialport

    Hi, I got a device attached to my serial port which takes a few commands like "get version". But some commands return big strings which the serial port is not passing all through at once. So i want to make a delegate with an event handler which listens if anything has arrived yet and append it to a rich text box. I've tried a few things, but i keep getting all kinds of errors in runtime. So i undo those changes. This is my code: FIELDS: public SerialPort serialPort; public delegate void GetData(string getDataFromBuffer); public event ReadDataInBuffer dataRead; private string buffer. private void SerialPort_DataReceived(object sender, SerialDataReceivedEventArgs e) { this.buffer += this.serialPort.ReadExisting(); } S ...Show All

  • SQL Server Using global variables in T-SQL, SQL Server 2000

    Hi,   Is there any way to create and use global variables(session variables) using T-SQL(SQL Server2000) In Oracle PL/SQL the package level variables act as global variables. I'm looking for something similar to this. As there is no concept of packages in T-SQL, is this possible or is there any other way to do this Cheers,   You can use SET CONTEXT_INFO from SQL Server 2000 onwards to store 128 bytes of information per session. Who can see the rows from other sessions depends on the permissions of the login. See BOL for more details. Alternatively, you can create a temporary table and store the value there. If you create the temporary table at connection level th ...Show All

  • SQL Server round function in sql statement not executing

    Hi , I'm new to t-sql so bear with me cos this might be a stupid question. The code below SELECT [CODE], [PERIOD], [OPERATOR], [RATE], Round(IIF([OPERATOR]='/',[RATE],1/[RATE]),3) AS EXCHRATE INTO tbl_currency_test FROM [SUNDB].[dbo].[SSRFCNV] WHERE [CODE]='NGN' AND [PERIOD]<>0 always gives me the following error message Server: Msg 170, Level 15, State 1, Line 1 Line 1: Incorrect syntax near '='. However when i remove the round() code from the statement it executes fine. Can someone please please let me know what i'm doing wrong here.... Cheers Hi, The IIF is for MDX statements. For SQL statements, you need to use the CASE keyword. SELECT [CODE], [PERIOD], [OPER ...Show All

  • Visual Studio Download of Visual Studio Professional 90-day Trial (only 1.1 GB not 2.6 GB downloaded, why?)

    From the following site: http://www.microsoft.com/downloads/details.aspx FamilyId=B2C27A7F-D875-47D5-B226-E2578A116E12&displaylang=en I downloaded the "MS Visual Studio 2005 Professional Edition 90-day Trial" image file name En_vs_2005_Pro_90_Trial.img. The site indicates that the download would be a 2734..3 MB file (2.6 GB). However, after 1,119,590 bytes of download, the download dialog box indicated that it was storing the download segment to disk and the final file size is 1,119,590 bytes and the filename is En_vs_2005_Pro_90_Trial.img (a DVD image file). I wonder if it is only part of the download or it is all the data referred to in the above webpage. Shall I just burn the 1,119,590 MB to a DVD and it will ...Show All

  • Windows Forms TableAdapter Query not populating DGV.

    I have a project with two forms. Each form uses a table adapter to fill a dgv. On the first form the query populates the dgv just fine. On the second form, an identical ( I think) query runs without error messages but no data goes into the dgv. First form, frmFindAccountNumber, executes the query and populates the dgv residing on first form. Since both dgv are bound to this table adapter, shouldn't they both be populated when this query runs Currently, only the dgv on the first form that runs the query is updated. MsgBox( "FillbyAccount" ) Try Me .MemberFileTableAdapter.FillByAccount( Me .TrialBalanceOneDataSet.MemberFile, New System.Nullable( Of Integer )( CType (txtSelectedAccount.Text, Integer ))) C ...Show All

  • Visual C# event questions

    how can i start an event from other event or other function also how can i cancel the events or stoping it from operation i mean if i'm already creating a timer event and now i'm in a bottun click event , how can i start the timer event from my button event then cancel the timer event from other event or other function thanks but i'm not talking about a timer specificly , i'm talking about the general events like mouse button clicking what i want is when a messagebox returns a retry key i want tostart a button click event handler buttom1_clicked() { .. ... if(messagebox.show(......,messageboxbuttons.retrycancel,..)==dialogresult.retry) //start this event again or other event } ...Show All

  • Visual Studio Express Editions FATAL ERROR LINK1181

    Hello people, I just installed the visual Studio Express(followed all the steps on Microsoft website) and trying to compile a simple code but I get error message: FATAL ERROR LINK1181 cannot open input file 'user32.lib' Also when I search for this fie on my computer this file cannot be found. I reinstalled the Visual Studio again & again. The same result. Please help. Farrokh Mooir Please help What version of express are you using... (C#, C++, VB.Net etc), if you are using the Visual C++ Edition hae you linked in the platform SDK. http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx ...Show All

©2008 Software Development Network