68 Discussion / Question Topics
Remove Filter Hi, how would I use mouse_event to simulate the mouse wheel? I can only do clicks. [Code=C++] void Left_Click(const long x, const long y) { mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0); mouse_event(MOUSEEVENTF_LEFTUP,x,y,0,0); } void Right_Click(const long x, const long y) { mouse_event(MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0); mouse_event(MOUSEEVENTF_RIGHTUP, x, y, 0, 0); … | |
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 section 5.1 and tried to compile it. I get a few errors that I can't figure out … | |
Hi, I need a way to see if a mouse button is up or down, if the wheel is being used, and if so, which direction the wheel is moving using a hook or something like that. MSDN didn't help me much. Also, I'm using Dev-C++ 4.9.9.2.:yawn: | |
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 enter the data for the email, ending with a '.' on … | |
Hi, I just replaced my 2.4 Ghz Intel Celeron CPU with a P4 Prescott at 3.2 ghz like 2 hours ago. It idles at like 48 degrees Celsius. I played half-life 2 for a bit and it went up to like 60-62. I didn't put any thermal crap on it. … | |
Hi, I'm using GNU MP to get very precise square roots of numbers. I have three questions about my code below. [Code] #include <stdio.h> #include <stdlib.h> #include <gmp.h> int main(int argc, char *argv[]) { mpf_t num, sqrt; FILE *out; mpf_init2(num, 1000000); mpf_init2(sqrt, 1000000); printf("Enter a number to get its square … | |
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 double check before I buy all of the parts. … | |
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? | |
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. | |
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 an Intel CPU. | |
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 little while ago, it'll still give me … | |
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 popups appear while browsing. They're mostly ads for antivirus programs and other things. … | |
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 B and the M when I save a header to … | |
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 be nice. Thanks in advance. | |
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. [Code=C++] #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <windows.h> void GetPassword(char *pass, int maxlen, char hidechar) { char ch; int len = … | |
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 is playing. How can I fix this?:?: | |
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? | |
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 how to get input from a microphone or play … | |
Hi, I have a P4 Prescott @ 3.2 Ghz. I have an 80 mm case fan and my cpu fan is a Thermaltake TR2 M12 A4012-02. Is this enough for my CPU, or do I need some more fans? Also, there are vents on one side of my case if … | |
Hi, I'm going to install CrunchBang Linux on my 2GB pen drive. I was just wondering about the way it saves stuff. Do you have to back up and restore your data and settings every time you shutdown and boot like when using Damn Small Linux for everything to be … | |
Hi, how would I make a simple kernel in C that I could boot on my PC? | |
Hi, I was wondering how you would intercept data on a given port without interrupting it in WINSOCK. Like if computer A sent computer B "hi" on port 1337 and it was received on a server program. How could I listen for that data on computer B, but still let … | |
Hi, I'm thinking of getting a new CPU. Here it is on NewEgg: [url]http://www.newegg.com/Product/Product.aspx?Item=N82E16819116027[/url]. My motherboard is here:[url]http://www.dealtime.com/xPF-SIS661FX-PGA478-M-ATX-PRESCOTT[/url]. My question is: will my motherboard support this CPU? Thanks in advance. | |
Hi, I'm making a website. I want it to look professional. I don't want to use templates because I think of that as cheating. I want to be able to make one myself. Whenever I make a web page, it doesn't look very good. If anyone has any tips. Please … | |
Hi, I recently got 2 GB of DDR-SDRAM and an NVIDIA GeForce AGP graphics card. My processor is 2.5 Ghz (Uniprocessor), but I think it runs slow. At my school, there are uniprocessor pcs which run faster. They have less RAM and slower CPUs too. I don't know why this … | |
Hi, I just bought 2 GB of DDR-SDRAM and an e-GeForce 6200 graphics card (AGP) by NVIDIA. I bought a game (The Orange Box), installed Half-Life 2, and ran it. The graphics displayed perfectly and there was no lag there, but when the game started handling AI, gunfire, etc., it … | |
Hi, is there a socket library [B]besides WINSOCK[/B] that I can use with Dev-C++. I don't have a <sys\socket.h> include. Is there a devpak that I can get, or am I doomed to WINSOCK? | |
Hi, I'm using WinSock, and am making a function to receive data. How can I know when I have reached the end of the data that I'm receiving. Like, if I send "GET /" to [url]www.google.com[/url] on port 80, I should receive the HTML of the index page. But in … | |
Hi, I have 490 MB of RAM, but in the task manager, while running firefox and some other stuff, it says i have 160 MB free physical memory, but it also says I'm using almost 500 MB of my swap file! How can I get Windows to utilize that extra … | |
Hi, I was told that you can crash Windows in C++ or C by "corrupting the kernel", and I wanted to know if this was actually possible. If anyone knows if this is possible, or how it happens, please tell me. ;) | |
Hi, I have put DSL (Damn Small Linux) onto my 256 MB pen drive to try and boot my computer with it. I can, but it says it can't find the KNOPPIX file system. I can boot it from Windows with QEMU, and it works fine. I have tried this … | |
Hi, I was reading something that said goto was bad. Why is it a bad practice to use it? | |
Hi, I'm reading a bitmap manually to try and make a program that does steganography, but I can't read the file correctly. The headers I read come out completely messed up, and they fail the check to see if I'm reading a bitmap file or not (if (FileHeader.bfType != (int)"BM")). … | |
Hi, I keep getting an undefined identifier error when I try to do this: [Code=C] typedef char bool; // Make a bool type char false = 0, true = 1; // Make true and false void foo() { switch (something) { case 1: bool aaaaa; break; } } [/Code] It … | |
Hi, I'm taking a programming class at my school. My teacher gave us a pdf that said "..You will be writing a program that can read a bitmap and insert a secret message into the bytes of the picture in a retrievable way using the picture as a cipher and … | |
Hi, I'm need to be able to load bitmaps, preferably as resources, draw them, and get their size. How would I do this? I'm on Windows, and using Dev-C++ 4.9.9.2. | |
Hi, I'm making a program that can send an SMS message to a cell phone using any number that the user chooses. I have been successful sending a message with an SMTP server that says it's from an email address, but I need to make it show up as a … | |
Hi, I'm using Expat to parse XML, and I have an array of attributes for an element. I need to be able to loop through them all, and get their values, I don't know the array size, and it's a multidimensional array, so I couldn't do [Code=C++] int count = … | |
Hi, I'm starting to program with DirectX. I haven't use pixel or vertex shaders, but I know DirectX supports them. My graphics card is a piece of crap, and it doesn't support pixel and vertex shaders. How could I render them with software or an emulator, so I can test … | |
Hi, I was wondering how to use TAPI in C++ to communicate with my modem. How would I accomplish this? I'm not using Visual C++. I'm using dev-c++ 4.9.9.2. | |
Hi, whenever I compile [B]any[/B] sample code for DirectX, I get this error: [Linker error] undefined reference to `D3DXCreateFontA@48'. I'm using Dev-C++ 4.9.9.2, I'm linking it with: libd3d9.a libd3dx9d.a libdinput.a libdinput8.a libdxguid.a I don't know why this is happening. Please help.:twisted: | |
Hi, I was wondering if anyone knew any code snippets that do something cool like: Open the CD tray: [Code=C++] mciSendString("open CDAudio", NULL, 0, NULL); cout << "Opening CD-ROM door ..." << endl; mciSendString("set CDAudio door open", NULL, 0, NULL); cout << "Closing the CD-ROM door in 5 seconds ..." … | |
Hi, I'm reading Programming Windows Fifth Edition by Charles Petzold. In the part I'm reading, it talks about GDI functions. I'm trying to get the pixels that are 1 to 100 + the mouse x coordinate and the y coorinate, then draw them on my window. It's hard to explain. … | |
Hi, how would I make a program that gets input from a user, sends it to a program with popen(), gets the output, and repeats this until the program ends? I have tried, but I only get part of the output, and when I type "exit", it won't end the … | |
Hi, I have been trying to get MySQL to work on my apache server with PHP on it. My Apache version is 1.3.29 and my PHP version is 5.0.0RC2. I'm also running Windows XP Professional SP2 32 bit. I tried modifying the php.ini file to load the php_mysql.dll, but I … | |
Hi, I need to get the output of a program called with the system() function. How would I do this? | |
Hi, I have been trying to make a dialog, but I keep getting an error. I'm using Dev-C++ 4.9.9.2, and I get this error "[Resource error] syntax error". Here's my code for the dialog: [Code] IDD_CONNECT DIALOG DISCARDABLE 0, 0, 300, 250 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU … | |
Hi, I have been making a program that encrypts files. It works, but it compresses them. It only does it a little bit, but it does. It's weird. Why is it doing this? I have attached a zipped folder with the code, binary, an encrypted file, and the original file. … | |
HI, I have been wondering how to make a program with the XP style buttons, edit boxes, etc. in it. I have made a GUI, but it's ugly. How can I make the controls look like the ones on say, a windows property sheet or something like that? I have … | |
Hi, I have bought [U]Programming Windows Fifth Edition[/U] by Charles Petzold. I was wondering if there are any differences between the Win32 API talked about in this book and the one that applies to Vista or anything newer than Windows 2000. Also, my book didn't come with the CD (I … |
The End.