Search Results

Showing results 1 to 40 of 71
Search took 0.01 seconds.
Search: Posts Made By: FTProtocol ; Forum: C++ and child forums
Forum: C++ Dec 7th, 2008
Replies: 3
Views: 883
Posted By FTProtocol
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
Posted By FTProtocol
lol im not lucky it works 100% :P
Forum: C++ Dec 2nd, 2008
Replies: 10
Views: 998
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
#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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
already figured it myself
Forum: C++ Aug 18th, 2008
Replies: 4
Views: 1,985
Posted By FTProtocol
again i dont need spammers and i worked out my problem.
Forum: C++ Aug 18th, 2008
Replies: 4
Views: 454
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
ah yes. i always get confused with logical and bitwise operations
Forum: C++ Jul 29th, 2008
Replies: 5
Views: 597
Posted By FTProtocol
#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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
Arg, never mind lol it had loads of mistakes, can i mod delete this please?
Forum: C++ Jul 9th, 2008
Replies: 3
Solved: Compiling Error
Views: 393
Posted By FTProtocol
EDIT: Fixed the next set of errors :D

thanks for all the help :)
Forum: C++ Jul 9th, 2008
Replies: 3
Solved: Compiling Error
Views: 393
Posted By FTProtocol
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
Solved: Last error.
Views: 599
Posted By FTProtocol
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
Solved: Last error.
Views: 599
Posted By FTProtocol
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
Solved: Convert to ANSI
Views: 1,330
Posted By FTProtocol
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
Solved: Convert to ANSI
Views: 1,330
Posted By FTProtocol
Perfect i love you :d
Forum: C++ Jul 8th, 2008
Replies: 7
Solved: Convert to ANSI
Views: 1,330
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
#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
Posted By FTProtocol
case IDC_Spam:
{
while(GetAsyncKeyState(VK_HOME))
{
// Functions
}
break;
}
Forum: C++ Jun 30th, 2008
Replies: 6
Views: 1,012
Posted By FTProtocol
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
Posted By FTProtocol
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
Posted By FTProtocol
GetWindowText(hwContact, szContact, 256);
strcpy(&szContact[strlen(szContact)], " - Conversation");
SetForegroundWindow(FindWindow(NULL, szContact));
break;


that works if the...
Showing results 1 to 40 of 71

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC