Code: Show/Hide c:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\virus\virus.cpp(18): error C2447: '{' : missing function header (old-style formal list?) c:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\virus\virus.cpp(18): error C2143: syntax error : missing ';' before '{' c:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\virus\virus.cpp(17): error C2182: 'CDRomOpen' : illegal use of type 'void' c:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\virus\virus.cpp(17): error C2146: syntax error : missing ')' before identifier 'bOpenDrive' c:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\virus\virus.cpp(17): error C2065: 'BOOL' : undeclared identifier c:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\virus\virus.cpp(17): error C2059: syntax error : ')' |
Code: Show/Hide #include <iostream> #include <cstdlib> #include <stdio.h> using namespace std; main() { int response; printf("Type '1' to continue.\n"); cin >> response; if(response == 1){ void CDRomOpen(); } } void CDRomOpen(BOOL bOpenDrive, char *drive) { MCI_OPEN_PARMS open; DWORD flags; ZeroMemory(&open, sizeof(MCI_OPEN_PARMS)); open.lpstrDeviceType = (LPCSTR) MCI_DEVTYPE_CD_AUDIO; open.lpstrElementName = drive; flags = MCI_OPEN_TYPE | MCI_OPEN_TYPE_ID; if (!mciSendCommand(0, MCI_OPEN, flags, (DWORD) &open)) { mciSendCommand(open.wDeviceID, MCI_SET, (bOpenDrive) ? MCI_SET_DOOR_OPEN : MCI_SET_DOOR_CLOSED, 0); mciSendCommand(open.wDeviceID, MCI_CLOSE, MCI_WAIT, 0); } } |
BDwinsAlt wrote: | |
|
Code: Show/Hide #include <iostream>
#include <cstdlib> #include <stdio.h> |
Mr Ekted wrote: |
#include "windows.h" |
LearJett+ wrote: |
Push the button. |
wEaViL wrote: |
I have nothing to contribute but judging from the name of the file imma take a shot in the dark and say your making one of them virus trick programs that pretends to do all that wack stuff to a comp as a prank? Just curious |
Bak wrote: |
no way man, have fun with coding while you're young |
BDwinsAlt wrote: |
I just wanted to learn gosh. I wasn't going to release anything remotely harmful to anyone. |
BDwinsAlt wrote: |
If I wanted to do evil things to people I would send them the Prorat trojan. I tried 4 anti-viruses to get rid of it. So later I used a special process manager and deleted the process then deleted all the infected files and files protecting it. |
BDwinsAlt wrote: |
I don't plan on making that happen to anyone else. I just wanted to have some fun and show my mom what I learned how to do. |
BDwinsAlt wrote: |
You freak out because I don't understand everything yet. |
BDwinsAlt wrote: |
Here's a little something, you learn little by little. You can't spell a word until you know how to write the letters. |
BDwinsAlt wrote: |
Please just help me along the way of the right path. |
BDwinsAlt wrote: |
All I ask is for a little respect, ok. I don't care how much you hate me, just show a little respect. It won't kill you, if it does then maybe it's for the best. |
Cyan~Fire wrote: |
Hehe. |