- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 6
- Upvoting Members
- 7
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
25 Posted Topics
Re: Good viruses usually start by placing themself on the startup (by creating a registry value) and after that they begin to modify / infect **system files** to make sure they're harder to remove: some of them try to write their own driver, register themself as legitimate dlls for different processes … | |
Re: Managed to produce something like this: <html> <head> <title>Sample</title> </head> <body> <div> <h2 class="chapternumber">1</h2> <p class="epigraph">Regarding the Great Depression. Milton Friedman, November 8, 2002</p> <p class="indent">'Cutler' plunged to his death �nddy</p> <p class="indent">"Mr. Cutler" was reported it.</p> </div> </body> </html> using the following code: string initContent = File.ReadAllText("test.txt"); int contentLength … | |
Re: Use `ShowWindow` in combination with `SW_HIDE` on the current window - it will hide the console. #include<windows.h> int main() { HWND hwnd = GetForegroundWindow(); ShowWindow(hwnd, SW_HIDE); while(1) { // look for keys ? } return 0; } However this is not the best way to make a keylogger 1) it … | |
Re: Input: `Figure 1 Figure 2 Figure 3 Figure 13 Figure 35 Figure 1243` Output: <a href="#fig1">Figure 1 </a> <a href="#fig2">Figure 2 </a> <a href="#fig3">Figure 3 </a> <a href="#fig13">Figure 13 </a> <a href="#fig35">Figure 35 </a> <a href="#fig1243">Figure 1243</a> Using this code: (the regex expression might require some tweaking...still learning it...) string … | |
Re: Why not using directly sessions ? On submit, save each value of the inputs in a different session. If a field is empty, we can redirect the user to the form - but this time we can auto-complete the other inputs using the data provided last time (which was stored … ![]() | |
Re: I guess you're talking about Syntax Highlighting. You need to select that part of text by using **SelectionStart** & **SelectionLength** (from RichTextBox) and then, change it's color with **SelectionColor**. As an example, this code makes the first 10 characters blue: richTextBox1.SelectionStart = 0; richTextBox1.SelectionLength = 10; richTextBox1.SelectionColor = Color.Blue; | |
Re: You can try to make each client send a message to the server every 5 seconds. If no message was received from a client for about 7 seconds, the client is most probably offline. These numbers can vary, but there must be a permanent communication between clients and server. Assuming … | |
![]() | Re: It's a false positive - both Dev-C++ and Dev-Pascal produce these kind of "viruses" when working with pointers. Probably the executable generated by the compiler is using some "suspicious" method in order to access the memory (a part of the machine code produced by the compiler is probably looking like … ![]() |
Re: `int position` is probably reaching negative values, so you're trying to access a negative index of the string - this action might end up corrupting the memory so that's the reason why you would get **Segmentation Fault**. Try moving the **line 13** ( `int position = strlen(string);` ) inside the … | |
Re: If you're referring to the `Rectangle` class (from GDI+) - you can't "delete" a rectangle if it was already drawn. You can try to draw another rectangle over the one you want to erase, with the same color as the form's `BackColor` or use, on your form, `this.Invalidate()` (which will … | |
Re: You can get the URL addresses from a downloaded page by using `Regex.Matches` with an expression like this `"http:\/\/.+?"` (just an example). Then for each URL found in the list that `Regex.Matches` returns, spin a new thread and use `DownloadFile` to download that file - you still need to check … | |
Re: It skips the first **6+2** characters/bytes of the string by moving the pointer (since the string's value is stored in contiguous memory locations) => GOOD EVE**NING**. | |
Re: I think it's from Windows, maybe some libraries aren't registered as Explorer's services, hence the strange behavior. Have you tried [registering them with regsvr32.exe?](http://answers.microsoft.com/en-us/windows/forum/windows_7-system/26ee0668-a00a-44d7-9371-beb064c986830-no-such/2ec4acab-e81e-4f13-8aef-5b1bacdbd05f) | |
Re: Probably [UdpClient](http://msdn.microsoft.com/en-us/library/system.net.sockets.udpclient.aspx) (a higher level UDP socket). Or you can use a lower-level [Socket](http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx) with **SocketType.Dgram** and **ProtocolType.Udp**. I don't know about **DatagramPacket**. | |
Re: I'm not sure if this is the reason but might be better than nothing: It might be because of overheat protection - computers usually shut down when components reach a high temperature to prevent hardware damage (it's a setting from bios). Most probably it's from the Video Card or the … | |
Re: In my opinion C# would be the best choice since it's easier to work with and allows you to easily create / edit windows(GUI) for your program. VB works too, but it has a "strange" syntax...if you like it more, there's no problem. C++ = meh...pure C++ is not actually … | |
Re: By default there's already a thread that handles the program's GUI (window), which in your case could be the **Thread B** - so you can directly use this one. To run a method inside a thread you could use something like this: Thread threadA = new Thread(new ThreadStart(someMethod)); //'someMethod' runs … | |
Re: The error: `not all code paths return a value` tells you that `return v;` (**line 46**) shouldn't be inside the **for** loop. Simple fix: move that return instruction outside the loop. Also, a method/function can only return once. | |
Re: Hello, There are a few errors in your code (hope I'm not wrong): 1. You define the same method (with one parameter/int) twice: lines **18** and **23** 2. At lines **33** and **38** your formal parameters are **floats** but you call the function using **doubles** - you can fix this … | |
Re: Something like this? byte[] data = Encoding.Default.GetBytes(msg.ToString()); You also need to include this namespace: **System.Text** | |
Re: At first sight, your SQL query has an error: you're trying to insert **6 values** into **7 columns**. You probably forgot to pass a value for **Prelim** hence the problem. ![]() | |
Re: **RecursiveDirectoryIterator** and **include / include_once / require / require_once** should be blocked too. | |
Re: Something like this? (Note that a new string is not needed, just change the old one inside the derived class's constructor) public class a { public string text = "class a"; public void alert() { MessageBox.Show(text); } } public class b : a { public b() { text = "class … | |
Re: **cin>>overTime;** won't get executed if you enter bad values for **cin>>answerBoss;** In your code, the input data is expected to be an integer, if you supply anything else, it won't run the 2nd **cin**. | |
Re: Methods: it can be used to inject your own code in a process (hooking). You can also use it to read / write a process's memory which is really useful sometimes. What can "hack" with it: almost everything that runs on that computer. |
The End.