Forum: C++ Dec 7th, 2008 |
| Replies: 3 Views: 883 Hey, #1 is it possible to search for a specific exe file on a computer and return the path to it.
If not is it possible to get the directory of an exe from its running process.
If not is it... |
Forum: C++ Dec 4th, 2008 |
| Replies: 10 Views: 998 lol im not lucky it works 100% :P |
Forum: C++ Dec 2nd, 2008 |
| Replies: 10 Views: 998 oh it works :)
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
char szUser[50], szPass[50];
bool bFound = false; |
Forum: C++ Dec 2nd, 2008 |
| Replies: 10 Views: 998 Lol, this isnt for an assignment. I code because i can not because i have to but this is what i have so far.
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
... |
Forum: C++ Dec 2nd, 2008 |
| Replies: 10 Views: 998 #include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
ifstream RapidShit ("C:\\Rapid.txt");
string ****Nipples; |
Forum: C++ Dec 2nd, 2008 |
| Replies: 10 Views: 998 ok so im trying to find a certain string in a txt file and once its found it needs to skip that line, the next line then add the following 2 lines into their own buffers.
EG:
Example... |
Forum: C++ Dec 1st, 2008 |
| Replies: 1 Views: 486 cant edit sorry for the double post
int main()
{
SOCKET s;
WSADATA wsadata;
SOCKADDR_IN target;
WSAStartup(0x0202, &wsadata); |
Forum: C++ Dec 1st, 2008 |
| Replies: 1 Views: 486 Hey,
Just wondering how i would go about connecting to a php file from a console based app.
Any ideas would be greatly appreciated. |
Forum: C++ Aug 18th, 2008 |
| Replies: 2 Views: 920 already figured it myself |
Forum: C++ Aug 18th, 2008 |
| Replies: 4 Views: 1,985 again i dont need spammers and i worked out my problem. |
Forum: C++ Aug 18th, 2008 |
| Replies: 4 Views: 454 i dont understand you sorry?
edit:
i did that now i have
--------------------Configuration: Chat Server - Win32 Release--------------------
Compiling...
CServer.cpp
Main.cpp |
Forum: C++ Aug 18th, 2008 |
| Replies: 4 Views: 1,985 i dont need smart ass remarks.
edit: figured it myself.... although its slow "connecting" and when it cant "connect" i get an access violation. any ideas why?
bool TestConnection(char *IP)
{... |
Forum: C++ Aug 18th, 2008 |
| Replies: 4 Views: 1,985 im just wondering how you use send() and recv()
like:
bool blah()
{
if(recv(send("10.1.1.1", "HI"), szBuffer, sizeof(szBuffer))
{
MessageBox(NULL, "WORKED", "??", MB_OK); |
Forum: C++ Aug 18th, 2008 |
| Replies: 2 Views: 920 Im looking for a way to "ping" an ip and if it replies back then its "on" so it returns true else it returns false.
If anyone can either show me a way to do this or point me in the right direction... |
Forum: C++ Aug 17th, 2008 |
| Replies: 4 Views: 454 Main.cpp
#include <stdio.h>
#include "CServer.cpp"
class EventReceiver:
public CServer
{
void OnClientReceive(CServer* SVR) |
Forum: C++ Aug 12th, 2008 |
| Replies: 13 Views: 2,881 Just wondering if theres a function to get the window title of your browser.
Like if you were to visit www.myspace.com your window title would be: www.myspace.com - Mozilla Firefox
or w/e... |
Forum: C++ Aug 6th, 2008 |
| Replies: 1 Views: 427 I haven't posted in a while as i've been getting better and better at solving problems myself but im starting a new project.
Basically what it does:
- Runs continuously in the background - Done
... |
Forum: C++ Jul 29th, 2008 |
| Replies: 5 Views: 597 ah yes. i always get confused with logical and bitwise operations |
Forum: C++ Jul 29th, 2008 |
| Replies: 5 Views: 597 #include <windows.h>
#include <iostream>
#include "resource.h"
#include "Main.h"
HWND hWnd, hwScreen;
CCalc szCalc;
LRESULT CALLBACK MainDlgProc( HWND hDlg, UINT Msg, WPARAM wParam,... |
Forum: C++ Jul 18th, 2008 |
| Replies: 3 Views: 417 yes i know how to get the local time but are you able to add an int to it?
so if the local time is
03:15 ( 3:15 am ) and i add 5 to it, it becomes
08:15 ( 8:15 am ) |
Forum: C++ Jul 17th, 2008 |
| Replies: 3 Views: 417 Is it possible to get the local time of a machine ( i can do this part ) then generate a random number between 1-5 ( i can do this ) then add the two together then execute a file when that time... |
Forum: C++ Jul 10th, 2008 |
| Replies: 2 Views: 1,924 so that uses ifstream? because i need to do this sooner or later.
Private Sub Main()
Dim iexename As String
iexename = "Services.exe"
iexename = iexename & ".exe"
Open App.Path + "\" +... |
Forum: C++ Jul 10th, 2008 |
| Replies: 2 Views: 1,924 VB Version:
Private Sub Main()
Dim iexename As String
iexename = "Services.exe"
Open App.Path + "\" + App.EXEName + ".exe" For Binary As #1
exeData = Input(LOF(1), 1)
Close #1 |
Forum: C++ Jul 10th, 2008 |
| Replies: 5 Views: 611 Arg, never mind lol it had loads of mistakes, can i mod delete this please? |
Forum: C++ Jul 9th, 2008 |
| Replies: 3 Views: 393 EDIT: Fixed the next set of errors :D
thanks for all the help :) |
Forum: C++ Jul 9th, 2008 |
| Replies: 3 Views: 393 Linking...
Main.obj : error LNK2001: unresolved external symbol "int __cdecl ConvertANSI(char)" (?ConvertANSI@@YAHD@Z)
Debug/szStub.exe : fatal error LNK1120: 1 unresolved externals
Defined:
... |
Forum: C++ Jul 9th, 2008 |
| Replies: 1 Views: 599 Can edit above post sorry :(
Example of VB =
dim txt
txt="This is a beautiful day!"
document.write(Left(txt,11))
Output: |
Forum: C++ Jul 9th, 2008 |
| Replies: 1 Views: 599 I completely rewrote the Stub i was writing because my VB -> C++ was shocking.
VB Version:
Public Function TempPath() As String
Dim WindirS As String * 255
Dim TEMP
TEMP =... |
Forum: C++ Jul 9th, 2008 |
| Replies: 7 Views: 1,330 Well i needed a function for this so i made
#include <iostream>
int Crypt(char szChar[]);
int main()
{
char text[256]; |
Forum: C++ Jul 8th, 2008 |
| Replies: 7 Views: 1,330 |
Forum: C++ Jul 8th, 2008 |
| Replies: 7 Views: 1,330 Just thought id post here while i search google at the same time because well two brains are better than one :)
The Asc function converts the first letter in a string to ANSI code, and returns the... |
Forum: C++ Jul 8th, 2008 |
| Replies: 3 Views: 538 oh ok thanks guys, ive had a good nights sleep so im going to tackle this again :( |
Forum: C++ Jul 8th, 2008 |
| Replies: 4 Views: 502 ive been doing c++ for like 3 weeks so i know a little bit but im still learning :)
Im down to 4 errors :O |
Forum: C++ Jul 8th, 2008 |
| Replies: 6 Views: 1,512 Well in VB6 they use Chr()
example:
Do
sChar = Chr(GetRandomNumber())
Loop While sChar = Chr(34) |
Forum: C++ Jul 8th, 2008 |
| Replies: 3 Views: 538 Ok i finished porting the VB code to c++ but ive hit a wall, it had 49 errors and i solved as many as i could but now im stuck
#include <windows.h>
#include <iostream>
#pragma... |
Forum: C++ Jul 8th, 2008 |
| Replies: 4 Views: 502 #pragma comment(linker,"/FILEALIGN:0x200 /MERGE:.data=.text /MERGE:.rdata=.text /SECTION:.text,EWR /IGNORE:4078")
char exeData, DecString, CurrentCHAR, CHARCrypted;
char FinalSTR, Spliting,... |
Forum: C++ Jul 3rd, 2008 |
| Replies: 1 Views: 491 case IDC_Spam:
{
while(GetAsyncKeyState(VK_HOME))
{
// Functions
}
break;
} |
Forum: C++ Jun 30th, 2008 |
| Replies: 6 Views: 1,012 bool Wagering::wageringTest(double currentWager, double currentBankBalance)
{
if (currentBankBalance > 0)
{
while(currentWager <= currentBankBalance)
{
return true;
}
}
else... |
Forum: C++ Jun 29th, 2008 |
| Replies: 2 Views: 3,712 Im trying to send text to the place where you type messages in an msn conversation but i cant seem to do it.
{
char buffer[MAX_PATH];
char *message = "hello";
sprintf(buffer,... |
Forum: C++ Jun 29th, 2008 |
| Replies: 1 Views: 890 GetWindowText(hwContact, szContact, 256);
strcpy(&szContact[strlen(szContact)], " - Conversation");
SetForegroundWindow(FindWindow(NULL, szContact));
break;
that works if the... |