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

Software Development Network >> Will C.404367's Q&A profile

Will C.404367

Member List

TheMaj0r
RoadGlide
jaapdevries
HMariana
Terry Smith
Siggy01
ClaudiaHelpOnVSTO
Ponnurangam
fibonacci1123
Newbie Kam
HardwareJunkie
Devkhera
Xcel
Alexander Marinov
ranasrule
Tamim Sadikali
Boman
Dirk Haest
phowatt
battlestar 2007
Only Title

Will C.404367's Q&A profile

  • SQL Server sqlxmlbulkload problem with schema

    <xsd:element name="current-conditions" sql:is-constant="1"> <xsd:complexType> <xsd:sequence> <xsd:element name="date" type="xsd:string" sql:mapped="false"/> <xsd:element name="time" type="xsd:string" sql:mapped="false"/> <xsd:element name="reporting-station" sql:relation="weather"> <xsd:complexType> <xsd:sequence> <xsd:element name="city" type="xsd:string" sql:mapped="true"/> <xsd:element name="state" type="xsd:string" sql:mapped="true"/> <xsd:element name="temperature" type="xsd:str ...Show All

  • SQL Server Inconsistent performance from queues

    Hi everyone! I have a very brief question... I have 10 queues in my database and each of them are sent equal number of messages... There are instances where they execute/activate the stored procedures very fast but there are times where they don't, does anyone have an idea why this happens Thank you very much for taking the time to read my post. :) I just noticed that I'm only ending the conversation in the TargetQueue and never in the InitiatorQueue (this is associated with the service that initiated the conversation). Could this be a possible cause I noticed that after all the processing, the InitiatorQueue contains a lot of message with message type of http://schemas.microsoft.com/SQL/ServiceBroke ...Show All

  • Windows Forms Need to get the .MainWindowHandle

    I am trying to get the mainWindowHandle and store it for later; however, i can not seem to get the handle back from the new process. Before someone suggest , i will let you know that i have also tried the p.WaitForInputIdle(); however, this not only does not work it will throw and error..   private IntPtr mainHandle = IntPtr .Zero; private void button1_Click( object sender, EventArgs e) { Process p = new Process (); ProcessStartInfo ps = new ProcessStartInfo (); ps.FileName = "explorer.exe" ; ps.Arguments = "" ; p.StartInfo = ps; p.Start(); mainHandle = p.MainWindowHandle; } Can someone tell me how to get the mainWindowHandle   Erik I added a Thread.Sleep( sleep time ...Show All

  • SQL Server certificate start date is tomorrow - how to make it today?

    Hi, I use MS certificate server to request/make server certs but the "not before", or start date is tomorrow for a 1 year cert. I dont care how long but I want the cert to start immediately (today). Regards, Simon. Sorry, this is not a SQL server problem but a CertSrv problem and I dont know how to specify these validity dates for it. Question reposted on " Security for Applications in Windows Vista " Thanks, Simon. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Issues rendering a triangle

    I understand this is beta and the docs aren't complete, but the docs are very limited. I'm attempting to render a triangle to the screen and am failing. I was hoping for basic code as was provided with MDX. Currently I get a cornflower blue screen but nothing is rendered. I've attempted taking the vertex declaration out of a using clause, and that did nothing. Any ideas I figure I must be missing some setting somewhere. Here's my draw function: protected override void Draw() { // Make sure we have a valid device if (!graphics.EnsureDevice()) return; VertexPositionColor[] triangle = new VertexPositionColor[3]; triangle[0] = new VertexPositionColor(new Vector3(-1.0f, 0.0f, 5.0 ...Show All

  • .NET Development ILAsm syntax

    hello there, I'm not sure if this forum the most appropriate place to ask this question, but i'll try... I need to write simple console application in ILAsm as a part of my diploma and I hardly understand why below code works (compiles and executes in ilasm): ldstr "Enter a" call void [mscorlib]System.Console::Write(string) and this one - not: ldstr "Enter a" call valuetype [mscorlib]System.Void [mscorlib]System.Console::Write(class [mscorlib]System.String) why "string" and "class [mscorlib]System.String" isn't the same See the ECMA CLI specification , specifically Partition II section 7.2 and 23.2.16. ...Show All

  • Windows Forms Datagrid + Append + Existing Excel

    Hi I have a datagrid, and i have an Excel with already filled in data from the same grid. Now i wanted to Append the newly obtained data in the grid to the Excel. I know how to browse to that Excel on my local machine in C#, but i dont know how to append the grid current data to the existing data in Excel. I have exported the code to this excel from grid using the below code: foreach ( DataColumn col in table.Columns) { ColumnIndex++; excel.Cells[1, ColumnIndex] = col.ColumnName; } int rowIndex = 0; foreach ( DataRow row in table.Rows) { rowIndex++; ColumnIndex = 0; foreach ( DataColumn col in table.Columns) { ColumnIndex++; excel.Cells[rowIndex + 1, ColumnIndex] = row[co ...Show All

  • .NET Development Aspect Oriented Programming techniques - intercepting calls to properties/methods - how?

    I'm curious to know how aspect-oriented programming tools for .NET are able to work. In other words, how do you intercept a call to a property getter or setter, or to any other method Is it possible to use reflection and the Emit namespace to read an assembly and replace it with another assembly that is identical except for a few extra method calls before and after what was previously the method body Does this need to happen in a linking step (weaving multiple assemblies together) or could it be done dynamically by replacing an in-memory assembly What restrictions does the CLR impose on reaching into an AppDomain and making in-memory changes to the MSIL there Is it able to re-JIT changed methods Dan O ...Show All

  • Software Development for Windows Vista WINSOCK DGRAM socket bind() BUG

    Hi, I think that I found a bug in Vista winsock implementation, I'm not sure where to report, so I'll post it here. Description: If bind() call on datagram socket returns that scocket is in use WSAEADDRINUSE (10048), then next call of bind() on the same socket on a free port returns WSAEINVAL (10022) i.e socket is bound already. How to reproduce: Write a simple program that opens 2 datagram sockets, bind one of them on a free port, then bind the second socket on the same port, so you'll get WSAEADDRINUSE, then try to bind the second socket on a free port and you'll get WSAEINVAL. Test case: WSADATA wsaData; int iResult = WSAStartup(MAKEWORD(2,2), &wsaData); SOCKET Socket1 = socket(PF_INET, SOCK_DGRAM ...Show All

  • Visual Studio Express Editions iTunes COM Problem

    Hey there. I am writing a program that includes showing the current playing song on iTunes. I also want to show the current playing song on Windows Media Player and WinAmp. My problem is the following: If iTunes (and I'm assuming WinAmp or Windows Media Player) aren't open or the music is paused and now Current Song is being passed, my program freezes. These are the steps I've taken to showing the Current Song. 1) I've added iTunes 1.8 Type Library to my project 2) In Form1.vb I've added the following code above Public Class Form1: Imports iTunesLib Imports System 3) In a Timer I have the following code: Dim itunesapp As New iTunesApp SongNameToolStripMenuItem.Text = (itunesapp.CurrentTrack.Name) SongArtistToolStripMenuItem.Tex ...Show All

  • Visual Studio Copy & Paste multiselection on diagram

    Hello, I'm somewhat in trouble with this. I added cut, copy & paste to my DSL for a neural network. Cut, Copy and Paste works for single selections, but as soon as I copy more than one element pasting fails. There is always only one element pasted, no matter how many elements are selected. Here are the code snippets: Copy: // Retrieve the current diagram Diagram currentDiagram = this .CurrentDocView.CurrentDiagram; // Create a new data object to hold copied objects DataObject dataObject = new DataObject (); // Retrieve a list of selected shapes/objects... List < ModelElement > modelElements = this .GetSelectedModelElements(); // Copy the selected elements currentDiagram.Element ...Show All

  • Visual Studio Crash while Building DSL Project(s)

    After two months of successfully building DSL's, I am now unable to Build any of my DSL projects. The build process terminates after the following line appears in the output: C:\Microsoft Visual Studio 8\Common7\IDE\devenv.com /rt "Software\Microsoft\VisualStudio\8.0Exp" /setup I'm able to sucessfully build these projects on another machine. I presume that my Experimental Hive has somehow become corrupted. Does anyone know how I can make my machine functional again You can try resettings your experimental hive. Available through a shortcut of the VS.NET SDK in your start menu. Or via: "VsRegEx.exe GetOrig 8.0 Exp". Hope it helps, Gerben. ...Show All

  • Visual Studio Express Editions mutipe pages?

    im trying to use a button to load a new page in the same window can someone give me some device Just close the existing one and create a new one: Public Class Form1 Private mForm2 As Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If mForm2 IsNot Nothing Then mForm2.Close() mForm2 = New Form2 AddHandler mForm2.FormClosed, AddressOf Form2_Closed mForm2.Show(Me) End Sub Private Sub Form2_Closed(ByVal sender As Object, ByVal e As FormClosedEventArgs) mForm2 = Nothing End Sub End Class ...Show All

  • SQL Server DTS migration wizard, where does it put migrated version?

    From SQL Server Management Studio I right click on Management/Legacy/DTS and select Migration Wizard and enter a SQL Server Source and Destination. A list of DTS packages from the source server is displayed and I select one of the DTS packages and give the destination a unique name. The wizard runs and says it's successful. I can't find the new SSIS version of the DTS package with the new name that I've given it, however. Where does it put the new migrated copy of the DTS package. Thanks, John ...Show All

  • Windows Search Technologies Locked Network Files

    Question: Other than excluding mapped network drives from indexing, is there a way to avoid WDS locking network files and preventing others from working with them (specifically, saving them) Details: When one or more workstations in our office are configured to index shared network resources, very often (larger) files in these locations become locked by the indexer, thus preventing the author from working with the files. In a specific example, we often run into problems updating PDFs or saving a Visio documents. The file server shows that the lock belongs to an unattended workstation running WDS. Also, it's odd that many of the files are fairly static... causing us to wonder why the indexer would be looking at the content again a ...Show All

©2008 Software Development Network