tonhinbm's Q&A profile
.NET Development Asp.net web telnet client problems
I am trying to create a telnet client that will connect to several of my network devices on campus and change settings on the devices. So far I can connect with the code below, but I can't seem to get the correct return data from the device. Sometimes I get about 100 bytes and other times I get 3000 bytes. I even put a thread sleep but that still give me different return data from different devices. I know I am going to have to use an asynccallback but I just don't know how to do that. Any help would be great. I have also tried to use networkstream.dataavailable but this still is sporatic data. <% @ Page Language ="VB" debug ="true" %> <% @ Import Namespace = "System.Web" %> ...Show All
Visual C++ winnt.h(222): Error C2146 ...
All, line 222 in winnt.h reads like this: typedef void * POINTER_64 PVOID64; and creates the error message Error C2146: syntax error: missing ';' before identifier PVOID64. I am trying to throw VC++ 2005 Express on Windows 2000 Pro SP4 at a modifed version of the amcap sample program of DirectShow. This is the version I have downloaded with DirectX 9.0b on 11 Oct. 2004 and have successfully used with VC++ 6 SP5 on the same program. (The DXSDK involved is (one of) the last issue of DirectX that included DirectShow.) I have the platform SDK downloaded, and putting its include directory before or after the baseclasses and DXSDK include directories does not change a ...Show All
Visual Basic Confused with DateTimePicker
I set my DateTimePicker Properties CustomFormat = mm/dd/yy then Format = Custom Why is it that my DateTimePicker.Text is 06/28/07 When i use the Default my DateTimePicker.Text is 02/28/07. Am new to this what's wrong Hi, Try using "MM/dd/yy". "mm" is a two-digit minute. "MM" is a two-digit hour. Here a list of custom format options . ...Show All
SQL Server RS.EXE parameters not working
Hi Everyone, I am having a problem with the RS utility not recognizing my query parameters that I am passing to my timed subscription. I have set up my report with a "WorkOrder" parameter. I have created a trigger that causes my subscription to fire, and that trigger passes in the workorder number to the utility. The subscription fires successfully, but I am getting a blank report. I set the parameter value to "can be blank" so that I could create my subscription w/o an error. I know that my subscription id is correct when I use the fire method, because I DO get the appropriate report. I am also having the same problem when I actually log in to the report server and execute the utility from the command line. I ...Show All
.NET Development Too many arguments specified error in stored proc
I'm getting a 'too many arguments specified' error when I call my stored proc. I've assigned the stored proc to a SqlDataAdapter and a DataSet which is called when the SqlDataAdapter.InsertCommand is called. I've checked the numbers of variables and I can't see where there is a mismatch in the number of arguments being called. I assume that this error has something to do with how I am retrieving the SQL autonumbered identity column (CitationID) with SCOPE_IDENTITY(). If someone could look over my code and let me know what I'm doing wrong, I would greatly appreciate it. Stored Proc: ALTER PROCEDURE tbl_Citations_AddNewRow @CitationType nvarchar (6), @ARTFlag nvarchar (7), @Title nvarchar (1000), @PublicationDate date ...Show All
Software Development for Windows Vista XOML files In WF Visual Designers
Hi, When we create a workflow application that comprises of around 10 XOML files - and each one of them contains around 4 activities - the development environment that meets both s/w and h/w criteria for VS 2005 and latest VS extensions for WF - slows down frustratingly. Any activity (not in WF terms :-) ) such as opening up the XOML files, dragging and dropping an activity into the designer, saving the files is frustratingly slow and CPU utilization shoots upto more than 90% (though the development environment is 1GB RAM with enough hard disk space). Can anybody suggest the reasons and remedies for this problem Thanks, Ganesan Ganesan - I tried to replicate your scneario with around 15 ...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.. Hello Anand., Is there any news on Sandcastle Can we expect the CTP soon I'm really anxious to try it, and from what i can see ...Show All
.NET Development Cross-thread operation not valid: Control 'label1' accessed from a thread other than the thread it was created on.
I found something realted to that on MSDN but it concerns altering the form part... I do not want to do that I want to trigger the event in such a way that the event is marshaled to the correct thread Source: ---Form1.Designer.cs--- namespace WindowsApplication3 { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel. IContainer components = null ; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing"> true if managed resources should be disposed; otherwise, false. </param> protected override void Dispose( bool ...Show All
Visual Studio Express Editions database files
when i have created my database file and i want to add to it , where the user writes in a textbox any additions, do these have to added to the text file before my database can show them to me. or does update add them to the text files automatically. can i say; variable 1 = "fred" variable 2="tom" variable3="harris" datasetname.update(textbox1.text ,textbox2.text,textbox3.text) ...Show All
Visual Studio Team System Publishing Load test results
simple question: when I select the Publish Test Results button in the test results window, I receive a message saying: "The current team project does not a have any build. A build is required in order to publish test results" While I understand the statement, I have no idea what to do. Please advise. thanks okay, now I see. the development team currently doesn't have any build types. I don't undestand how this so because we test new builds everyday. I see that if I check my solution into souce control then it becomes an available solution in the New Build Type dialog. so, if I create a new build type, name it "QA", and only add the solution containing my Load Test, can ...Show All
Visual C++ C2440 with Generic type
I'm extemely puzzled by this compiler error, because I cannot see a rational explaination for why it should occur. public ref class Class1 { }; generic<typename T> where T: Class1, gcnew() public ref class Gen { public: Gen() { } T value(bool condition) { if( condition ) return gcnew T(); else return nullptr; // Error: C2440 } }; public ref class test { public: test() { Gen<Class1^> gen = gcnew Gen<Class1^>(); Class1^ x1 = nullptr; Class1^ x2 = gen->value(false); } }; // C2440: 'return' : cannot convert from 'nullptr' to 'T' Related thread (different generics problem by same person): http://forums.microsoft.com/MSDN/ShowPost.aspx PostID ...Show All
SQL Server inserting data for testing
This is the code I'm using to insert data into a table with data from one table, but changing a single column to prevent duplicates and to increase the number of rows. I know I'm missing something easy, but... what is it thx, Kat code to create the table: CREATE TABLE [OrdDetails] ( [OrderID] [int] NOT NULL , [ProductID] [int] NOT NULL , [UnitPrice] [money] NOT NULL , [Quantity] [smallint] NOT NULL , [Discount] [real] NOT NULL , CONSTRAINT [PK_OrdDetails] PRIMARY KEY CLUSTERED ( [OrderID], [ProductID] ) ON [PRIMARY] ) ON [PRIMARY] GO I inserted all the data from the [Order Details] table, now I'm trying to reinsert the data but changing the PK constraint to prevent error. Seems like this should work. truncate table Ord ...Show All
SQL Server Proc Results to Excel Workbook
Hello, I have tried to use a DaraReader Source to execute a SQL Server 2000 proc, and send the results to an Excel Destination. The proc is named spv_CDGetFuelManDuplicates. Within the proc, temporary tables are created and dropped. When I attempt to set 'Exec dbo . spv_CDGetFuelManDuplicates' for the SqlCommand property of the DataReader, I get an error message indicating that my temporary tables are invalid objects. The DaraReader is using an ADO.NET Connection Manager. Should I be using an Execute SQL Task instead Thank you for your help, the proc code is below. cdun2 ******************************** alter PROCEDURE dbo . spv_CDGetFuelManDuplicates AS --Isolate Accounts and Contact Info per the View ...Show All
Visual Basic software to download for installing web cam
I am trying to install a web cam. However, it was given to me so, I have no disc for the installation. I am not very literate when it comes to the different types of hard or software. (it took three weeks for me to get my printer to work) Anyway, I believe it is an older model, the only thing I see on it is 'CREATIVE' on the front, then CREATIVE LABS INC on the back. I am also having a problem with spywarequake. There is a little blinking icon that turns from a question mark into a red circle with a line through it. It constantly blinks, then I get the 2"x2" pop up on a constant basis. It says to 'click her' for all the software that I will need(it says my computer is in critical condition due to a virus or two. It then instruc ...Show All
Visual Studio Express Editions Bug in Toolstrip menu?
I have a menu driven application. Everything implemented so far works fine both in the IDE and as a published version. I opened the project as I wanted to add one final item to a drop down menu (which I added a previous item to, without a problem, a few hours previously). The new item does not get added to the menu. If I try again or click anywhere other than inside the empty box, the IDE then shows an error stating that VBE must restart. I had made a copy of my project directory earlier in the day, when I was satisfied that everything worked as intended. The same thing happens when I opened this version of the project. I assume that there is not a limit of 5 items in a drop down menu. Anyone experienced a similar problem ...Show All
