hye_heena's Q&A profile
Windows Forms ClickOnce Error Message
Hi, I'm getting the following error message & detailed report: 'Cannot download the application. The application is missing required files. Contact application venfor for assistance.' PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : file://(PATH)/SerialSNMPWinApp.application Deployment Provider url : file://(PATH)/SerialSNMPWinApp/bin/Release/SerialSNMPWinApp.application ERROR SUMMARY Below is a summary of the errors, detai ...Show All
Visual C++ Getting the address of a reference.
Since a reference is a special kind of objects which holds the address of another object and often is not ever allocated, we cannot get the address of a reference using "&" operator. I think there is a situation when we really need the address of the location which is used as a reference. For example, let us try to implement an old-fashioned function having a variable number of arguments, like this: void MyPrintf(const std::string & format, ...) The implementation of such function will use the well-known va_start macro: void MyPrintf(const std::string & format, ...) { va_list argptr; va_start(argptr, format); // incorrect initialization of argptr ...Show All
Visual Basic Best method to restrict input
I need to restrict the input in a text box to '0 to 9' max 10 digits or 'NA' max 2 char. allowing for the backspace. Can anyone suggest the best method. If regex is suggested I would need the formula. You can validate input in validating event with regex: Regex.IsMatch( <string> , "^\d{0,10}$" ) 'this match a string with 0-10 digits Regex.IsMatch( <string> , ^[a-zA-z]{0,2}$" ) 'this match a string with 0-2 chars beetween a and z case insensitive... ...Show All
Visual FoxPro Sys(2600) and Apps
Sys(2600) is the way to send or retrieve a String from a memory Address. Passing the memory address to another application as a parameter, can we retrieve the string in memory sended by the first application I try it, but it doesn't work, I think the GlobalAlloc() doesn't work any more as Global but as Local - according to MS info) Does anyone know how to do it DaCosta11 It is working if you put: _Cliptext = Sys (2600, hMem, lnSize, lcString) and on the "other" fox: _Cliptext ...Show All
Visual Studio Team System Can a Work Item Type be disabled?
I have a situation where work items were migrated from ClearQuest as a "Defect" work item type. I need to prevent new "defects" from being created since we are using the default work items (task, bug, etc) going forward, but I still need to see the old defects for historical purposes. Is there a way to remove the ability to create work items of a specifict type So when I right-click on "work items", and select "Add Work Item", it doesn't show up on the list One option is tweaking the Defect work item type such a way that the user shall not be able to save new work items. Have a new custom field and make it required. Don;t add it to the form. Hence users will not ge ...Show All
Windows Forms Modal Dialog Box focus problems and Painting Problems
I have written a Windows Forms application using C++ (.NET 2.0). I have encountered two problems I believe are related. The first occurs sometimes when I open a modal "dialog box", in the form of a MessageBox.Show, FileDialog or custom form using ShowDialog. The dialog box does not appear on top of my application, it is hidden and thus gives the illusion that my application has frozen (The Z-Order is not first). The second is that after displaying these dialog boxes (When they do show up on top), the controls under them do not repaint themselves, leaving "ghost" images of the dialog box that was just closed. I have found several threads on this forums posted by others who have encountered the same, or similar, problems, ...Show All
Visual Studio Team System Already exisiting object
If you drop an object from your project, e.g. a table, then import it as from a script, you won’t be able to build the database, because the project is mourning that the "Obejct already exists in the database" not matter what settings your use in the Build pane in the properties dialog. -Jens. --- http://www.slqserver2005.de --- Unfortunately it does not. -Jens --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Warning and Error text missing from VS Output window
I have a class that inherits from Task. Through this class's Log property I log errors, warnings, and messages. The Warning or Error text shows up in the msbuild output and in the Visual Studio Error List. However the warning or error text does not show up in the VS Output window. Text for Messages (any importance) show up in the Output window but not the VS Error List. How can I get warning and error messages to show in the Output window (and possibly messages in the VS Error List) Here is an example of my output: Visual Studio Output window: c:\somefile.txt (2,3)Error AB5901: msbuild output: c:\somefile.txt (2, 3): My Company Subsystem error AB5901: An error has occurred. See event log. I am calling the TaskLoggingHel ...Show All
Visual Studio Express Editions Prepared statement x Expects A Parameter which was not Supplied
I am trying to write into an SQL Database, using Visual Basic .Net 2005 and I keep getting this error:Prepared statement '(@RISK_ID nvarchar(4),@CONTROL_ID nvarchar(6),@UNIT_ID nvarchar(' expects parameter @UNIT_ID, which was not supplied.I have seached high and low on the internet in order to find a resolution but without success. Can anyone help me please Attached is my code below: CommandObj.CommandText = "INSERT INTO RB_RISKTRANSACTIONS" & _ "(RISK_ID,CONTROL_ID,UNIT_ID,CONTROL_ADEQUACY,RISK_LIKELYHOOD) VALUES (@RISK_ID,@CONTROL_ID,@UNIT_ID,@CONTROL_ADEQUACY,@RISK_LIKELYHOOD)" CommandObj.Parameters("@RISK_ID").Value = oRiskItem.RiskID CommandObj.Parameters.AddWithValue("@RISK_ID", o ...Show All
SQL Server Indexing Question
I am somewhat new to SQL and have an indexing question I have a table that consists of 60 columns of mostly numeric data. Included in the table are fields called Customerid, CustDate and CustTime. Every hour data is posted to the table with the current time and date as well as customerID. The table is about 6 million rows. I have a query that reads: SELECT CustomerID, custdate + custtime as date FROM Mytable WHERE CustID = 905 and (date between ‘1/1/7’ and ‘1/17/7). The query works but it takes longer than I would like so I am wondering if it’s an indexing issue. Currently my table is indexed as CustomerID + CustDate + CustTime. None of the fields are unique, but the combination of the 3 i ...Show All
SQL Server reporting services connection error
I think i've tried everything. I have sql server installed on my machine and vs.net as well. I have the report server on another machine. I've made reports in vs.net and deployed them and they show up in the report manager but when i go to view i get the error: An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'SANDO'. (rsErrorOpeningConnection) SQL Server does not exist or access denied. what sort of connection type should i use and can someone tel lme the steps to get this to work right any help would be appreciated thanks so much On the report page (where you see the error), there should be a ""Properties" tab. Click that and a ...Show All
.NET Development How do validate my the size of a file on the client.
I am using a FileUpload server control to upload a file to the server. I want to know how I would use java script to validate the size of the file on the client. hi! i have the same problem, i using ASP.net, i think this code helpful for you function A() { var oas = new ActiveXObject("Scripting.FileSystemObject"); var d = document.getElementById('<%= fileUpLoad.ClientID %>').value; var e = oas.GetFile(d); var f = e.size; alert(f + " bytes"); } <asp:FileUpload ID="fileUpload" runat="server"/> <asp:button Id="btn" runat="server" OnClientClick="A();" /> i tested it, but it work properly without masterpage ...Show All
Visual Studio Express Editions OutOfMemory Exception Error
I'm working on a rather complicated program using signature tablets. Someone signs the tablet, displaying their signature on screen. That signature is then broken down into a unicode byte string to be saved into a database. So far, so good. When I open a second form, designed to display entries from the database, it gets as far as the code below and give me an error message saying 'OutOfMemory Exception is unhandled'. This is the code designed to retrieve the unicode string from the database and turn it back into a signature. Dim ImgData As String ImgData = RegisterdbDataSet.Time_In_Table.NewTime_In_TableRow.Signature_Data() Dim bytes As Byte () = System.Text.Encoding.Unicode.GetBytes(ImgData) FileOpen(1, Envir ...Show All
Visual Studio Express Editions call javascript function aspbutton onclick event
Button3.Attributes.Add( "onclick" , "return function_name();" ); this statement call javascript function but first click the button3 the function can't work. second and another click the button3 the function work. How am i learn this problem answer. thanks. the best place to ask any ASP.NET/VWD questions should be posted in the ASP.NET forums: http://forums.asp.net thanks :-) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. NoSuitableGraphicsDeviceException was unhandled
Let me just say at the outset that I know nothing about C# (yet) and am trialing the XNA beta to try and get into it. I do know VB and some C, however. Once I had everything installed, I tried a few example programs including the Spacewar project, but I cannot run any of them. They build fine, but I can't run the .exe, and it crashes and asks if I want to send a report to MS. If I "Start Debugging" instead, I get the error "NoSuitableGraphicsDeviceException was unhandled" on the "this.GameComponents.Add(this.graphics);" line. I have no idea where to even start. Is it my install My PC My hardware The program I'm trying to run Once I know the environment is actually working, I can begin the learning! ...Show All
