Soby's Q&A profile
.NET Development Database Access problems
I am using SQL server to host my database, and accessing it from a C# program, and everything works fine on my computer. Then when I try to publish the program and put it onto another computer I get an error trying to access the database (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server). In the program I access the database through the server, which seems to be the trouble, but I'm not sure how else to access the database, and then how to export my work so that it will work on another computer. Thanks Se this: Enable TCP connections in SQL Server SQL Server 2005 Remote Connectivity Issue TroubleShoot Regards. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. New to game development
Hello I'm new to game development and I already downloaded Visual C# 2005 express edition and XNA Game Studio Express. Well what I'm trying to say is I want to start off with an easy game like pong and work my way up and I havn't had any luck on finding any websites that have tutorials on how to make a game like pong. I would appreciate it if someone could give me a website or a few websites that could get me started. Thanks http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=77027 http://www.gamedev.net/reference/start_here/ http://blogs.msdn.com/danielfe/archive/2006/05/16/599054.aspx - these are GDI games but they will be very easy to convert to XNA and that would be a good learnign excersize. ...Show All
Windows Forms MessageBox doesn't do anything on Application Exit
i'm not sure why this is, maybe some of you guys can help me out. i have an MDI application. i have a MDI child inside the parent. i click the "X" of the MDI window to shut down the application. i have a call to MessageBox.Show in the Dispose(bool) method of the child. nothing shows. i put a break point, and i can actually step through it and it hits the line where i show a message box, but it passes through it and nothing comes up. i need this functionality because when the application closes i need to ask a question for each MDI child. it works fine if i close the child inside the MDI parent. is there some event i can listen to or something like that the ApplicationExit event occurs too late. thanks! ...Show All
SQL Server Conflicting docs on how to render
I am trying to use the render method to render to a byte array in an ASP.Net application and I am having a problem in that there is a lot of conflicting information in the books and the docs on how to do this. The latest docs I read led to the following code... ReportingService2005 _rs = new ReportingService2005(); //have to use custom credentials because ASPNET does not have sufficient authority... NetworkCredential myCred = new NetworkCredential("myuserid", "mypassword", "mydomain"); CredentialCache myCash = new CredentialCache(); myCash.Add(new Uri(" http://localhost/myWebSiteName "), "NTLM", myCred); _rs.Credentials = myCash; _rs.Url = ...Show All
Visual Studio Express Editions Development error on seperate OS
Hi, i installed the .net frame work on my development pc , xp pro and a win 98. I was testing my program and on 98 and xp pro i get an error just when my splash screen has finished loading, but on my development pc it works fine...howcome. I copy the bin folder accross and run the exe on the 98 and xp and it dont work... and on my development pc i do the same and that works. It's a system secuity issue. My program just haults even if i disable JIT... am i gona have to go throught and put on error resume next for the module it says causes the problem Thx Ahh hang on a sec on the win 98 i get a different error See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ...Show All
Visual Studio 2008 (Pre-release) WSE 3.0 versus WCF
i am confused about whether i should be writing our new web services in WCF or WSE 3.0. many of our CLIENT applications still run older operating systems, such as Windows 2000. do my client applications need to be running the .NET 3.0 framework to easily communicate with a WCF web service If so this means it will only run on WinXP SP 2 and Vista right If so, should I be considering WSE 3.0 instead then Or will this be getting phased out Me confused. this post here says clients need xp sp2 or vista http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=224021&SiteID=1 "As far as client-side operating systems goes, WCF requires XPSP2 or Vista." ...Show All
.NET Development Selecting text in word and reading/storing into vb.net
I'm trying to be able to read lines in word document forms. Streamreader can't help due to the fact that it displays the escape box. Decided to use Word commands (added reference for office/word) to try and select the text in the first cell using .selection.endkey (to get everything in the cell). I'm not able to figure out how to get the everything in the cell then store it to a variable. I can however get whatever i have stored onto the clipboard. just missing the one step. any help would be greatly appreciated!!!!!! well i'm trying to automate a process for 11000 word documents (.doc) i want to be able to tab thru the cells in Word and if there is something in the cell, store it, if not then to just move on i know how to do the ...Show All
Visual Studio Team System Why can we not delete objects from schema view?
Hi, What is the rationale for only allowing us to delete objects from Solution Explorer and not from schema view Thanks Jamie I have CTP6 and I can't delete from the solution explorer view either so I have to go to the file system to do deletes... /Per Salmi ...Show All
SQL Server Parent Child Relationship
I created a parent child relationship in SA 2005. It works great, except when adding it to the cube and browsing it. It shows the ID instead of the Name attribute. How do I make it show the name attribute Thanks in advance, Mardo Suppose you have the following columns in your table: ID - Integer. Primary key column of your table ParentID - Integer. The id of the parent object. Name - String. The name of the object identified by ID. Since things already work for you then you already have the key attribute and parent attribute set in your dimension. To resolve your problem select the parent attribute oin Dimension Structure page of the dimension editor and press F4 to activate the property grid displaying the properti ...Show All
Windows Forms HI!!! well is there any way to load a custormise bitmap on a form!!!!!!!!!!how to make its background transparent!!!
hi.. well it is a problem here that i have loaded a bitmap on a form ....now the problem is that my bitmap is a polygon type ....means it has a artistic look...which has not squared cornors....means that how and that cornor are white....and they are also coming on the screen..............now i make u undertand that by a direct x example in direct x we make a image a racing car but the racing car....is a design not a squared image.....so how can i have the left background of image of racing car transparent so that only the racing car comes on the screen not the other left image....... plz tell that u understood my problem,.... Check this thread for a way to use Bitmap.MakeTransparent(). ...Show All
SQL Server sp_executesql, Stored Procedure, UPDATE, parameters
Hi, I'm beating my head against the wall with what I suspect is a rookie error. I'm using SQL 2005 Express Here is my Procedure: set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo] . [usp_Ridercomment_REQ] -- These parameters are coming from Access front end @PID nvarchar ( 150 ), @REQcom nvarchar ( MAX ) AS -- This create table works: CREATE TABLE NewEntry ( oldcomment nvarchar ( MAX ), newcomment nvarchar ( MAX ), providerID int ) -- this also works to populate the NewEntry table: --(of note, there are lots of web site that discuss the difficulty in passing arrays, but this next section seems to work without a problem) declare @NewEntr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Announcing a new XNA community website
Announcing a new XNA community website - www.xnan00b.com So the title says it all; it's about XNA, and it's for the beginner game developer. That is, people just like me who know a little bit about developing with XNA (Ok maybe that's a stretch, perhaps just a "very little bit"), and who want to create our own games. So, I'm hoping XNA n00b will help us along the way of doing just that. By working together in a collaborative environment, sharing ideas, sharing code, and helping each other out. The site is up and running and here are some of the things you can do right now: Us the Forums Read an XNA related aggregated RSS feed Create an Article Upload and Download files using the File Reposit ...Show All
Visual C++ trouble getting started
I have no programming experience and I have just installed microsoft visual studio 2005. I have a book on C++, it a few years old but i thought it would give me a start on learning c++. I want to compile one of the examples out of the book. How do I do that The book is teach yourself C++ by Al Stevens. Can anyone please help me out heres what i typed (copy and paste) // 01.cpp : main project file. #include "stdafx.h" using namespace System; #include <iostream> #include <conio.h> using namespace std; int main( array <System::String ^> ^args) { // Console::WriteLine(L"Hello World"); cout<< "Hello World\n" ; getch() ret ...Show All
SQL Server Basic SSIS Question
Lets say I want to create several flat files - one file for each row returned by a sql query. Source data resides in SQL. In short, my problem is a "reverse" of the many examples out there where data originates from multiple flat files into a SQL database. I want to go from SQL to multiple flat files. I suppose this means I need a dynamic flat file connection string ... but I'm really stuck. Please help. Thanks in advance. Like TGnat says, you'll need to use a Flat File Destination Adapter in concert with a Flat File Connection Manager. There's loads of information out there if you google it! -Jamie ...Show All
Windows Forms Im a trying to build a msi with visual studio pro ->Setup Project -> Custom Actions(SQLEXPRESS.EXE)
Im a trying to build a msi file but have a problem. I use the "setup project" template in visual studio pro to bulid a msi file for my application. I need sql express for my app. So i am trying to build an installation file(msi) with my app and sql Express. When i run the installation file i have created the sql Express run into an error, it says something about another installation is already in progress". Yes my msi file is running in the back ground, wich have started the sql express- installation. Anyone who knows how to get around this I just want to install both these applications at the same time! Regards Marreoragarn It works! SQL Express did not install because I alr ...Show All
