Angry Coder's Q&A profile
Visual C++ ReadProcessMemory crashes computer
I am using CreateProcess, then using the process handle that returns and passing it to ReadProcessMemory. I have about 10 addresses I iterate through using ReadProcessMemory on each of them every 200 ms. Whenever there is a change detected in one of them, it will output the string ReadProcessMemory returns from the target process's memory. When I print this string to the console, my computer will emit an extremely loud system beep and crash, or it will just emit an extremely loud system beep. I haven't tested my program on any other computers yet, but if it is a computer specific-issue, but I'm running the program on a Dell Inspirion 9300 laptop. On a related note, if I'm playing a game or doing something else fairly processor intensive (r ...Show All
Windows Forms ClickOnce file share icon?
This is probably a really basic (maybe stupid) question, but I have done several searches and haven't found an answer Here's one version of the documentation I'm referring to: Install from the Web or a Network Share Using this strategy, your application is deployed to a Web server or a network file share. When an end user wants to install the application, he or she clicks an icon on a Web page or double-clicks an icon on the file share. The application is then downloaded, installed, and started on the end user's computer. Items are added to the Start menu and the Add/Remove Programs group in the Control Panel . Where is the icon they are referring to in the statement: double-clicks an icon on the file share When I pub ...Show All
Game Technologies: DirectX, XNA, XACT, etc. first impressions
Install seemed to work ok. - I chose complete when it finished it didn't launch either a readme or vs launched vs just got the same/normal ide I always get. File -> New project, brings up the usual screen, with 3 new items for creating xna games. Double clicking on space wars starter kit item, eventually brings up a large project, which when run doesn't appear to work - tried pressing a/b/x nothing ever happens - machine/grphx may not be upto job. tried looking for examples, nothing I assume ther're on my hard disk somewhere Now need to find tutorial on how to use this thing When you say "tried pressing a/b/x " do you mean on your keyboard If so, try hooking up a 360 ...Show All
Software Development for Windows Vista windows vista - users
i would like to give more permissions to my standard user. is it possible to create a user that have some of admin rights in windows vista thanks What you want to do it to figure out why your program requires administrator rights. Here's a link to the Microsoft Standard User Analyzer The Standard User Analyzer helps developers and IT professionals diagnose issues that would prevent a program from running properly without administrator privileges. On Windows Vista, even administrators run most programs with standard user privileges by default, so it is important to ensure that your application does not have administrator access as a dependency. http://www.microsoft.com/downloads/det ...Show All
Visual C# implementing the Equals method with and w/o override
Hi, I'm using .NET 2003 with .NET Framework 1.1. I have a somewhat stupid question: I created a new class (MyClass) that represent some value and implemented the Equals method the following way: public bool Equals(Object obj) { // code here... } And if I try this code I get 'True' (since they hold the same value) MyClass c1 = new MyClass(<<some value >>); MyClass c2 = new MyClass(<<same value as above>>); Console.WriteLine(c1.Equals(c2)); BUT (!) if I insert c1 into an ArrayList and check: int index = myArrayList.IndexOf(c2); I get -1 on the index variable (c2 was not found). Now, if I add override to the Equals implementation signature: public ...Show All
Visual Studio Team System Why checkout prompt when switching sln from Debug to Release config?
Whenever I switch my solution from the Debug config to Release (or vice versa) I get prompted to checkout the .vsmdi file. I say cancel and keep on working. But then if I open the TestView window to run the unit tests it gets stuck with the message 'Loading'. I then have to unload and reload the solution. Is this expected behaviour or am I doing something wrong There is already a bug tracking the unnecessary check out of the .vsmdi file. Apparently it has been brought up by the user community a number of times: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=459735&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=524667&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=706061&SiteID=1 ...Show All
Windows Live Developer Forums How to use the adCenter API from a JAVA application?
Hi, Does someone use the adcenter API from a JAVA application I am stuck at the first step - connection to the API - since I have no class named Administration after generating the JAVA classes from the WSDL files (using the Axis2 WSDL2Java plugin for eclipse)! I only have a AdmimistrationStub class which does not contain a method to set a ApiUserAuthHeader for instance... Any help is welcome! Thanks. Hello Ludo-R, Here are the XML messages exchanged by my application: Request message: < xml version="1.0" encoding="UTF-8" > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmln ...Show All
SharePoint Products and Technologies Search Pages and Results Pages
Hi everybody, i want to creat my own search settings to search for example documents by project. Project is a column of my content type 'Project Document'. Can i do this with create search and results pages How can i do it Have you sources or links where i can find information about thirs customization. Thanks :) take a look at the Plan Search section of the Planning and Architecture guide at http://technet2.microsoft.com/Office/en-us/library/b28ba53d-a3e8-440f-9fcb-f592d858894a1033.mspx mfr=true it will get you started. ...Show All
Software Development for Windows Vista Creating workflows (use of the SqlPersistenceService)
Hi, I have implemented a WorkflowService (using WCF) that is managing the communication with my WorkflowRuntime. Furthermore I'm using the SqlPersistenceService. There's following scenario: 1) start the workflow service (that means also configuring and starting my WorkflowRuntime object) 2) try to create a workflow instance with a given instance id (not yet existent) -> ok 3) try to create a workflow instance with the same instance id -> System.InvalidOperationException 4) shut down the workflow service 5) restart the workflow service (using the same configuration for the WorkflowRuntime object) 6) try to create a workflow instance with the already existing instance id -> no Exception is thrown - the instance is cre ...Show All
SQL Server which user has which role
Hi there. I'm quite new to MS SQL Server. In my application, I sometimes need to perform an action. During this action, all processes, that aren't created by sysadmin, db_owner or db_creator, should be terminated. Iv'e written a stored procedure, which removes all the running processes from the db. Now I need to adapt this procedure. My problem is, I don't know, how I get the Role of the processes user. I'm a little confused and don't know exactly, how the different system tables are related to each other. Perhaps someone can give me a clue, how to get the role. At least I got so far, that I can get the login name of the creator. But now I'm stuck. Thanx for help The following query will help ...Show All
Visual Studio Express Editions Error while generating multiple forms
Hello again, I am trying to create a simple text editor. In this editor, I have an MDIParent form that I created. In the MDIParent, I want to create a form that has a multiline text box in it. Here is the code that I have created so far: Imports System.windows.Forms Public Class Startpage Private Note As New System.Windows.Forms.TextBox Private Notes As New System.Windows.Forms.Form Private m_NotesNumber As Integer = 0 Private save As New System.Windows.Forms.SaveFileDialog Private Sub NewToolStripMenuItem_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles NewToolStripMenuItem.Click m_NotesNumber += 1 Note.Multiline = True Note.Parent = Notes No ...Show All
Visual Studio 2008 (Pre-release) Error in documentation with @ServiceHost
<%@ServiceHost language=c# Debug="true" Service="Microsoft.ServiceModel.Samples.CalculatorService"> This is WRONG, you must leave out the quotes around the Service type or you will get a confusing error telling you it cannot instantiate the type. This is because it is literally using the "s included in the line. Correct: <%@ServiceHost language=c# Debug="true" Service=Microsoft.ServiceModel.Samples.CalculatorService> ...Show All
Visual Studio Express Editions syntax code
to those of you who are familiar with the coding, could you write a simple code example so we can understand,give us simple syntax examples please of; deleete command accept changes command that way those of us who are beginners can read the syntax and get a better view of how it works. indeed but it has been explained on what things are doing at the time and how to fix it. It's hard to just explain where the problem is if you have any errors and not explaining in depth on what code you have, where the errors are coming from etc... What exactly, in this case, do you need help with I understand for this thread you are wanting to know how to use a Delete command correct I have supplied cod ...Show All
SQL Server SSIS Access import to SQL Server 2005
Hi, I have created a SSIS dtsx package file on my file system that I want to manipulate in .NET The package gets an access DB file and the a Preparation SQL Task creates the necessary sql statements for the data flow task. The data flow maps the tables from the source to the destination and then if you execute the package, it copies the Access DB into SQL Server. My problem is, I want to manipulate this package in code, so that I can change the path to the source Access DB and then re execute the Preparation SQL Task so it recreates the new SQL statements, and then I want to update the data flow so that I it uses the new SQL and creates the necessary tables. How is this possible in .NET I have looked everywhere and have found some topics ...Show All
SQL Server <Error> The process could not be created for step 1 of job *** (reason: A required privilege is not held by the client)
We are deploying SQL 2005 SSIS packages into production, they work well when run manually. But getting this error when running from SQL agent jobs using a proxy, the proxy account is using SSIS account user(not sysadmin) as the principle. Executed as user: ***. The process could not be created for step 1 of job 0xC92B73399BDE6544B741931C36B0C80D (reason: A required privilege is not held by the client). The step failed. We are aware of this is relevant to account users and privilidges, but couldn't figure out what is exactly wrong. Some suggestion will be appreciated ^_^ Steve I finally did get this to work. The problem I had was that the failing package contained sensitive informati ...Show All
