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

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

Warren13

Member List

nishanttheone
Julien Couvreur
Barrymoh
anjulis
Crazy Engineer Kid
Floppy_pillow
mr hankey
Rajneesh Noonia
airwalker2000
Darkphibre
AlexBB
fleo
sascue
mintcoder
NJITDPM
AbhijeetG
Diegota
Todd Biggs - Windows Live
Morn
TA123
Only Title

Warren13's Q&A profile

  • Visual C# How to design these classes?

    Hello all I currently have quite a large project that contains several classes that relate to various objects in a database. For example, the Orders class contains methods that have anything to do with orders. At the moment I think I've designed it in a very simple way, for example: public class Orders { public Orders() { } public int CreateOrder(int storeId) { // Code to create an order and return the ID. } public OleDbDataReader GetOrder(int orderId) { // Code to return the order record. } } Basically, to use any of the methods, I first create an instance of the Orders class, but this doesn't seem like a very good way of doing things. Would it be better to have static methods for things like CreateOrder() and non- ...Show All

  • Visual Basic Grabbing file name and path of open files

    Is there a way to write a list of all paths and file names of currently open files. The best I can do is use the System.Diagnostics.Process class to grab the processes of the applications in which I am interested and then get the file name from the main window title for each process. There is no way to get the path for these files, however, with this approach. Thanks for the help!! Process . MainModule . FileName ()'returns full path and name of main module in the process...usually the executable... Process . StartInfo . FileName () Process . StartInfo . WorkingDirectory () ...Show All

  • Visual Basic Sub Main

    How can I collect data from the registry before showing the main form. The best way to do this in a WinForms app is to use the Application Events. To set this up, bring up the "My Project" screen and from the Application tab click on the View Application Events button. Then add code for the Startup event. Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup End Sub Put your code in this routine and when it completes your startup form will be shown. If there is a problem, you can use e.Cancel to end the program. You can also show other forms if you want. For example, one of my applications will show a config wizard form fir ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Texture creation fails on XBox 360

    Can someone tell me why the following piece of code won't work on the XBox 360 I don't have an XBox 360 myself (and it will be at least 6 more months before I plan to afford one), so I can't test this at home. If anyone could tell me what's needed to make this snippet working, I'd be very happy :) // Look up the maximum texture size supported by the device Point textureResolution = new Point ( graphicsDevice.GraphicsDeviceCapabilities.MaxTextureWidth, graphicsDevice.GraphicsDeviceCapabilities.MaxTextureHeight ); // No larger than 1024 to avoid becoming a memory hog on systems // supporting insanely large textures :) textureResolution.X = Math .Min(textureResolution.X, 1024); textureResolution.Y = Math .Min(textureResolution.Y, 102 ...Show All

  • SQL Server Error returning OLAP data in RS 2005

    I have a .rdl file that was exported out of ProClarity's Desktop Professional 6.1 using their RS plug-in. I uploaded the file into Report Manager and when I execute it, I get the following error: An error has occurred during report processing. Query execution failed for data set 'Three_Month_Funding_Trend'. Unable to recognize the requested property ID 'ReturnCellProperties'. Does anyone have any idea what this is referring to Does it have something to do with my configuration, connection or the report definition Other reports such as DBMS based reports work fine. Thanks for your assistance It doesn't end here. SSRS 2005 support to AS 2000 varies based on AS 2000 hosting platform. ...Show All

  • Visual Studio 2008 (Pre-release) Non-display of null element

    I’m using functional composistion to make a node for each row in a database. I want to have no middle name element if it is null in the database- like the last example here. How do I do this Paul V. Sullivan XDocument doc = new XDocument ( new XElement ( "LegalNames" , new XElement ( "First" , row.First_Name), new XElement ( "Middle" , row.Middle_Name), new XElement ( "Last" , row.Last_Name))); <LegalNames> <First>Bob</First> <Middle>Gill</Middle> <Last>Jones</last> <\LegalNames> ***Null Middle_Name** ...Show All

  • Visual Studio Team System TF53010 error after SP1 install

    I installed this first http://www.microsoft.com/downloads/details.aspx FamilyID=c18c756e-8f80-4987-b3bf-600068a9e3c4&DisplayLang=en then installed this http://www.microsoft.com/downloads/details.aspx familyid=A9AB638C-04D2-4AEE-8AE8-9F00DD454AB8&displaylang=en everything installed ok. Reboot. Went into VS2005 and get several 503: TF53010 Service Unavailable errors. The event log is shown below. I read one post but all the TFS databases are in multi user mode and there arent any IP restrictions in IIS. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1026766&SiteID=1 I can access work items, documents, run reports but cant access source control - help! ! ! TF53010: An unexpected condition has occurred in a Team Foundatio ...Show All

  • SQL Server Connecting to SQL Server 2005 from Classic ASP

    I am trying to return multiple recordsets to a classic ASP web page from SQL Server 2005 and then use GetRows() in ASP to fill 2 arrays with the data. I'm using a command object to run a stored procedure which performs 2 simple selects in SQL Server. The stored procedure works fine in SQL Server Management Studio so I'm guessing it's an ADO issue. The ASP code looks like this: strConnect = "DRIVER={SQL Native Client};SERVER=MyServer.IsAtMyIsp.com;DATABASE=MyDb;UID=Me;PWD=MyPwd; MARS Connection=True;" Set conn = Server.CreateObject("ADODB.Connection") conn.ConnectionString = strConnect conn.Open Set objCommand = Server.CreateObject("ADODB.Command") Set objRecordset = Server.CreateObject(" ...Show All

  • .NET Development Global Caching

    I've a windows application which connect to SQL server every second and gets data. Many user uses this application and it put lots of stress on the SQL server. So I would like to use Caching for this. What I like to do is, run an application which connect to SQL server, fills a dataset and caching it, another application that all other users use and get the data from the cache already created by the other appln and not from SQL server. Is it possible with Visual Studio 2005. Please let me know how with example Thanks, Antony Yes you can, I've done this with a windows app recently. My win app connects to a service that runs on the application server. The service contains my DAL code and handles al ...Show All

  • Architecture design pattern question - proxy

    Hello, I'm implementing a software module and hesitating about the appropriate design. The client needs to perform operations for an componenet which is divided to few parts in the memory. However the client treats the componenet as one contiguous. My design includes a "Manager" which has an interface for the client and handles all operations for this components. The "Manager" knows when it is asked to read/write the appropriate part of the memory. It hides the fact that the component is divided to few parts in the memory space. I wonder if this is called a proxy, facade or a bridge Or maybe other pattern I think it is a proxy but not sure since there few real objects (i.e. subjects) and not only one. In cas ...Show All

  • Windows Live Developer Forums VE Map object as a user control

    Hi, I had created the VE Map object as a user control and had 2 instances running in the same page, the pushpins i created i had done it with unique ids ( var pin = new VEPushpin('<%=myMap.ClientID %>' + k, new VELatLong(lat, lng),imgPath,'', ((html))); ) still when i do the mouse hover on 1 map object both the objects refresh has anyone encountered this problem is there a fix ram Ram, Here is what I suspect: When you reload the VE map, you are dynamically creating VE by parsing your xml locations into HTML. This causes a page refresh which causes the other VE map to reload itself and in turn dynamically populates its own pushpins. Then in turn, the second VE map causes a page refresh wh ...Show All

  • Windows Search Technologies Windows Desktop (Searching...) - but no results?

    Hi, I posted a thread re: issues I've been experiencing with 2.6.5 of WDS in the help forum but just upgraded to 3.0 beta 2 and am experiencing similar issues. I try to input searches in the search box but get a blank pop up stating simply "Windows Desktop (Searching...)" - and no results displayed. The WDS Search options box displays indexing as complete. Am using Windows XP with the latest service packs. Let me know if I need to provide more information. Thanks, Jack http://support.microsoft.com/kb/309173 No results for certain file types when searching for contents. Windows broken.. You are not crazy or at least this is not evidence of it. ...Show All

  • Visual C++ Translating TCHAR to String

    Hi,   I'm trying to get directory/path from where application is currently running.  I'm using following code: TCHAR DirBuffer[50]; DWORD dwret; dwret = GetCurrentDirectory(50,DirBuffer);   BTW, I'm getting "GetCurrentDirectory" from "System::IO" namespace.  I tried in debug mode and could verify that the function was functionning properly and is giving expected result. My problem here is that I don't know how to convert the DirBuffer variable which is a TChar into a String variable.  Any clue Thanks in advance, Stephane   Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=514738&SiteID=1 Hope this helps! Thanks, A ...Show All

  • Windows Forms How to add 'X' to Tabs?

    Hi, I have a tab-page control and I will be adding many tabs.So when I select a new tab, I want to see 'X' mark(button) similar to Internet Explorer 7.0 and Mozilla. Thanks, nhd But if i do OwnerDraw, the visual property of the tab control changes. I want to have the close button placed just after the tab page name as in Internet Explorer 7.0. Can it be done with same look and feel as in IE 7.0 using .Net 2.0 any help is appreciated. Thanks, nhd ...Show All

  • Visual Studio 2008 (Pre-release) The maximum string content length quota (8192) has been exceeded while reading XML data.

    I'm getting this message when invoke an operation on the service. I have the readerQuotas configured in the client's config file as follows: < readerQuotas maxDepth = " 32 " maxStringContentLength = " 2048000 " maxArrayLength = " 16384 " maxBytesPerRead = " 4096 " maxNameTableCharCount = " 16384 " /> I still get the error. Any help will be appreciated, Thanks, I did the following changes on the server (host) side and it wroked: <binding name="myBinding" maxReceivedMessageSize="2147483647"> <readerQuotas maxDepth="2147483647" maxStringContent ...Show All

©2008 Software Development Network