User Profile
Collapse
-
Nope, still doesn't return anything and i stays 0 -
-
OK, I found something that works for writing into the memory:
To use the C/C++ functions I called these parts:
Code:[DllImport("kernel32.dll")] public static extern Int32 CloseHandle(IntPtr hObject); [DllImport("kernel32.dll")] public static extern IntPtr OpenProcess(UInt32 dwDesiredAccess, Int32 bInheritHandle, UInt32 dwProcessId); [DllImport("kernel32.dll")] public static
Leave a comment:
-
Yes, I already thought it would be unsave. Writing directly into a programs memory, but any idea how to do this?Leave a comment:
-
Changing a memory value.
Hi all,
I'm trying to create a trainer for a flash game.
I have an AxShockwaveFlas h component to play the flash game in a windows form.
With an other program (cheat engine) I found the memory place of the money-value in the game.
How can I change this value in C# .NET? When I click a button for example.
Thanks -
It might also be usefull to use the observer design-pattern.
This will help you with a lot of security problems and double-codeLeave a comment:
-
Suggestion: Splitting the .NET forum
Hello,
Wouldn't it be nice if the .NET forum is splitted into 2 items.
.NET contains mainly 2 items:
- Asp .NET webpages
- Windows applications (in C#, ...)
In the .NET forum are a lot of posts of both parts. This is kind of confusion.
If you look at the subject of a post, you don't know if it's ASP or a WinApp.
Though not everybody knows a lot about both parts.
Just a sugg... -
You can always go up to the parent directory like this:
../mainform.aspxLeave a comment:
-
Yes, Savage, you are right.
In the above example, there are 2 2D arrays.
You can also have arrays with 4 or more dimensions. But you better not use them, because it's hard to visualise how they work.
In most cases a 3D array is hard, so you better stick with 1D or 2D arrays.
You can see an array as a list of elements. If you just have 1 element (for example an integer), you can create it as follow:
Code:int
Leave a comment:
-
OMG, Thanks a lot.
I will do as you requested:
Thanks dear!!!!!!!!
You are my godLeave a comment:
-
Get an inner-text from a regular expression
Hello
Is it possible to retrieve then inner-text from a link with regular expressions?
For example, I can retrieve all links with regular expressions. With:
Code:string pattern = @"<a href="".*"">.*</a>"; MatchCollection mc = Regex.Matches(webBrowser1.Document.Body.InnerHtml, pattern); foreach(object obj in mc) { Console.WriteLine(obj.ToString());
-
-
How to get information from an opened webpage
Hello,
I'm making an application which opens a webpage in internet exporer.
I use the following code to do this:
Code:ProcessStartInfo startInfo = new ProcessStartInfo("IExplore.exe"); startInfo.WindowStyle = ProcessWindowStyle.Maximized; startInfo.Arguments = "www.mywebsite.com"; Process.Start(startInfo);
-
Hi,
Thanks for the quick reply.
It did work correctly, I made a mistake in my program.
I did have a problem with the newline '\n', this was just display as the text "\n" and not as a newline.
I solved this by replacing '\n' with {5} and set the sixth parameter as "\n".
ThanksLeave a comment:
-
How to add a stringformat in app.config
Hi,
I want to create a string with string.format, but the format must be editable.
Therefor i want to add the format in app.config and read it from the program and enter the correct values in it.
This is my app.config-file:
Code:<?xml version="1.0" encoding="utf-16" ?> <configuration> <appSettings> <!-- SimpleMailAddin settings -->
No activity results to display
Show More
Leave a comment: