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

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

daveCsharp

Member List

DiasVFX
KitWest
robinjam
Jason Wilborn
ondafringe
une
piyush varma
KIWIDOGGIE
Srekel
Vince Cooper 58
jheddings
Jassim Rahma
Zingam
Josh Smith
Schasta
abowman
Josh Smith
vats
Vicam
Syed Mazhar Hasan
Only Title

daveCsharp's Q&A profile

  • SQL Server sqlcmd :r and spaces

    I've been pulling my hair out with this for a bit and thought I'd post a solution. The problem is that if the file name :r reads contains spaces, it almost always gives an error. The solution isn't great and if anyone has something better I'd love to see it: :setvar dir "C:\test dir\" :setvar file "my file.sql" PRINT '$(dir)$(file)' :r $(dir)$(file) GO :setvar file "my file 2.sql" PRINT '$(dir)$(file)' :r $(dir)$(file) GO :setvar file "my file 3.sql" PRINT '$(dir)$(file)' :r $(dir)$(file) GO Hope this helps someone. Thanks Robert, That only works if the filename is a constant. I suppose I could search and replace but then I'd have to hunt through the script to see if ...Show All

  • .NET Development Problems with Synchronous Networkstream

    I'm trying to send a file using the Networkstream class, but some bytes were missing so I use the socket to send a message to the client after the bytes are received and the client waits for the message before it sends any more bytes. I'm using synchronous so instead of sending yet another messsage saying the bytes were sent, it will just wait untill there are bytes to be read and read them. The problem is that the client isn't sending anything to the server. I've looked at Networkstream.DataAvailable for the server's Networkstream and it's always 0... NS = networkstream You can pretty much ignore the other code, it's not important . . . Anyway, this is the code to the client: while ( BytesSentSoFar < Convert.ToInt32(FileSize)) ...Show All

  • .NET Development accessing AppDomains form parent process only

    Hello! I'm building plug-in framework consisting of main application domain and some AppDomains, which host plug-ins. I need the plugins' AppDomains to be accessible only from my application process, not network, nor even other processes on the same machine. How to achieve this Could you provide me some guidelines Thanks in advance, ukasz App Domain will not accessible from other process or AppDomain unless you explicitly expose some objects out of it. can you try and let us know. http://DotNetWithMe.blogspot.com vikas goyal ...Show All

  • Visual Studio Team System TF26212 - work item type definition problem

    I've changed a work item type using witexport and importing it using: witimport /f <file name> /t <team foundation server> /p <project name> After importing, the work item type displays correctly, but when I try to save it, I get the following error: TF26212: Team Foundation Server could not save your changes. There may be problems with the work item type definition. Try again or contact your Team Foundation Server administrator. Unfortunately, the other items I found in the forums about this were unhelpful. My problem is slightly unique - Logging in as myself, I get the error above. However, a coworker logged in and did not get the error when saving. Any suggestions on how to correct this ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Pulling Data from ContentManager

    I've got a question on why to use the content manager. Say I have loaded a texture into the content manager - paddle = content.Load< Texture2D >( @"Graphics\paddle" ) as Texture2D ; If I want to access the data from the content manager, would I have to put something like this - sprites.Draw(content.Load< Texture2D >( "Graphics\\paddle" ), new Vector2 ( this .paddle1.Point.X, this .paddle1.Point.Y), Color .White); Or is there an easier way then that Cause if I have made a texture variable, then loaded it into the content manager, why couldnt I just call the variable directly like this - sprites.Draw( this .paddle, new Vector2 ( this .paddle1.Point.X, this .paddle1.Point. ...Show All

  • Smart Device Development pocket pc and sql server 2000 database

    Hello, I am Zafar from Pakistan.I am developing an application usign vs.net 2003 and vs.net 2005.It is pocket pc application i am doing connectivity with sql server 2000 database.I am doing it with VB.NET.I don't know why it can't work i add refrences sqlclient and sqlserverce and done same which i done with desktop application on desktop app it work but on pocket pc app it throw exception sqlexceptioni also try to done it with throguh webservice but it gives exception invalidcastexception. i don't know what's the problem is kidnly please solve this.i simple match username,password form sql table.My email is zafarpk786@hotmail.com Thanks ...Show All

  • Visual Studio Tools for Office RSS feed in Outlook

    How can I see if a MailItem is a RSS item using the object model // Johan As its name implies, I would expect the NewMailEx event to fire only for new mail. RSS feed items are not mail. You should be able to use the Folder.Items.ItemAdd method to monitor RSS feed folders for new items. What is it that you want to do with these items I don't write C# code, so I can't speak to the best way to check the type and cast. ...Show All

  • Visual C# XML socket problem?

    Hi all, i know flash can create xmlsocket and send message to server. How to create Xml Socket and send Message to server with c#. Below is flash send message codeing. C# can do this Please sombody can give me good solution. //Flash send message codeing var msg_xml = new XML(); msg_xml.nodeName = "message"; var msg_node = msg_xml.createTextNode(input_txt.text); msg_xml.appendChild(msg_node); //send Message _root.socket.send(msg_xml.toString()+"\n"); //================================== Best Regards, Hi SvenC, Q1. Can you see your connect gets accepted in the Java server A1. Yes i sure is connect my server. Q2. Are client and server using the same port A2.  Yes i sure. ...Show All

  • Visual C# Lauch IExplorer

    How would i lauch IE in a button click event....would i need to add any special reference to any libraries, Or would i just use the System.Diagnositc and start a Process and pass it the exe of IExplorer Any one have any links on this or know how to get this accoplished as I said, I am aware of this and many people at Microsoft use the same thing as I have posted. That is just an example given on MSDN. Again if you haven't, try it. I've also provided an example using the ProcessStartInfo and just the Process on its on - same thing, but the added value being with ProcessStartInfo - more flexible ...Show All

  • .NET Development Reading SerialPort (with .Net 2.0)

    Hello, My robot sends me serial messages (packages) starting with a STX (0x02) character and ending with and EOT (0x04) character. Messages may have variable lenghts and within messages (except from first/last character) no other STX (0x02) or EOT (0x04) characters exists. My robot can send multiple messages at any time. How do I configure my SerialPort to extract individual messages from incoming data I was thinking of setting the 'SerialPort.NewLine' character to EOT (0x04) and use the 'SerialPort.ReadLine' for reading complete messages. But how can I make SerialPort execute an event if an EOT (0x04) character is received All tips are welcome. Henk Okay yes, I kn ...Show All

  • Windows Forms Relations.Add

    I have been reading several posts regarding relations.add... I am wondering if it is possible to build relations between two stored procedures as opposed to strickly tables If so what do I need to do to get this done in Visual Basic .net... Steve ...Show All

  • Software Development for Windows Vista CreateFile() on C:\Program Files directory on Vista

    I was using CreateFile() to create a file under some directory in Program Files. I wanted to see the "elevated" security. The result is not what I had expected. This is the piece of code I am using: memset(&security_attributes,0,sizeof(security_attributes)); security_attributes.nLength = sizeof(security_attributes); security_attributes.bInheritHandle = FALSE; handle = CreateFile("c:\\Program Files\\test",GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, &security_attributes, OPEN_ALWAYS, FILE_FLAG_NO_BUFFERING | FILE_FLAG_WRITE_THROUGH, (HANDLE)NULL /*Template File*/); if (handle == INVALID_HANDLE_VALUE) ...Show All

  • Windows Forms How can I drag my form? Can I multiply fractions?

    Hello, I noticed I can make the form border to none and get rid of that boring titlebar. Is there anyway I can make a bar to go on the left side that will drag the whole form when a user clicks it. Also is there a way to multiply, add, subtract, and devide fractions I want to be able to do the code below with fractions and have it come out as result as a fraction(not a decimal): public void myMathProblem() { int one 5; int two 6; int Result; string result; //Is there any way to do this with fractions but not turn them into decimals and have //Result to come out as a fraction anserw Result = one + two; result = Result.ToString(); label1.Text = result; } Thanks Yes, on your f ...Show All

  • Visual Basic Managed memory leak

    I am having a very strange memory leak that seems related to databinding. It is very hard to reproduce, so I won't post any code here to do so, but will just describe the problem. We have data entry forms which have controls which bind to custom business objects through a BindingSource object. On Dispose of the form, we call ClearBindings as described in: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwinforms/html/databinding_winforms10_11.asp#databinding_winforms10_11_topic11 However, our business object stay in memory after the form has been closed. Using a memory profiling tool, I can see that there is a root path to our business object: [Business Object] System.Collections Hashtable.bucket[] System.Collections ...Show All

  • SQL Server Can aggregate functions be used in a check-constraint or a computed-column?

    Hi, Can aggregate functions (e.g. Sum, Avg) be used in a check contraint or in a table's computed column Thanks! Green: I don't think you can use subqueries for either circumstance; therefore, I am not sure that you can apply either one to a table. I think that the best you can do for a function is a scalar function. Can somebody else verify this Dave ...Show All

©2008 Software Development Network