Neotec's Q&A profile
.NET Development error.number is number?
On error resume next If err.number = (-2147467261) or err.number = 0 then open pdf file Response. End () Else response.write "another error" End If everytime it sees the error with that number or equal to 0 it will go open the pdf file. If there is any other error it should print out the else statment. Yet some how thatdoesnt work, if theres error like -2147467261 then it will bring the pdf up. If i take out the or err.number =0 and i got no error it still go in to the if and open the pdf file. And if there's another error it just give me blank page not the response.write "another error" line. Could anyone explain or help me with this. Thanks alot I smell VB6 ...But anyway aft ...Show All
Visual Studio Help: Visual Studio SP1 Installation Disk Space problem
I've got two disks on my 2003 server. The primary disk is a miserly 12 GB, while the secondary is 120GB. I never expected that I'd have to install a patch that was half the size of the disk! THe most I seem to be able to free up on the primary disk is about 4GB, insufficient to allow me to install the VS 2005 SP. Does anyone know if there's a way to install this using the space available on the secondary disk Any insight would be appreciated. -rod You can set the user %TEMP% environment variable to point to a folder on your D:\ drive. You can also try to set the system environment variable %TEMP% to point to a folder on the D-drive. After changing this reboot the computer. ...Show All
SQL Server certain rows to Excel files
Hello, I have a table T1 with ID and Desc fields. I want to export this table to excel files based on the ID field. So my stored procedure select all the same T1.ID and export it to ID.xls files. How can I do this Select Jobs From SQL Server Agent Under Management of the Selected Server(In EnterpriseManager) Select New Job and Name it Select Steps Tab in New Job Properties Click New step and Name Step and Write Query in Command Panel Click New Schedule and Name Schedule and Select Schedule Type Now you Achieve the Required Thing ...Show All
Game Technologies: DirectX, XNA, XACT, etc. General debugging problem in Direct3d
Hello everyone, I am trying to create a general game map editor. Please take a look at the code below. Before going further I would like to fix some severe problems with the program. The problem is that while debugging the program I often (1 out of 3 times approximately) get different errors. For example "Fatal execution error was detected" on OnIbCreate, buffer.setdata, etc. The compiled program doesn't run at all - I get "Send error report" message. Also please have in mind these facts: I program in MS VB 2005 express. I ticked off use application framework and run the form class from sub main(). {chopped large chunk of code} Please take a look at my program and help me solve my problem. {chopped ever larger ...Show All
Visual Basic Unsigned Arithmetic and overflows
I've had this discussion before with unint64s. Setting what would normally be the sign bit causes an overflow. Now I'm seeing this in unint32s. Dim a As UInt32 = System.Drawing.Color.Black.ToArgb will cause and overflow. Dim a as Uint32 = now.ticks and &hFFFFFFFF will cause an overflow depending in the time. This should not be. What it means effectively is the UInt32 is actually UInt31. Yes, Dim a as uint32 = &h8FFFFFFF is not legal to the compiler, but this code is Dim a as uint32 = &h8FFFFFFFUI &h8fffffff is an Integer constant (that is -1879048193) and you cannot assign this value to an UInt32 because UInt32 are supposed to be in the range 0 to 2^32 - 1, and this value is negative. ...Show All
Windows Forms Tree View and Page Load
Hi I have created a navigation menu with tree view which get data from Database. The tree built fine and the navigation url going the right place, but everytime I click on the link the childNodes added to the parentNode disappear. I have to click on the parentNode to see the childNodes again. Is there anyway that it can keep the state as it is so I don't need to click on the parent node to see the childNodes over and over Thank you. ...Show All
Visual J# How do I get the separator + a more general question
I have a textbox in which I enter numbers. I extract the individual strings and I would like to know how I can extract the specific separators. Also a more general question. If the processing of this text data would get more complicated how should I proceed So far as seen in the code example it's no problem doing everything inside the textbox change event function. For the moment the indata is supposed to be integers that are added up. But I would like to extend this so the specific arithmetic operations are performed and also that indata could be both integers and float numbers. What is the way to do it Here is my code example private void textBox1_TextChanged( Object sender, System . EventArgs e) { String str = textBo ...Show All
Visual Studio Express Editions Can't create VB code to test keystroke input with readkey.
In all versions of basic I've used over the years, I've been able to use one of the following statements/functions; inkey$, inkey, key$, key or some such. In assembly I was able to choose from a number of keyboard interrupt functions and cmp the value in ah, al, or ax (dependent on int and func called) to either an integer or "string" value. I've spent hours trying to figure out how to use readkey in a conditional test, looking through the vast amount of help to no avail. So I tried multiple times to search msdn for "keyboard" (for example), but some unknown error is preventing my online search from the text box. Anyway, I was hoping someone might be able to tell me how to get input from the keyboard in such a way to en ...Show All
Windows Forms Big data updates
Hi All, I'm designing this student testing system. Some pages contain say 40 items: Each of which correspond to a combobox where a score of 1-5 may be entered. Each Q also has "question text". My initial plan was to just get all these params (the scores) and concatenate them into a string (the numbers only) and call a stored procedure, which would hold all of the other details in order. This way relies on the order of scores, which is fine by me. Example call (As an SQL command from C# Front, C# omitted): p_insertScoresForATest 1, 4, 3, 5, 2, 4, 3, 5, 4, 3, 2, 4, 5, 3, 2, 3 ...... In p_insertScoresForATest it knows to associate the first param with 'writing skills', the second with 'pencil co-ordination', etc. It ...Show All
Visual C# problem registering windows service
hi, i'm using vs 2005 to develop a windows service, but i have a problem in the registration routine. the program install and uninstall by command line without problems, but i would like to add a command line parameter in the service registration. I'm using the TransactedClass installer to register it and a Installer class to register the assembly but i have problems in the definition of the parameter: 1. if I add the parameter in the assemblyPath parameter, all the row is enclosed in " ( "D:\Sorgenti\Web Specials 2\WsService\bin\Debug\WsService.exe -svc" ), and the command line parser handle all as a single command and don't start the service. 2. in i add other parameters in the command line of the InstallContext clas ...Show All
Visual Studio Team System Report Path!
I'm using Reportviewer control on the web page , in the properties of this control, I need to set the Server Report URL and Report Path... How to find down this info Thanks In Team Foundation: Your report server url will be: http://<Report Server>/reportserver The Report URL will be: /<Your Project Name>/<Report Name> (i.e. /MyProject/Bug Rates) The <Report Server> can be found by right clicking on "Reports" in the "Team Explorer" pane and selecting "Show Report Site...". Also by selecting Team => Show Report Site... (from the main menu bar on VS). ...Show All
Visual Studio Documentation Compiler - Sandcastle
We did code complete of documentation compiler ( code named "Sandcastle") on June 15th and currently we are testing the tool building our .NetFramework documentation. We would like to release the CTP version of Sandcastle in Microsoft download center by next week. The perf in our testing has been great as we are able to build the entire framework content in less than 1 hour. I am in the process of going through final check and code signing required to post this in our download center. Please expect the CTP in the next week or so and I will provide an update here as soon I post the CTP. Anand.. Great, Thanks. Will this handle non-standard tags (exmple: nested tags named: objects, object, parameters) Will sandbox render th ...Show All
SQL Server Importing Access table into SQL Server 2005 Express table and adding one field
Hi all, Hopefully I am posting this question in the correct forum. I am still learning about SQL 2005. Here is my issue. I have an access db that I archive weekly into and SQL server table. I have used the dst wizard to create an import job and initally that worked fine. field I have as the primary key in the access db cannot be the primary key in the sql table since I archive weekly and that primary key field will be imported several time over. I overcame this initally by not having a primary key in the sql table. This table is strictly for reference. However, now I need to setup a unique field for each of the records in the sql table. What I have done so far is create a recordID field in the sql table that is an int and set as yes to ...Show All
Windows Forms Thread Killing (That do some Extensive Work)
Hi, I am intantiating thread that do more extensive work, i.e. executing query on FoxPro 2.6 through ODBCDataAdapter with VisualFoxPro driver. Since the query executing is Complex and navigating through 870000 records and taking a time about 2-2.5 minutes. Once the thread is started and goes for data retrival. Meanwhile if I try to close the form. The thread is still running. I have also added Code for killing thread in Closing event of form using Abort() method. But it does not kill the thread. Instead the threadstatus returned is AbortRequested. Please help me in this regard, as Closing event fire the thread should returned and leave the resources. Thanks MaqboolHussain wrote: In order to understand the whole scenario I'm add ...Show All
Visual Studio Team System Source control options - editing checked in files - options dont work?
I have tried to set the source control options such that when editing a checked in file it is automatically checked but I have had no luck. I was not successful with the other options either such as prompt for check out. When I tried to edit a check in file the editor persisted in putting up the dialog box that asked if I wanted to edit in memory or make the file writable. When I checked the box that made it not come up, adjusting the source control options will no longer bring it up. Am I doing something wrong or is this a bug With enough experimentation I have found that out. In addition it looks like the file in question must also be bound to the source control. And I agree with a previous post I ...Show All
