Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
7
Posts with Upvotes
6
Upvoting Members
7
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #1K

25 Posted Topics

Member Avatar for killer88

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 …

Member Avatar for Deep Modi
0
258
Member Avatar for bullet_1

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 …

Member Avatar for bullet_1
0
158
Member Avatar for Shft

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 …

Member Avatar for triumphost
-1
298
Member Avatar for bullet_1

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 …

Member Avatar for gusano79
0
175
Member Avatar for jerry717

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 …

Member Avatar for diafol
0
281
Member Avatar for yuvjeeth

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;

Member Avatar for ddanbe
0
501
Member Avatar for Gen_1

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 …

Member Avatar for TheApex
0
368
Member Avatar for Rahul47

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 …

Member Avatar for Rahul47
0
368
Member Avatar for lewashby

`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 …

Member Avatar for lewashby
0
172
Member Avatar for Waledsalah

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 …

Member Avatar for TheApex
0
104
Member Avatar for Mr.M

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 …

Member Avatar for Mr.M
0
328
Member Avatar for dev90

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**.

Member Avatar for dev90
0
128
Member Avatar for Jaydenn

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)

Member Avatar for Jaydenn
0
155
Member Avatar for mesbahuk

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**.

Member Avatar for ddanbe
0
344
Member Avatar for PM312

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 …

Member Avatar for ss125
0
155
Member Avatar for SirDarknight

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 …

Member Avatar for ss125
0
121
Member Avatar for cirbab4

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 …

Member Avatar for JOSheaIV
0
187
Member Avatar for jacksmith655

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.

Member Avatar for tinstaafl
0
236
Member Avatar for 2384443

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 …

Member Avatar for richieking
0
141
Member Avatar for mesbahuk

Something like this? byte[] data = Encoding.Default.GetBytes(msg.ToString()); You also need to include this namespace: **System.Text**

Member Avatar for mesbahuk
0
266
Member Avatar for jovstudios

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.

Member Avatar for diafol
0
226
Member Avatar for sharma.chiragfaith

**RecursiveDirectoryIterator** and **include / include_once / require / require_once** should be blocked too.

Member Avatar for cereal
0
217
Member Avatar for valipour

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 …

Member Avatar for sepp2k
0
243
Member Avatar for Lp_baez

**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**.

Member Avatar for Nutster
0
252
Member Avatar for hackoman96

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.

Member Avatar for TheApex
-2
172

The End.