Forum: C Jul 21st, 2009 |
| Replies: 3 Views: 309 Thanks. I had to do data = realloc(data, ++datalen * sizeof(char)). I forgot the "data = ". I just looked it up in my little c reference book.
void* realloc(void* p, size_t size);
Returns... |
Forum: C Jul 21st, 2009 |
| Replies: 3 Views: 309 Hi, I'm making a little program that will send email. I am fine with the sockets, but I keep getting a segmentation fault and I don't know why:$. I'm trying to make a loop that will let the user... |
Forum: C Jul 19th, 2009 |
| Replies: 1 Views: 579 I figured it out after about a bit of searching. For anyone having this same problem: apparently, Cygwin can't use IPv6 by default. I went to http://win6.jp/Cygwin/ and downloaded the files I needed... |
Forum: C Jul 19th, 2009 |
| Replies: 1 Views: 579 Hi, I installed cygwin recently and wanted to do some network programming with it. Since I have never used unix sockets before, I'm reading Beej's Guide To Network Programming. I took this from... |
Forum: C Apr 29th, 2009 |
| Replies: 1 Views: 279 Hi, I'm using GNU MP to get very precise square roots of numbers. I have three questions about my code below.
#include <stdio.h>
#include <stdlib.h>
#include <gmp.h>
int main(int argc,... |
Forum: Motherboards, CPUs and RAM Apr 24th, 2009 |
| Replies: 0 Views: 296 Hi, I'm getting parts for a notebook I'm going to build. I want to do some gaming on it, so I need to know it has reasonable parts. I'm pretty sure the hardware is good for gaming, but I wanted to... |
Forum: C Apr 19th, 2009 |
| Replies: 9 Views: 1,016 Hi, how would I get the temperature and percentage of load for my CPU, GPU, and other things like the hard drive? I'm on Windows XP. Is there something in the Win32 API or what? |
Forum: Motherboards, CPUs and RAM Apr 12th, 2009 |
| Replies: 2 Views: 502 |
Forum: Motherboards, CPUs and RAM Apr 12th, 2009 |
| Replies: 2 Views: 502 Hi, I was wondering if I got an Intel Core 2 Duo at 2.6ghz, is that 2.6ghz PER core (5.2 ghz total), or is it the total for all of the cores? Thanks in advance. |
Forum: C++ Apr 9th, 2009 |
| Replies: 6 Views: 296 You can just see if AWUTD is y or n and display what you want.
cout<<"Patients Name:"<<Pname<<endl;
cout<<"Patients Age:"<<age<<endl;
cout<<"Patients Current Employer:"<<CEmployer<<endl;
... |
Forum: C++ Apr 9th, 2009 |
| Replies: 6 Views: 296 Change
if(AWUTD=='y'||'Y')
{
cout<<"Please Specify:"<<endl;
getline (cin, AWUTDspecification);
}
else if (AWUTD=='n'||'N')
{
cout<<endl; |
Forum: Assembly Apr 8th, 2009 |
| Replies: 7 Views: 873 Nice tutorial Narue. Thanks! That really helped me. |
Forum: Assembly Apr 4th, 2009 |
| Replies: 7 Views: 873 Thanks. I'm going to read Narue's guide and see where that brings me. Also, what did you mean by "[1] Unless you want to encode instructions directly with a hex editor... ", Narue? |
Forum: Assembly Apr 2nd, 2009 |
| Replies: 7 Views: 873 Hi, I want to learn assembly and have looked at tutorials I found on google. It's really freaking complicated, so do any of you know of any good tutorials on assembly? I'm on Windows XP 32 bit with... |
Forum: Motherboards, CPUs and RAM Mar 22nd, 2009 |
| Replies: 5 Views: 624 Hi, I'm building a gaming computer and wanted to know if my CPU and GPU are good enough for new games like bioshock and fallout 3. I was talking with a friend and he said that if I got what was new a... |
Forum: Viruses, Spyware and other Nasties Mar 21st, 2009 |
| Replies: 1 Views: 338 Hello, my friend's laptop got a very evil virus on it recently. I have scanned it with trend micro internet security multiple times as well as with SpyBot, but it won't die. This virus makes tons of... |
Forum: Windows NT / 2000 / XP Mar 10th, 2009 |
| Replies: 14 Views: 928 |
Forum: Windows NT / 2000 / XP Mar 9th, 2009 |
| Replies: 14 Views: 928 I don't think that you can get it for free legally. You mught have to spend some money.... |
Forum: C++ Mar 4th, 2009 |
| Replies: 2 Views: 387 |
Forum: C++ Mar 4th, 2009 |
| Replies: 2 Views: 387 Hi, I'm reading the header from bitmaps. When I add up everything in a struct I've made, it comes out to 54 bytes. When I do a sizeof(BHeader), it says it's 56 bytes. It adds two null bytes after the... |
Forum: Windows NT / 2000 / XP Mar 3rd, 2009 |
| Replies: 5 Views: 629 I absolutely LOVE TrueCrypt! It does exactly what I want it to do. I can just partition my pen drive and put TrueCrypt on one partition (and have another encrypted partition) to use this on other... |
Forum: Windows NT / 2000 / XP Mar 3rd, 2009 |
| Replies: 5 Views: 629 Thanks. Also, I like that google link you posted googleit :) |
Forum: Windows NT / 2000 / XP Mar 2nd, 2009 |
| Replies: 5 Views: 629 Hi, I want to encrypt my pen drive. Are there any open source or freeware programs that I can use to do this? Being able to decrypt it on any computer running XP without installing any software would... |
Forum: Windows NT / 2000 / XP Feb 23rd, 2009 |
| Replies: 7 Views: 759 What do you have for a CPU? |
Forum: Windows NT / 2000 / XP Feb 23rd, 2009 |
| Replies: 14 Views: 928 Task manager closed?. I think you have some sort of malware that closed task manager. You need to do something like what cguan_77 said. Booting Linux from a CD and scanning your hard drive would also... |
Forum: Windows NT / 2000 / XP Feb 20th, 2009 |
| Replies: 14 Views: 928 Explorer.exe might have been deleted or just not started. Hit control+alt+del, go to file->New Task (Run...). Type in "explorer" without quotes. If it says "Windows cannot find 'explorer'", then it... |
Forum: C++ Feb 17th, 2009 |
| Replies: 11 Views: 586 http://sourceforge.net/project/showfiles.php?group_id=2435 |
Forum: C Feb 15th, 2009 |
| Replies: 2 Views: 659 Hi, I'm trying to use LogonUser. I think I'm doing everything right, but I keep getting this error: 1326 (ERROR_LOGON_FAILURE). I know my user and pass are right.
#include <stdlib.h>
#include... |
Forum: Windows NT / 2000 / XP Feb 14th, 2009 |
| Replies: 3 Views: 620 O_o. It was a Windows setting. I had selected to have microphone input from something other than my mic. Sorry I didn't reply last night, I fell asleep :|. |
Forum: C Feb 14th, 2009 |
| Replies: 6 Views: 1,503 |
Forum: C Feb 14th, 2009 |
| Replies: 3 Views: 444 System() pauses your program doesn't it? I need something that will just execute a program but not wait for it to end to keep going about its business. |
Forum: Windows NT / 2000 / XP Feb 13th, 2009 |
| Replies: 3 Views: 620 Hi, whenever I play audio, and the output goes through my speakers, it GOES THROUGH MY MICROPHONE TOO. Like, when I play a song, I monitor the microphone input, and it says it has input when the song... |
Forum: C Feb 13th, 2009 |
| Replies: 3 Views: 444 Hi, I was wondering if there was an alternative to the ShellExecute function of the Windows API; one that is universal on every OS. Is there one? |
Forum: C Feb 13th, 2009 |
| Replies: 4 Views: 1,502 I switched from Dev-C++ to Code::Blocks recently. The interface is awesome. I'm using the MinGW compiler, so there's no difference in compile time (they are using the same compiler). The only thing... |
Forum: Windows NT / 2000 / XP Feb 13th, 2009 |
| Replies: 7 Views: 720 If you have never deleted temporary files with a program like CCleaner, do it! I recently cleared files from a friend's computer. He had never done that. It made his computer much faster (he had like... |
Forum: Windows NT / 2000 / XP Feb 13th, 2009 |
| Replies: 7 Views: 759 You might need more RAM. Do you know how much you have? If there isn't a lot, Windows will write to a page/swap file on the hard drive. This greatly reduces performance. |
Forum: C Feb 13th, 2009 |
| Replies: 6 Views: 1,503 Bubble sorts are very easy to make. Just Google "bubble sort algorithm". |
Forum: Windows NT / 2000 / XP Feb 11th, 2009 |
| Replies: 1 Views: 313 You could use a proxy that's in Turkey. Other than that, you can't just change your IP to a Turkish one. |
Forum: C Feb 11th, 2009 |
| Replies: 4 Views: 1,110 This is a very complex sort. There's pseudocode on Wikipedia http://en.wikipedia.org/wiki/Heap_sort. |
Forum: C++ Feb 8th, 2009 |
| Replies: 1 Views: 623 Hi, I'm making a program that will get input from a user's microphone, send it to another user with a socket, and play it. It's like a VoIP thing. I can send data using a socket, but I have no idea... |