Sam Norris's Q&A profile
Software Development for Windows Vista IndexOutOfRangeException while trying to access a workflow instance
Hi! so I've been working on a WWF workflow for about 2 months and I'm encountering the following problem from time to time with random persisted instances. The thing is that these instances become basically unusable for no obvious reasons (I can create other instances with exactly the same data in their properties without having any problem with them) and this IndexOutOfRangeException gets thrown when I'm calling the GetWorkflow function of the runtime, although sometimes (ie : if I immediatly try again after the failed one) this function works, but I'm then getting the same exception later (ie : when sending an event to the instance). From ...Show All
Visual C++ cannot access private member declared in class where it shouldnt
hey guys, i am having a problems, which i think is a bug. i have a native struct. i wrap it up with a managed class. no problem here so far. code for this section: [source] // native struct #ifndef N3DINIT_DEFINED struct N3DInit{ public: N3DInit() {} bool window; bool lights; int red; int blue; int green; }; #define N3DINIT_DEFINED #endif // managed class wrapper for native struct public ref class DeviceInit { public: N3DInit *init; ...Show All
Smart Device Development Strange problem on Pocket PC using VB.NET 2005
Hi everyone, I'm new to VB.NET 2005 and have stumbled across a very strange problem for which I cannot find a solution for. I am literally pulling my hair out! I'm developing an application for the Pocket PC 2003. I have a form which uses a Port to read incoming data. The data is read at 1 second intervals using a Timer control. The data that is read is then updated in to fields and labels on the form. It all works great until I display a message box or display another form. The form (the that needs to be updated) simply stops updating. I have put a debug into the Timer's "Timer_Tick" event and nothing happens. So eith ...Show All
Visual C# from ConsoleApplication to Form. Need some hints...
I have a question regarding a WindowsApplication. I want to create a Form with one textbox for input and one label for the result. There should also be an OK button. The code is currently written as a ConsoleApplication and it works fine. Now I want to use the same code in my Form, but I'm not sure how to do that. I want to create a class, 'CheckNumber', with a single property, 'number'. This is the ConsoleApplication code: using System; namespace BirthDateAndBirthNumber { public class CheckNumber { public static void Main() ...Show All
Visual Studio Express Editions Using forms in VB Express
How do I move from one form to another. Can I use buttons. I would like to click on a button and go to another form. Scott The easiest method is to create the button and double click on it. Then use the My.Forms.[Form Name].Show() under the Private Sub for the Click Action. When you click your box the new form will open which is what I think you were trying to ask. ...Show All
Visual Studio Team System Instrumentation problems using the IDE for VC++ projects (vs2005 beta2)
I am trying to profile an application that consists of a mix of C# projects and c++ projects (built using /clr). I am specifically trying to see the impact of "thunking" on our application's performance. I have been able to sample short runs of the application, but I am not seeing the kind of information I would like. I was hoping to switch to an instrumentation run. However, if I use "instrumentation" in the wizard (or later select it manually in the performance session), when I go to launch, I get a dialog box with a message "value does not fall within the expected range". After that the launch button no longer appe ...Show All
SQL Server Get Authentication Error in upgrade SQL 2005 named instance to SP1 TCP
I got the following error using either NT or SQL Login ('sa') that are sysadmin in my SQL 2005 instance: Your Account information could not be verified for one or more instances. Ensure that you can connect to all the selected instances using the account information provided. To process further deselect the instances to which connectivity cannot be established. However, I would login to SQL 2005 named instance, either NT or SQL login 'sa' without any problems to do anything I want because both are sysadmin. <PS> Note that my default SQL instance in my local server is SQL 2000 and SQL 2005 named instance. Richard ...Show All
Visual Studio Write to IDE Application Window TitleBar - should be easy, right?
It seems like this should be easy, but I can't even find a way to reference the IDE application window itself, let alone write to it's title bar. I want to write a package that helps me see what branch of code I'm currently working in, where the solution file is the same name in all branches and a part of the sourcesafe solution. Any ideas short of finding the hWnd of the App Window and using P/Invoke (which I don't even know how to do but maybe can say )... I am not sure from a package, but from add-ins you would use DTE.MainWindow.Caption -- Best regards, Carlos J. Quintero MZ-Tools: Productivity add-ins for Visual Studio You can ...Show All
Visual Studio Express Editions Simple Pause
Hi, I'm trying to add pauses into one of my programs. If the pause is in a loop, the system hangs up on it. As a simple example, the following works fine - it waits 4 seconds then puts "5" in the label box: Dim g As Integer = 5 System.Threading.Thread.Sleep(4000) Label1.Text = g The following code, however, doesn't work. It just hangs up and does nothing: Dim g As Integer For g = 1 To 10 System.Threading.Thread.Sleep(4000) Label1.Text = g Next I'm just trying to throw in a pause during each iteration of the For loop. I've tried the things mentioned in the threads "A P ...Show All
Visual FoxPro Http Post
I need to simulate an http post and retrieve the Resulting Html source Code. How can I do this Thanks, Sammy i also tried poster = CreateObject("Microsoft.XMLHTTP") and poster = CreateObject("Msxml2.XMLHTTP") But i get an error on the send if i the post string is not a valid XML file.. My problem is that UPS wants two XML files concatenated into one Post, as you can see in the link CetinBasoz provide. The send method of MSXML2.ServerXMLHTTP issues an error because it’s not a valid XML File. Can i turn off this Validation ...Show All
.NET Development Syntax Error in Update Statement
When I use the data forms wizard and create a form with a master table and a detail table, the wizard generates the form with all of the fields from the master table and a data grid for the detail table, just as it should. But when I go to use the form and make ANY change to the master table, exclusive of the key, and I press the Update button to save the changes the Update routines ALWAYS return a 'Syntax Error in Update Statement' error. Am I doing something wrong Hi, No, you didn't do anything wrong. Its just maybe the wizard produced a bad update statement. To c ...Show All
Windows Forms Comparing Between 2 sounds...
How I can comparing Between 2 sounds... Please It's important Thanks... Hi, Yes i want to detrmine if this 2 sounds are same Thanks fro replay... ...Show All
SQL Server SQL Server 2005 Management Studio can't be found
Sorry if someone already covered this, but I can't find anything about it. I just installed (3 hours ago actually) SQL2005 Standard Edition (from the Launch event) on my machine, and i don't seem to have a shortcut to the SQL Server 2005 Management Studio anywhere. I looked for a likely executable, but couldn't find it anywhere. This wouldn't bother me as much if I could use Enterprise Manager from 2K, but SQL2005 will not allow it to register. How do I get this going There are people here that want to inspect it's features, etc. I haven't got anything to show them. I d ...Show All
Windows Forms capicom error when trying to publish winapp onto local IIS
i have win xp sp2, vs2005 RTM, and i have a simple win form app. it compiles ok, but when trying to publish it into my local IIS i get those errors: 1. Cannot publish because a project failed to build. 1 1 WindowsApplication1 2. SignTool reported an error 'Failed to sign bin\Debug\WindowsApplication1.publish\\setup.exe. SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Please copy the latest version of CAPICOM.dll into the directory that contains SignTool.exe. If CAPICOM.dll exists, you may not have proper permissions to install CAPICOM. i have capicom 2.1.0.1 and i ...Show All
Visual Studio Setup & life cycle
This is going to be a bit longer ;) I see two kinds of DSLs at this point (and all kinds of shades inbetween): 1) A company builds a DSL and sells it. They come up with a new version every two years. Having the new setup project type is great for that scenario 2) DSLs that evolve rapidly with a project (or many projects). I am going to focus on 2. I see this as follows: Someone builds an app. Sees code patterns that could easily be automated with a DSL. Creates a DSL for a very, very small part of the project. Repeat (ie another pattern is found). Repeat. Repeat. Improve the first DSL a little. Repeat. Repeat. Improve another DSL a little, t ...Show All
