withers's Q&A profile
Software Development for Windows Vista Windows Vista - C++ code to ping doesn't work
Hi All, I am trying to ping a remote machine on my network from my C++ code using the WINAPI. Even though I am able to ping that machine from my command prompt, for some reason it doesn't work from the C++ code. Anybody has any ideas ...Show All
Visual Basic Problem using CInt() with textbox
I have the following code, to calculate, in real time, the sum of tree textboxes. Private Sub TextBox1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged, TextBox2.TextChanged, TextBox3.TextChanged Dim tx1 As Integer tx1 = Me .TextBox1.Text Dim tx2 As Integer tx2 = Me .TextBox2.Text Dim tx3 As Integer tx3 = Me .TextBox3.Text Me .Label1.Text = tx1 + tx2 + tx3 End Sub But I get an error: The conversion of the caracter sequence " to type 'Integer' is not valid. I feel this has to be really simple, but I'm stuck with this problem! Thanks for your attention. Lucas The following s ...Show All
Visual Studio Team System time synchronizing
How can we avoid the time synchronization between clients and domain controller. I joined a computer which is installed with window server 2003 standard edition, to a windows server 2003 domain. When I try to logon from the client machine there comes an error message "the current time on this computer and the current time on the network is different. to logon contact the administrator".I already tried the registry settings by changing the value of: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters NTP to "no sync." please help me to solve this problem Note that most of the time you actually want to keep time sync in place, although you may want to change the TFS server to also join the ...Show All
Visual C# Thread Sleep Functionality without the Sleep
Are there any alternatives that would leave a responsive program that would accomplish a pause of a couple of seconds besides a timer of any kind I want to do something like Thread.Sleep(5000); but that causes an unresponsive program. I want to avoid timers as well. Are there any alternatives at all It's either one or the other. If the thread does sleep then it cannot be responsive. Normally you use timers for that but since you don't want timers the only option left is to create another thread and sleep in that thread. Not sure if this helps but without some more information it's the best you can get. Why do you want to "pause" and what "pause" means anyway ...Show All
Visual Studio Express Editions Random text generator
Hi, I'm very new to VB Express, I'm taking a college class about it. For a project, I would like to display a set of random statements when the user clicks a button, like a fortune cookie program. So when the user clicks btnSaying, I want one of eight statements to display. It is probably far more simple than I think, but for some reason I can't figure out how to set this up. I've read all kinds of different posts about random numbers and letters and arrays and things like that. I think I might just be lost. Please help me. What is the purpose of AND'ing the Now.Ticks with &HFFFFFFF I generally use Environment.TickCount: Dim r As New Random(Environment.TickCount) Cheers ...Show All
Visual C# About returning @@Identity
I have written the following typical code for updating a datatable: private static bool UpdateExtraInfo(int intItemID, DataTable dtExtraInfo, SqlTransaction myTransaction) { // Create a SqlDataAdapter, and dispose of it after we are done SqlDataAdapter dataAdapter = new SqlDataAdapter(); try { &nbs ...Show All
Visual C# Strong name project problem
Hi, I have a smart client application where each project and their references have a strong name because it is reused by an outlook add in. The problem now is that my client side is no longer able to talk to the server, I get the following message: 'Because of security restrictions, the type SSOContext cannot be accessed.' where SSO Context is a serializable class that inherite a class that implements IEditableObject. Any idea what the problem can be Thanks Just in case this problem happens to someone else, the solution is to add this line above the namespace: [assembly: System.Security. AllowPartiallyTrustedCallers ] ...Show All
Visual C++ HOW compiled EXE files works on other PC...
I am using Microsoft Visual Studio 2005 and I do and Windows Aplication. This exe files run on computer, but It does not run other computer.. A really have not found solution 2 days, and I have very big disappoinmet.. Would someone who can do it please me !!! URGENT !! THANKS For 2005 you need the .net 2.0 for managed projects. For native projects which are compiled against static versions of the CRT, (this is the default,) then you need the visual c++ runtime package installed on that system. This is the link to the redistributable for x86, http://www.microsoft.com/downloads/details.aspx FamilyID=32bc1bee-a3f9-4c13-9c99-220b62a191ee&DisplayLang=en you can find the link to the other versions from there. ...Show All
SQL Server 2005 to 2000
I can't restore a 2005 backup to 2000... Do I have to detach/attach or is there some other option THanks Susan hi susan, You can't demote from compatibility level 9 to 8. however if you need to demote a db back to level 8 you can do it with SSIS. any sql statement using yukon functionality has to be rewriten to match sql2k compatibility regards, joey ...Show All
Windows Forms CheckBox in Datagrid
I want to add checkbox in datagrid without binding to column in table. When I check on multiple check box & hit delete button all those row would be deleted. So i am adding column in dataset table after filling by datadapter instead of adding boolean column in database table adapter.SelectCommand = new OleDbCommand("SELECT * FROM Product",m_DBConnection); adapter.Fill(dataset,"Product"); DataColumn col = new DataColumn("Discontinued",System.Type.GetType("System.Boolean")); col.DefaultValue = false ; dataset.Tables[0].Columns.Add(col); Am I following the right procedure to add checkbox on datagrid im not sure about the data ...Show All
Visual Studio Breakpoint will not currently be hit. No symbols loaded for this document.
I have been 'developing' with Visual Studio 2005 for about 3 weeks now - primarily .NET class libraries developed with VB. I am coming from VB6, although I did a lot of development with Visual C++ several years ago, so I am still trying to come to terms with the debugger. I have read many threads posted by people who are having a problem with breakpoints, specifically with the message in the subject line above. There have been many suggestions on how to fix this problem. Sometimes these suggestions work, sometimes they do not. Most of the suggestions involve deleting DLL and PDB files and rebuilding, or restarting Visual Studio. None of them suggest any problem with something the developer has done or any problem with the configuration of ...Show All
Silverlight (formerly WPF/E) how to implement a functionality built in WPF/E on the wpf platform
hi friends I created a WPF/E based application which is executing a function written in javascript but I want to call that function through my wpf application, Can someone guide me how to integrate a wpf and wpf/e based application and implement functionality of wpf/e in wpf. Hi Abhas, You can use the events for a XAML element and then use the syntax: javascript:[functionName] If you go to the WPF/E SDK, there is an example in the "Loaded" event. If this answers your quesiton, please select "Mark as Answer" otherwise, please post a followup question. ...Show All
Smart Device Development Screenshot from Pocket PC Emulator
Hi, It looks like impossible to create a screenshot while the Pocket PC 2003 emulator (shipped with Visual Studio 2005) is running. I've tried making the screenshot by - Printscreen button, - Alt + printscreen button - Shift + printscreen button - TNT software, - SnagIt Software It is unpleasant because I want to take screenshots of my own Pocket PC application. I am using Microsoft Device Emulator version 8.0.50727.42 Can this be fixed Is there any update for this problem Or is it posible to create a screenshot directly from the emulator software Thanks in advance. Marc The Netherlands Just wanted to mention that Finkter's solution worked very well. Now I am able to capture emulator screensh ...Show All
Visual Basic panel.control.add
if i do: panel.control.add(control1) panel.control.add(control2) panel.control.add(control3) ... several times then do: dim ctrl as control for x as integer = panel.control.count-1 to 0 step -1 ctrl = panel.control.item(x) next should things come out in the order they went in eg: panel 1 panel 2 panel 3 panel 1 panel 2 etc... i dont seem to be getting that... Thanks! Dan You'll probably just want to maintain your own list; maybe a class variable ControList As New List(Of String) Then whenever you add a control to the form you also add that control's name to the end of the list. When a control is removed, remove it's name from t ...Show All
Smart Device Development Multi-Dimensional Arrays
