40 Solved Topics

Remove Filter
Member Avatar for TheBeast32

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); …

Member Avatar for Oliver _2
1
540
Member Avatar for TheBeast32

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 …

Member Avatar for developer_borja
0
669
Member Avatar for TheBeast32

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:

Member Avatar for nicsor
0
168
Member Avatar for TheBeast32

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

Member Avatar for cbusen
0
197
Member Avatar for TheBeast32

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.

Member Avatar for TheBeast32
0
103
Member Avatar for TheBeast32

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.

Member Avatar for Narue
0
197
Member Avatar for TheBeast32

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 …

Member Avatar for TheBeast32
0
104
Member Avatar for TheBeast32

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.

Member Avatar for starfireone
0
143
Member Avatar for TheBeast32

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?:?:

Member Avatar for Suspishio
0
97
Member Avatar for TheBeast32

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 …

Member Avatar for TheBeast32
0
706
Member Avatar for TheBeast32

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.

Member Avatar for TheBeast32
0
134
Member Avatar for TheBeast32

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 …

Member Avatar for ccube921
0
122
Member Avatar for TheBeast32

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 …

Member Avatar for TheBeast32
0
89
Member Avatar for TheBeast32

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 …

Member Avatar for Salem
0
91
Member Avatar for TheBeast32

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. ;)

Member Avatar for William Hemsworth
0
181
Member Avatar for TheBeast32

Hi, I was reading something that said goto was bad. Why is it a bad practice to use it?

Member Avatar for Narue
0
126
Member Avatar for TheBeast32

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")). …

Member Avatar for TheBeast32
0
153
Member Avatar for TheBeast32

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 …

Member Avatar for Sci@phy
0
69
Member Avatar for TheBeast32

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 …

Member Avatar for TheBeast32
0
128
Member Avatar for TheBeast32

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

Member Avatar for TheBeast32
0
144
Member Avatar for TheBeast32

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 …

Member Avatar for TheBeast32
0
1K
Member Avatar for TheBeast32

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 …

Member Avatar for emiola
0
114
Member Avatar for TheBeast32

Hi, I need to get the output of a program called with the system() function. How would I do this?

Member Avatar for TheBeast32
0
377
Member Avatar for TheBeast32

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 …

Member Avatar for TheBeast32
0
128
Member Avatar for TheBeast32

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

Member Avatar for aminit
0
80
Member Avatar for TheBeast32

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 …

Member Avatar for TheBeast32
0
109
Member Avatar for TheBeast32

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 …

Member Avatar for TheBeast32
0
87
Member Avatar for TheBeast32

Hi, I have been making a macro building program. I am trying to handle mouse events right now. I have made a program that hooks the mouse, then puts information into a text file which is then read by another program. The recorder writes the delay in milliseconds, so the …

Member Avatar for TheBeast32
0
344
Member Avatar for TheBeast32

Could anyone tell me if there is a function like the InputBox() function in Visual basic? I have googled it and come up with nothing. Thanks.

Member Avatar for TheBeast32
0
222
Member Avatar for TheBeast32

Hi, is there a data type larger than unsigned long long int except double? I don't want double or float because I need to keep it as precise as possible. I also need it to be able to do modulus. How would I do this?

Member Avatar for TheBeast32
0
110
Member Avatar for TheBeast32

Hi, I am making a simple screen shot program. I need to be able to capture the entire screen, or if possible, a region of the screen (like a rectangle from point (25, 60) to (300, 456)). I also need to be able to save it to a bitmap file. …

Member Avatar for TheBeast32
0
1K
Member Avatar for TheBeast32

Hi, whenever I put a [B]blank[/B] DVD-R or RW disk into my drive, Windows will say it's not there. The cursor turns into a little CD, but whenever I try to burn an ISO image or any type of file onto it, it says that it's not in. I looked …

Member Avatar for caperjack
0
272
Member Avatar for TheBeast32
Member Avatar for TheBeast32
0
76
Member Avatar for TheBeast32

Hi i have been making two programs: one that sends a file's filebuf made into a char*, and another that receives that and writes it to a file. They're like exe sending programs. I can send the char* and write it onto the console using cout.write(), but when I try …

Member Avatar for TheBeast32
0
241
Member Avatar for TheBeast32

Hi, I made a simple program that copies files. I tried to copy an exe file, but after I tried to run the copied version, it doesn't work properly. Please help:?: Here's the code for the test file to copy: [code=C++] #include <iostream> int main() { std::cout << "Hello!"; std::cin.get(); …

Member Avatar for TheBeast32
0
177
Member Avatar for TheBeast32

Hello, I have been wondering how to keep a value even after a program ends. An example could be a countdown of days on a trial of a product. It must be able to not be changed by the user. How would I do this?

Member Avatar for TheBeast32
0
142
Member Avatar for TheBeast32

Hi, i have been making a server for a client I made to connect to. I don't have a static IP, so I need a way for someone on another computer to connect to me without me telling the user what it is every time. I have tried to just …

Member Avatar for TheBeast32
0
99
Member Avatar for TheBeast32

Hi again, i'm making a macro building pogram. I have got mouse movement down, but now i have no idea how to do mouse clicks or keyboard input. Please help! I'm also using dev-c++ 4.9.9.2. Here's my complete code for the program. [code=c++] POINT MousePoint; int X = 0; int …

Member Avatar for iamthwee
0
190
Member Avatar for TheBeast32

I have been making a prime number generator. It works, but it's considerably slow if a user enters a high number. If anyone has any suggestions on how to make it faster, please post it. Here's the genrator code: [code] unsigned long int theNumber; unsigned long int Factor1 = 1, …

Member Avatar for TheBeast32
0
108
Member Avatar for TheBeast32

Hi, i have been making a program that tests a computer owner's firewall. It gets input from the client i made, and does a system() with it. Is there any way to make the firewall not block the program right when i make a scocket? Oh, im using Dev-C++ 4.9.9.2 …

Member Avatar for WolfPack
0
352

The End.