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

Software Development Network >> 2007CRXI's Q&A profile

2007CRXI

Member List

hariarla
weoili
mojoshaneman
Perry Choy
code jockey
ByteRider
Wendell G
malindor
Jim Cordwell
Shepherd
JohanRex
Kristi Bittner
John128
Mark Flamer
dwatrous
Lino!
dustinto
Randine
Dea Cris
Hila123
Only Title

2007CRXI's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. SpaceWars example, don't understand a scope thing

    Ok, i've been trying to solve this in my own game classes, and I'm wondering how exactly the SpaceWars game does it. for instance, if you look at Font.cs, and go to: public static void Draw( FontStyle fontStyle, int x, int y, string digits, Vector4 color) { float xPosition = x; FontInfo fontInfo = _fontInfo[( int )fontStyle]; for ( int i = 0; i < digits.Length; i++) { //Do't draw anything if its a space character if (digits != ' ' ) { //Look up the character position int character = fontInfo.Characters.IndexOf(digits ); //Draw the correct character at the correct position batch.Draw( SpacewarGame .ContentManager.Load< Texture2D >( SpacewarGame .S ...Show All

  • Visual Basic TcpClient.BeginAcceptTcpClient / Socket.BeginAccept / all other variations...

    I've been having a problem with the use of any of the async methods of TcpClient, Socket, etc eating >95% cpu after receiving the first connection. I've been working on this for over a week now and I'm unable to find references to this issue anywhere. I've tried every way I can think of to work around this problem. Even if no data is sent or received on the connection....or if I close the received connection -- some unknown thread uses all the available cpu power after the first connection occurs. I created a small project that reproduces the problem -- I've zipped it up and posted it here: http://www.profitfuel.net/TcpClientProblem.zip If anyone knows how to fix this, please let me know. Thanks, - Joshua Garvin ...Show All

  • Visual Studio Express Editions Error while generating multiple forms

    Hello again, I am trying to create a simple text editor. In this editor, I have an MDIParent form that I created. In the MDIParent, I want to create a form that has a multiline text box in it. Here is the code that I have created so far: Imports System.windows.Forms Public Class Startpage Private Note As New System.Windows.Forms.TextBox Private Notes As New System.Windows.Forms.Form Private m_NotesNumber As Integer = 0 Private save As New System.Windows.Forms.SaveFileDialog Private Sub NewToolStripMenuItem_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles NewToolStripMenuItem.Click m_NotesNumber += 1 Note.Multiline = True Note.Parent = Notes No ...Show All

  • SQL Server Last GASP on "Insert row in table with Identity field, and get new Identity back " ?

    While I have learned a lot from this thread I am still basically confused about the issues involved. .I wanted to INSERT a record in a parent table, get the Identity back and use it in a child table. Seems simple. To my knowledge, mine would be the only process running that would update these tables. I was told that there is no guarantee, because the OLEDB provider could write the second destination row before the first, that the proper parent-child relationship would be generated as expected. It was recommended that I create my own variable in memory to hold the Identity value and use that in my SSIS package. 1. A simple example SSIS .dts example illustrating the approach of using a variable for identity would be helpful. 2. ...Show All

  • Visual Studio Team System Can't delete folder from the Source Control (get the folder on gray)

    Hi, I get sometimes very weird error when I'm trying to delete some folder from the source control. I get the folder on gray and I can't update the source control window to show me the source control tree without this folder. I tried to do many things to solve this problem - refresh the page, close and open the IDE but nothing really helped, the only thing that really helped me was to sign - in as tfssetup and then to delete again the problematic folder and get entrance again as default user. Just to mention that I am administrator on this machine. Can any one explain why does it happen Thanks in advance, Do you have the "show deleted items" option turned on (Tools -> ...Show All

  • Visual C++ Linking errors building AMCap (sample from DirectShow, SDK )

    Hi! I'm trying to build this application, which should have no problems, but I'm getting linking errors with Visual 2005 Express. These are the errors I get: ------ Build started: Project: AmCap, Configuration: Debug Win32 ------ Linking... amcap.obj : error LNK2019: unresolved external symbol __imp__CoCreateInstance@20 referenced in function "long __cdecl AddFilterByCLSID(struct IGraphBuilder *,struct _GUID const &,struct IBaseFilter * *,wchar_t const *)" ( AddFilterByCLSID@@YAJPAUIGraphBuilder@@ABU_GUID@@PAPAUIBaseFilter@@PB_W@Z) SampleCGB.obj : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20 amcap.obj : error LNK2019: unresolved external symbol __imp__CoTaskMemRealloc@8 referen ...Show All

  • Visual Studio 2008 (Pre-release) UserControls in the same project

    I'm using the RTM of WPF but still don't have a clear understanding of how to access usercontrols withing the same project in Xaml. Is there a way to do this or not I've been getting by with instantiating the controls in code behind, but I noticed that the release note whick explicitly states this is a bug is now gone in RTM. What exactly in the syntax for doing this ! ! No. The tools for Visual Studio are still CTP, even though the framework is RTP. We apparently will not be getting another version of "Cider" for VS 2005 either... it will be for the next version. ...Show All

  • SQL Server error while saving in text datatype

    HI,    I've a table with  5 fields datatype as text. I get error like this when i save huge data (like letter format) String or binary data would be truncated. The statement has been terminated. Is text a better datatype to store huge data. What are the problems i might get with this. is there any other better datatype other than varchar(8000).   thanks venp-- ...Show All

  • Visual C# Generic Multi-Dimensional Arrays Comparison

          Hi,     I need to compare multi-dimensional arrays in a function which takes 2 multi-dim arrays which can be any type(int, double, bool...etc). Comparison is done by Object.Equals() of each value in each index of the arrays. As a result, Generic and  Multi-Dimensional is what I need to combine. Any idea I compare 1 Dimensional-arrays with the below code of mine: public static bool AreArraysEqualByVal<T>( IList <T> src, IList <T> dest) { if (src == null || dest == null ) throw new ArgumentNullException ( "source or destination array is null." ); if (src.Count != dest.Count) { Debug .WriteLine( "Array lengths were not equal." ...Show All

  • Smart Device Development Problem related to StreamReader.GetResponseStream() in compact framework

    Hello Everyone, I am sending a Request to my Server and in return, I get a Conitnous Response which I have to interperate and extract the meaningful data from it. PS::Response I am getting is CONTINOUS. It never stops coming. My code works fine on dot net framwork but it hangsup on Compact Framework. I FIGURED the Where the Problem IS, but before that plz have a look at my code. ...(at the end of code problamatic part is described ) My code look like this. HttpWebRequest request = null ; WebResponse response = null ; request = ( HttpWebRequest ) WebRequest .Create(HTTP + requestURL); response = ( HttpWebResponse )request.GetResponse(); StreamReader reader = new StreamReader (response.GetResp ...Show All

  • Windows Forms need to include .net 2.0 framework with c# applications?

    is this correct Is the package rougly 20 megabytes I wrote a program using c#, but now need to distrbute it over a very bandwidth limited connection (satellite internet). 20 megabytes is way too much, and I can't be sure that the machines this application is going to have the framework installed. Are there any other options to keep the file size down Ideally I need it to be under 5 megabytes if at all possible (application itself is only about 50k) unfortunately not - redirect them to download the .NET framework otherwise you don't need to include the redistributable pack as the setup and deployment project will automatically download the .NET Framework and install it, if the system does not have the f ...Show All

  • Internet Explorer Development Monitoring IE7 from another application

    Hello everyone, Is it possible for an application to monitor all open IE7 windows and capture text from them Maybe via IAccessible I am developing a Vista Sidebar gadget, so I am using JavaScript. I can write a COM if needed. Thanks, Ty Maybe the ShellWindows object could be useful here, check out http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/objects/shellwindows/shellwindows.asp regards, Sharath ...Show All

  • SQL Server Close existing connection before deleting/restore database

    I want to be able to force a restore or a delete on a database even if there still have some active connections. In SQL Server management studio there is a checkbox when you're trying to delete a database to "Close existing connection" i want to do the same thing but using SMO. How can i do this Thank Hi, see my blog entry here: http://sqlserver2005.de/SQLServer2005/MyBlog/tabid/56/EntryID/9/Default.aspx HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • SQL Server Failover not work when Principal server is down

    Hi, Here is my testing environment: Database server: SQL Server 2005 Developer Edition with SP1 Application: An application developed by Visual Studio 2005 using C# (.Net framework 2.0) and ADO .Net 2.0. Principal server: computerA Mirror server: computerB Witness server: computerC Mirroring mode: High availability with auto failover Connection String: Data Source=computerA;Failover Partner=computerB; Initial Catalog=test_mirroring;Persist Security Info=True;User ID=sa; Code used for failover: while (true) { thisDataSet = new DataSet (); try { thisConnection = new SqlConnection (connectionString); thisAdapter = new ...Show All

  • SQL Server Can I install RS2005 in machine with SQL 2000 + Visual Studio 2005?

    Dear All, I am new to Report Server and keen on trying Report Services. My machine is installed with SQL 2000 and Visual Studio 2005. Can I install RS2005 and access SQL 2000 as data source in my machine Must I install SQL 2005 In the production release, do we need install RS2005 in production (Production is installed with SQL 2000) or we just publish developed reports in web server, will be OK Thanks in advance! Haihong Hi, no you actually don’t have to install SQL 2005 to design and deploy reports. You just need to have Visual Studio 2005 or Business Developement Studio installed to do RS2005 reports (with the appropiate client extensions that install with the RS2005 setup, you don’t need to install the server co ...Show All

©2008 Software Development Network