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

Software Development Network >> Gordon Duff's Q&A profile

Gordon Duff

Member List

AndrewBadera
RaviKanthReddy
Stephen912
Csaba Vegso
David Regan
Raros
LutzH
USACoder
VuaCorona
that_guy
ZopoStyle
jhikel
ShrikantBijapurkar
narend
DavidThi808
DBAMANI
PanzerDivisionMarkus
Don3335
martin kaldma
SisMng
Only Title

Gordon Duff's Q&A profile

  • Visual Studio Team System Merge and branch in various versions of a software in clients but similar in structure

    I hope you can help me out on this one. My company produces an ERP that is based on visual studio 6 and sql server 2005. We need to implement a control version that assures version control, check in policies etc. TFS is the solution for us but there are some issues that I cannot solve. We have a base application for our clients and each client has our base application modified to their need. So here if we branch the base application we have the new client version. The problem here is: how do I have access to a project portal if I branch from the source control explorer without creating a new team project I want to create branches in the source control explorer and not creating a new team project so that I can manage to get a tre ...Show All

  • SQL Server How to connect to AdventureWorks database

    I'm trying to connect to the AdventureWorks sample database, after just installing it from the SQL 2005 setup. I was expecting it to automatically appear in SQL Server Management Studio, but it's not there. H ow do I get it to show up there -Alex You may not have installed them. If you go through SQL Server 2005's setup, you need to select the sample databases option. Paul A. Mestemaker II Program Manager Microsoft SQL Server Manageability http://blogs.msdn.com/sqlrem/ ...Show All

  • Visual Studio Express Editions why this expression is invalid?

    hi when i write Dim buff As Byte() = New Byte(fsin.Length) it says that byte has no contructors and when i put square brackets at the end like that Dim buff As Byte() = New Byte(fsin.Length) {} no complain any explain for this thanks in advance. Usually that implies an initialization Array. For example, you may see this at times: Dim S() as bye = {1,2,3} That will create a three byte array and fill in the values 1,2,3 ...Show All

  • Windows Forms Context Menu Strip

    Hey, by the way my richtextbox is set up I can not set the contextmenustrip I want to use diectly on the control. I have to use the Form1_MouseClick event. So how would I make it so that it only does somthing if the mouse left button is pressed I tryed: private void Form1_MouseClick( object sender, MouseEventArgs e) { if ( MouseButtons .Left) { } } but that does not work... Thanks :) programes25 wrote: if I right clcik the textbox but if I right clcik just outside of the textbox it shows the messaged then the menu... It's exactly what I said. To fix it, you may put the "this.textBox1.ContextMenuStrip = this.contextMenuStrip1;" in the Form1_Load event handler, ...Show All

  • SQL Server SQL Native Client Configuration or Remote Connections problem

    If I look under SQL native client configuration | Client protocols, I have no entries and no ability to look at the properties of SQL Native client Configuration. Something is missing which I think is related to an error when connecting to my local server. sqlcmd -E -S .\devmain, 1064 I get error : Encryption not support sqlcmd: Error: microsoft SQL native Client : Client unable to establish connection An error has occurred while establish a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.. In comparison to other machines here at work, it appears my remote connections are configured. But I have no ...Show All

  • .NET Development Error in receiving binary data from socket

    Hello all :) Am trying to call an aspx page that returns the contents of a photo as a binary blob .. Am using the socket method Here is the code : using System; using System.Text; using System.IO; using System.Net; using System.Net.Sockets; /// <summary> /// Summary description for WebConnector /// </summary> public class WebConnector { public static Socket ConnectSocket(string server, int port) { Socket s = null; IPHostEntry hostEntry = null; // Get host related information. hostEntry = Dns.GetHostEntry(server); // Loop through the AddressList to obtain the supported AddressFamily. This is to avoid // an exception that occurs when the host IP Address is not compatible with the address family // (typical in the ...Show All

  • .NET Development is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.

    im trying to do a simple select statement across sql server express. it is able to return me the query when i try on sdk but the a/m error appear when i try on web browser or emulator. btw, im doing a web service with mobile app. command = new SqlCommand("SELECT MAX(AID), UID, isDefault FROM Alert where (UID =" + uid + ") AND (isDefault='" + isdefault + "')", dc.Connection); above is my code when i try on web broswer and emulator. SELECT MAX(AID) from Alert where (UID =1) AND (isDefault='n') above is my code when i try on sdk (vs.net2005) what is wrong im trying to find the latest entry into the table by searching the largest AID in the table. im wanting to get ...Show All

  • SQL Server Can't Call Stored Procedure in SqlFunction

    There is a SqlFunction in my SQL Server Project: [Microsoft.SqlServer.Server.SqlFunction(DataAccess=DataAccessKind.Read)] public static SqlBoolean GetRelation(SqlGuid ID) { using (SqlConnection conn = new SqlConnection("context connection=true")) { conn.Open(); SqlCommand cmd = new SqlCommand("SELECT * FROM MemberRelation WHERE ID='" + ID + "'", conn); //SqlCommand cmd = new SqlCommand("EXEC GetMemberRelation '" + ID + "'", conn); /*SqlCommand cmd = new SqlCommand("GetMemberRelation", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@ID", SqlDbType.UniqueIdentifier)); cmd.Parameters["@ID&qu ...Show All

  • Windows Forms Problem adding controls programmaticaly to programmaticaly created form

      Hi, I'm trying to create a form at runtime, and I need to add controls to that form. Now the problem is that i get many errors like this one: error C2664: 'System::Windows::Forms::Control::ControlCollection::Add' : cannot convert parameter 1 from 'System::Windows::Forms::GroupBox' to 'System::Windows::Forms::Control ^'   when I try to add the controls. Here is the code I'm using (in a void): //Declare form + controls/////////////////////// //Form // System::Windows::Forms::Form frm_settings; //HL settings - groupbox + controls System::Windows::Forms::GroupBox HL_settings; System::Windows::Forms::Label lbl_path; System::Windows::Forms::TextBox txt_path; System::Windows::Forms::Button btn_browse; System::W ...Show All

  • Windows Forms PictureBox question

    Hi, i'm making an application that generates a barcode so I store in the database the string that represents the barcode. The problem is that I show the barcode in a picturebox and I have a string that need to converted before it can be shown as a bitmap. How can I databind it without having to store the image in the database. Thanks in advance. I solved my problem, I went back to String value and made a method that shows the barcode when I'm paging the record set. Thanks. ...Show All

  • Software Development for Windows Vista "bindingRedirect" does not work, same error occurs

    Hello, I'm using the "bindingRedirect" element in my web.config to allow updates of my workflow DLL without recompiling the website. But I still receive the same error: Could not load file or assembly 'TestWorkflowLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c417d4d39ba0d6b2' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) I built my website with version 1.0.0.0 of "TestWorkflowLibrary". After that I created a version 1.1.0.0 of "TestWorkflowLibrary" which I placed in the "bin" folder of my website. When accessing the website, the above error is shown. I read that it's poss ...Show All

  • SQL Server simple text processing e.g. regex search and replace

    I've got an nvarchar(max) column that I need to transform with some simple text processing: insert some markup at the very beginning, and insert some markup just before a particular regular expression is matched (or at the end, if no match is found). Since the SSIS expression language doesn't support anything like this, is a Script Component the only way to go Does Visual Basic .NET provide regular expression matching Thanks! Kevin, SQLIS.com has a great task to do this in a can here:http://www.sqlis.com/default.aspx 91 I have a blog post here about how to do it through a script transform: http://www.whiteknighttechnology.com/cs/blogs/brian_knight/archive/2006/01/12/81.aspx If you find yourself needing to do this more th ...Show All

  • Smart Device Development Returning data to my pocket pc from a webservice and displaying it

    I'm setting up some test projects and I'd like to return data to my Pocket PC. I'm calling a webservice (net.webservicex.www). Here is the method I'm calling <System.Web.Services.Protocols.SoapDocumentMethodAttribute( "http://www.webserviceX.NET/GetInfoByZIP" , RequestNamespace:= "http://www.webserviceX.NET" , ResponseNamespace:= "http://www.webserviceX.NET" , Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function GetInfoByZIP( ByVal USZip As String ) As System.Xml.XmlNode Dim results() As Object = Me .Invoke( "GetInfoByZIP" , New Object () {USZip}) Return CType ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Really, REALLY strange "bug" with Vector3

    For my ray tracer, I created my own Vector struct that pretty much wraps a Vector3. The thing is, I used to have just three floats; X, Y, and Z. Now I just unioned them with the Vector3. For some reason, rendering time cut down by about 15% (i.e. from 10 seconds to 8.5). I removed the Vector3 and it went back to being 10 seconds. ...Wtf Is there a hidden type constructor with Vector3 that makes it much more efficient I'm not even using any of the Vector3 methods for my transforms and such. Could anyone tell me what the hell did I stumble into Pon t3h pony wrote: They're exactly the same. Are you sure There must be a difference somewhere! If all of the methods and constructors are t ...Show All

  • SQL Server Processing failures result in hangs - "Canceling process operation. Please wait."

    Whenever I process a cube and it fails (usually because of referential integrity issues and me forgetting to ignore errors), I'll click "stop", but the dialog will hang with the canceling notice. The only way I've discovered to get around this is to restart the SSAS server, but it just feels like I may be corrupting data or something by doing this. Is this a known issue Are there better ways of working around this Also, what are the best ways to debug the RI issues that typically cause cube processing to fail They way to solve this problem, in short terms, is to add dummy dimension members like "Not applicable" i each dimension have use this member as a fact dimension key when the d ...Show All

©2008 Software Development Network