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

Software Development Network >> Derek Smyth's Q&A profile

Derek Smyth

Member List

Alessandro Ferreira
Hobbit666
setrio
Gurpreet Singh Sawhney
sirpelidor
StevenR2
Harish1
JCDS
doank
Thomaschr
robinjam
Dan Balaceanu
CoderD
Scott_P
zeeshan hirani
Boter2099
monkeyboy123456
karande23
Ant_59
papadi
Only Title

Derek Smyth's Q&A profile

  • .NET Development button to replace URL

    I'm creating a short page that contains a text box and a button. The user enters a url into the tex box. When the user clicks the button, the effect should be the same as clicking on a hyperlink that contains the URL. Now ... I can do all of this, but the response wants to return the contents of the url to my program. I'd like for it to just pass the file as if I clicked on it in a browser. Can someone help Thanks! can't understand ur question completely, Are you just wanna get response conetent in your application or wanna show these contents like web page shown in Web Browser. if you just wanna get response contents of particular URL then use following code. // Creates an HttpWebR ...Show All

  • Visual Basic Why does the Graphics Path shape not display correctly?

    Hi pals, Yesterday i posted a very long thread on my drawing a Graphics shape. Let me be brief here: First of all, The path is filled and drawn with the right and bottom sides clipped. I don't know how to get around this bug. How can I draw it correctly so that the it fills and draws a border nicely without any clipping. Note: I am using a graphics path object here, not a rectangle( where i could use the inflate method) Secondly, after drawing the shape and assigning as a region to a control, the result is so crappy: jagged pixeled lines. When i don't do any region assignment, the drawn lines are smooth and nice(even though the right-bottom clipping still occurs). Please I really need your help on this. I have dived into GDI ...Show All

  • .NET Development System.NullReferenceException: Using DataAdapter.Fill

    I try to fill a dataset, with a dataadapter, I get the following error: {"Object reference not set to an instance of an object." } [System.NullReferenceException]: {"Object reference not set to an instance of an object." } System.Object: {System.NullReferenceException} _className: null _COMPlusExceptionCode: -532459699 _exceptionMethod: <undefined value> _exceptionMethodString: null _helpURL: null _HResult: -2147467261 _innerException: { } _message: "Object reference not set to an instance of an object." _remoteStackIndex: 0 _remoteStackTraceString: null _source: null _stackTrace: {System.Array} _stackTraceString: null _xcode: -1073741819 _xptrs: 1235480 HelpLink: null ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DreamBuildPlay is up!!!

    Now go register!!   Actual contest details to come the week of Feb 5th U can't do it....U can't give wrong information, as it's violation of "terms of use": MEMBER ACCOUNT, PASSWORD, AND SECURITY If any of the Services requires you to open an account, you must complete the registration process by providing us with current, complete and accurate information as prompted by the applicable registration form. You also will choose a password and a user name. You are entirely responsible for maintaining the confidentiality of your password and account. Furthermore, you are entirely responsible for any and all activities that occur under your account. You agree to notify Microsoft im ...Show All

  • Microsoft ISV Community Center Forums RunTime Error '2001'

    Hi, I am getting " runtime error '2001' you cancelled the previous operation " in my VBA code for MS Access. The database is saved on the server and linked to a table of another database which is also on the server and used by many users. But when i put everything locally then i wont get this error. Pls help! Thanks in advance Cheers Rohit Yes Cindy, you are correct, it is an Access db form. I have done as you have said in my above code towards the bottom but that's where it takes me when debugging the runtime error. Anyways, I stopped using bookmarks in my posted other code below and everything works out fine now using DoCmd's. Thanks for the post! ...Show All

  • .NET Development loading data from .txt file

    Hi again, I have a .txt file that conains data like the following: data1 data2 data3 data4 ... ... ... ... .... ........ ...... ......... The data I need is in column "data3", and i want to load it in an array. The question is how can i read all the data and keep the one that I need 10x You'll have to read the file one line at a time and then split the line up as appropriate: If the columns are in fixed positions with fixed widths, use string.Substring(). If the columns are delimited with a separator char, use string.Split() ...Show All

  • Visual C# Update is not effecting to physical dataset

    Hi here i'm trying to add a new row to my dataGridView at runtime so i do like this DataTable dt = _dataset.Tables[ "employee" ]; DataRow dr = dt.NewRow(); dr[0] = "Nagu" ; dr[1] = 101; dr[2] = "Salur" ; dr[3] = 35000; dt.Rows.Add(dr); dt.Rows[2][1] = 600; _dataset.AcceptChanges(); _sqlDataAdapter.Update(_dataset, "employee" ); but it accepting locally but its not effecting the original database. How can i do this Is there any mistake Thanx - Nagu hi, how did you know that your update method didn't update your database adapter.update return int represent the number of rows that were affected, if your dataset was ge ...Show All

  • Software Development for Windows Vista Throwing SoapException between WS_Receive and WS_Response

    I have a state machine workflow that has a WebServiceInput and a WebServiceOutput. According to the documents, any unhandle exceptions thrown between a WS_In and a WS_Out will return a SoapFault. A soap fault is being returned to the consumer of the web service. However, in one of my activities I am explicitly creating a SoapException and building the Detail property of the SoapException. After the SoapException is created, I throw it, and dont handle it. When the soap fault is returned to the caller of the web method, the xml contents of the detail section of the SoapException are gone. If I throw a SoapException from some code in a normal web service and use the soap toolkit to see the contents of the soap fault, the <Detail> ...Show All

  • Visual C++ DLL Project migrated from VC6 to VC8 crashes.

    Hi, I am currently maintaining an MFC/ATL COM project that has been compiled till now with Visual C++ 6. I have been assigned the task to maintain the code under the VC8 compiler. The solution has several projects under it. Most of them generate DLLs, and there is also an Application project that uses these generated DLLs. Migrating the code from VC6 to VC8 has meant mainly performing the following minor changes to the code... using the _CRT_SECURE_NO_DEPRECATE macro definition to suppress various warnings (not errors) regarding deprecated function calls etc. removing the @1, @2 ... ordinals from the .def file changing string functions like ltoa() to _ltoa() etc. static_cast<> for conversion errors ...Show All

  • Visual Studio Team System BEST PRACTICES: Importing Common Libraries

    OK, This is something that has bugged me for a while. I'm hoping someone with a little insight might be able to solve this one for me. Let's say I have two solutions. One is a "common base framework" of often-used classes and utilities. The other is a current project I'm working on that uses this framework. Now here's the stickler. The common framework is on one TFS server, and the current project is on another server altogether. I want the current project to use the latest bits, but I don't want to copy the source and include it into my current project. Then I'll have two codebases to maintain. I wish there was some sort of "Partial Solutions" that TFS could incorporate that would allow me to pick and ch ...Show All

  • Microsoft ISV Community Center Forums Problems with last 2 parts of code?

    Hi Just testing my almost completed project and have come across two pieces of code that are proving a pain in the butt for me! I wonder if a fresh set of eyes may pick up on something i'm missing... Basically I have to run the macro a number of times before it properly removes all the rows of data I want it to - any ideas Sub cmdRemoveEntries_Click() 'used to automate the removal of exceptions such as Russia, Ukraine Dim x, z As Integer Dim cell As String z = Module1.GlobalCount 'total number of employees to be processed For x = 2 To z cell = "O" & x 'O signifies the Site in which the employee is based 'feel free to add other countries/sites as they become applicable 'MS/NN/WT ...Show All

  • SQL Server BCP task and Dynamic import and export of a file via package variables

    I have a requirement to create many SSIS packages and no datatransform is required so the BCP task looks a good contender providing it can do both import & export is it possible to parse the values in bold as package variables into the BCP task. If so how BULK INSERT ipcs_wvg.dbo.extract FROM 'D:\IPCS\extract.csv' WITH (FORMATFILE = 'D:\ipcs\query\extract.xml' ); Thanks in advance Dave I have a global database called ETL Configuration for all my SSIS packages that uses a single table. So I can create three global variables USE [ETLConfiguration] CREATE TABLE [dbo].[SSIS Configurations]( [ConfigurationFilter] [nvarchar](255) COLLATE Latin1_General_CI_AS NOT NULL, [ConfiguredValue] [nvarchar](255) COLLATE Latin1_Gener ...Show All

  • Visual Studio Express Editions Make a transaction

    Hello I want to make a transaction in my bank account project which has the balnce of accout & I want to use the List<Transaction> Can naybody help me Like this using System; using System.Collections.Generic; using System.Text; namespace Test {     class Transaction     {         private int Balance;         public Transaction(int NewBalance)         {             Balance = NewBalance;         }         public override string ToString ...Show All

  • Visual Basic File Watcher

    Hi, I have a fileWatcher set as follow: Private Sub setupFilewatcher() Dim info As New System.IO.FileInfo(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile) Dim path As String = info.DirectoryName Dim file As String = info.Name Try watcher = New System.IO.FileSystemWatcher(path) watcher.Filter = file watcher.NotifyFilter = IO.NotifyFilters.LastWrite watcher.EnableRaisingEvents = True Catch e As Exception 'Do nothing... End Try End Sub My problem is that the event watcher.changed is fired 4 times when a save occur in the file. I need to catch only 1 event and not 4 times the same event. Any ints Tanks Sylvain The Changed event ...Show All

  • Visual Studio 2008 (Pre-release) Sending Attachments in WCF

    Hi i am trying to send attachments from my client app to my service app in WCF with the help of the samle provided at " http://weblogs.asp.net/cibrax/archive/2006/03/29/441398.aspx " I am using Beta2. But when i try to add service reference to the client in that sample i am getting an exception stating "Compression Header is missing". I am not sure which CTP the sample is. Need help regarding this. let me know is there any other sample available for sending the attachments . TIA Cheers Jithendrian. R Here are some general guidelines for large messages (I'm assuming that you aren't streaming): Create a separate contract for operations with large uploads, make al ...Show All

©2008 Software Development Network