PeterBrown's Q&A profile
SQL Server sql database names?
just starting with sql server, thru the sql express edition, before i get to far wondering if it is ok to use the same database names, specifically the ASPNetDB.mdf in different web applications, or will this cause problems down the line, ie will have different web site applications running on IIS and want to use the aspnet_regsl wizard, also wondering if this has any implicaitons when publishing web application to web servers, are any of the local sql express server settings passed on to the web host provider, read about machine.config and if i understand i should put all the settings in the web.config file via the VS20005 ide. als ...Show All
Visual Studio Team System How to use TFS best as a code-reviewer
Hello, we are using Beta 3 Refresh of TFS along with VS2005 and the Team-Explorer. 1) I should be able to do a weekly codereview. Is there a specialized view for this Getting the whole history, opening each history-element, comparing the version with the previous version takes way too long. 2) I am missing an information: We got two branches. We merge from one branch to the other. When I do my review I would like to be able to see, whether this change has been merged into it from the other branch. Any suggestions Thanks a lot. 1) tf diff $/folder/under/review /r /version:D1/10/2006~T will ...Show All
Visual Basic Printing in color
I am using VB2005 Express. My problem is I can't print in color I am Importing Systems.Drawing.Drawing2D and System.Drawing.Printing Public Class Form1 Inherits System.Windows.Forms.Form Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PrintDocument1.Print() End Sub Private Sub PrintDocument1_PrintPage( ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim linesPerPage As Single = 0 Dim yPos As Single = 0 Dim count As Integer = 0 Dim leftMargin As ...Show All
Windows Forms DataForm Wizard
Need to know full details of code generated by DataForm Wizard for Master-Detail forms. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Question on ID3DXEffect::SetArrayRange
Hi, I'm currently adding shader instancing to our engine. After I changed the single world matrix in the effect file to a matrix array, I noticed a heavy performance drop. The fps went down by almost 30%. After some investigation I found that the fps changes with the size of the matrix array, so the effect framework seems to always copy all elements of the array, not only those that were actually set. I then wanted to optimize this using the ID3DXEffect::SetArrayRange method which I guess should then cause the effect to only copy the matrices in the set range. However, I don't see any effect when I use this function. I called it in different ...Show All
.NET Development .NET Framework and Windows User Profiles
Problem: We developed a VB.NET application using Visual Studios 2005 and are using table adapters (via the wizard) to bind the data to the forms. The program is using a hidden textbox field on the form as the key (a SQL identity field) to run stored procedures on an SQL 2000 server. With the issue we are having, the application opens the main form and can access data from the SQL server just fine. However, when trying to run the stored procedure that uses the hidden textbox field, an error occures saying that the hidden field value of "" cannot be converted to a integer. Note: The txthiddentextbox.text is being converted to an i ...Show All
Smart Device Development I want to handle PDA 's panel button action,how to do ?
I know use RegisterHotKey function can set some keyboard button to respone my prgoram keyboard hit . but I don't know what is value of PDA(wince )'s keyboard button (hard keyboard not soft keyboard) . I know system can set them to run specific program by modify registry . can anyone tell me thanks! calvin. RegisterHotKey only works with specific application keys most devices have only 2/4 of these, if you are using a "proper" keyboard then you can capture the key events in your form. Peter ...Show All
SQL Server Help with auto printing reports using Report Services
I'm at a breaking point, so I'm hoping someone can help me! I am new to Microsofts SQL Server suite, and from what I've used so far, I love it... except for the sheer complexity of it. I've only been tinkering for 2 weeks now, so excuse me if I'm a bit ignorant. I'm trying to develop an application, and part of that application is when data is submitted to the database, a report needs to be generated, and automatically printed. I thought that this would be quite easy using SQL 2005, but I've found that isn't the case. Before I continue, let me just say that I NEED the report to automatically print out; I've had a lot of people say to me 'Jus ...Show All
Visual Studio Web Developer Express Supports Visual SourceSafe 2003 and 2005?
Web Developer Express Supports Visual SourceSafe 2003 and 2005 Hi Mike, The documentation is wrong. I suspect the documentation is reused from the VS Professional docs because it talks about menu items that are present in that version. (e.g. File/SourceControl menu, SourceControl tab in File/Open/WebSite dialog,etc) If you'll look in the "%ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\VS SCC" folder for the Express SKUs you'll notice it's empty - the dlls that provide the source control integration don't ship with Express editions of VS. Alin ...Show All
Visual C++ is it x64 (?)
Hi, I have a AMD opteron machine on which i have installed Windows 2003 server. The systems information displays it to be a X86 Based PC!. Also programs compiled on visual studio 2005 Beta2 for x64 fail to run on the same machine. Message from one of my test programs.. "C:\MntFSWin64\Hex_dump2\Hex_dump2\x64\Debug>.\Hex_dump2.exe The image file C:\work\imk\MntFSWin64\Hex_dump2\Hex_dump2\x64\Debug\Hex_dump2.exe is valid, but is for a machine type other than the current machine." The dump of my machine configurartion is " C:\Documents and Settings\khani>systeminfo Host Name: &n ...Show All
Visual Studio ReportViewer Cause error after deploying the webserver
Dear all, When I deploy my web project into my Web server,everything is work,but except the report does not work properly. The config of my webserver is win2003 with IIS 6.0.And I make use of the report in the local processing mode and set "sessions state mode=InProc","cookieless mode=UseCookie"on the page of the state management in IIS. The error message is showed below Server Error in '/' Application. I was using the machine name when accessing the application. My machine name includes an underscore: abc_1234 and that was creating the problem. I tried using the ip address and it works just fine. Ho ...Show All
Visual Basic When is DLL Main executed?
I am trying to load a dll and make it run code as soon as it is loaded without having anything called. Is dll main like a regular main where it starts running as soon as it is launched If not, how can I create that kind of effect When a dll is understood as a class library, there can be a constructor, that is a public routine that is executed when the class is instantiated. So that when you say dim a as New MyDll that constructor is executed. ...Show All
Visual Studio Express Editions install errors
Where does the download put the installation file when downloading vb Express beta 2 Have tried twice to install and keep getting install errors. Tried downloading the vbsetup.exe file again, but figured out it's still looking at the same install file that's already been downloaded previously when I execute it. It all installs OK on the laptop. Also, on the desktop install, I don't get the .NET beta 2 selection to install. Only MSDN lib, SQL express and VB Express beta 2. Hi, Thank you for evaluating our Beta version of Express. With the launch of the release version today, why don't you give http://msdn.micro ...Show All
Visual Studio Express Editions Linker problem with PSDK
Hi All, I am by no means an experienced programmer, but have taken interrest in C++. I have tried to create a program that should remote control two or more other applications. I am trying to use FindWindow() to get me the handles of the desired applications. At first I had some (trivial) problems with the LPCTSTR, since I am not that good with pointers. If someone can find it in their hearts to explain a little pointer practices for me, I would appreciate it. Well I managed to compile without getting any compiler errors, but now I get some linker errors that I do not know how to overcome. RemoteELS.obj: error LNK2028: unresolved toke ...Show All
Visual Basic Addition
Say If = .02 I want it to add to itself for the number in TextBox2. If TextBox2 = 2 then the result would be .04. The mathmatical formula would be something like IfT = If1 + If2 + etc. If textbox2 contains 2, the result would be 2.02. Or do you mean you want to automatically divide by 100 int.TryParse and double.TryParse will convert your text to numbers, or return false if that is not possible with the text in your textboxes. You can also use masked textboxes to control what text is able to be entered, if you're sure the text is fine, convert.ToDouble or Convert.ToInt16 will work for you. ...Show All
