- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 10
- Posts with Downvotes
- 6
- Downvoting Members
- 8
44 Posted Topics
Hey, im just wondering how to say the source of a webpage that is in your WebBrowser Control. I've tried loads of methods but i am failing horribly (google isnt my friend today). Just wondering if someone could share some insight :). | |
Image of my problem [url]http://i31.tinypic.com/2v3ivyq.png[/url] Left = Actual notepad.exe opened in notepad Right = what i get after i read/write. Goal - Be able to store notepad.exe between to splits and then when the application that is houses the bytes is run, it reads those bytes and saves them. I … | |
[CODE] using System; using System.Collections.Generic; using System.Text; namespace bPod { public class PodCastFunctions : Form1 { public void ClearOriginal() { newpodcastButton.Visible = false; addpodcastButton.Visible = false; finalisepodcastButton.Visible = false; overviewButton.Visible = false; this.Height = 183; this.Width = 671; this.BackgroundImage = Properties.Resources.NewPCast; podcastdescLabel.Visible = true; podcastdescTextBox.Visible = true; podcastnameLabel.Visible = true; … | |
Just wondering if theres a function to get the window title of your browser. Like if you were to visit [url]www.myspace.com[/url] your window title would be: [url]www.myspace.com[/url] - Mozilla Firefox or w/e browser you happen to use. Is there a way to get the title of a window? | |
Ok so it logs in fine using [code=C#] public bool Login() { string postdata = string.Format("m=login&nextURL=http%3A%2F%2Fwww.ijji.com%2Findex.nhn&memberid={0}&password={1}", encode(Username), encode(Password)); string result = post(_url + "login.nhn", postdata); return !(result.Contains("You have entered an incorrect password") || result.Contains("User ID is not found")); } public string GetCookies() { return Cookies.GetCookieHeader(new Uri("http://ijji.com/")); } [/code] then it … | |
Any ideas where i can start im really quite lost :( | |
I need need it to update my ListView before continueing [code] if (chars.Length > 0) { string log = string.Format("{0}:{1}", acc.Username, acc.Password); UpdateListView(); sWorking += log + "\r\n"; foreach (IJJIAccount.GunZCharacter gc in chars) { log = string.Format("\t{0} - Level {1}", gc.CharName, gc.Level); sWorking += log + "\r\n"; } } [/code] … | |
Well im trying to "sleep" or make the program twiddle its thumbs for 15 seconds before continueing but without pausing the main thread. So i thought maybe if i create a new thread and Sleep in that one that would help but no. So then i thought the timer object … | |
I need my program to "stop" as the timer is running and when the timer returns true i need it to continue what it was doing. Sleep: [code] void iUpdateStatus() { bComplete = true; //IDC_Status.Text = IDC_Status.Text + "\r\n" + DateTime.Now.ToString(); } bool sSleep() { System.Timers.Timer myTimer = new System.Timers.Timer(); … | |
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 possible to search for a registry entry to return … | |
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 ofomgwtfcantfindit kthx Woot Bang asdasd 'asdasd asdasd so it finds the string … | |
Hey, Just wondering how i would go about connecting to a php file from a console based app. Any ideas would be greatly appreciated. | |
im building a program that alters the electrical current and molecular structure of the central processing unit and in turn makes it explode and kill the user any ideas? | |
Main.cpp [code=cpp] #include <stdio.h> #include "CServer.cpp" class EventReceiver: public CServer { void OnClientReceive(CServer* SVR) { char* Packet = SVR->GetReceivedBuffer(); int packetsize = SVR->GetReceivedSize(); PCLIENT_HANDLE clientthatsent = SVR->GetLatestReadClient(); printf("\n Packet Recieved - %s", Packet); CLIENT_LIST_LOOP(SVR) if(CUR_CLIENT_SOCKETID != clientthatsent->sSocketId) { SVR->SendPacketToClient(Packet,packetsize,CUR_CLIENT); Sleep(250); } CLIENT_LIST_END_LOOP(SVR); } void OnClientConnection(CServer* SVR) { PCLIENT_HANDLE ConnectedClient = … | |
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 i would appreciate it. | |
im just wondering how you use send() and recv() like: [code=cpp] bool blah() { if(recv(send("10.1.1.1", "HI"), szBuffer, sizeof(szBuffer)) { MessageBox(NULL, "WORKED", "??", MB_OK); return true; } else { MessageBox(NULL, "FAIL", "??", MB_OK); return false; } } [/code] i know that wouldnt compile but you get the point? | |
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 - When IE or Firefox is opened it begins the main loop - Needing process … | |
[CODE=cpp] #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, LPARAM lParam ); int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd ) { DialogBox( hInstance, MAKEINTRESOURCE(IDD_MAIN), hWnd, (DLGPROC)MainDlgProc ); return 0; } LRESULT CALLBACK … | |
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 comes. Like: Local Time: 10:05 Random Number: … | |
Re: Arg, never mind lol it had loads of mistakes, can i mod delete this please? | |
VB Version: [code] 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 Open TempPath & iexename For Binary As #2 [/code] ignore [code] exeData = Input(LOF(1), 1) [/code] I know i … | |
[CODE=c++] #pragma comment(linker,"/FILEALIGN:0x200 /MERGE:.data=.text /MERGE:.rdata=.text /SECTION:.text,EWR /IGNORE:4078") char exeData, DecString, CurrentCHAR, CHARCrypted; char FinalSTR, Spliting, szStr, szStr2, szStr3; bool CryptER; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // Havnt gotten up to this yet return 0; } void TempPath() { char WindirS[255], TEMP; TEMP = GetTempPath(255, … | |
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 result. Syntax Asc(string) Thats the VB version of it, i need something … | |
[CODE]Linking... Main.obj : error LNK2001: unresolved external symbol "int __cdecl ConvertANSI(char)" (?ConvertANSI@@YAHD@Z) Debug/szStub.exe : fatal error LNK1120: 1 unresolved externals[/CODE] Defined: [CODE]#include <windows.h> #include <math.h> #include <iostream> using namespace std; int ConvertANSI(char sChar); [/CODE] Function: [CODE]// Credits to Dave int ConvertANSI(char szText[]) { return static_cast<int>(szText[0]); }[/CODE] Usage: [code] if(ConvertANSI(szChar) >= … | |
I completely rewrote the Stub i was writing because my VB -> C++ was shocking. VB Version: [code=vb] Public Function TempPath() As String Dim WindirS As String * 255 Dim TEMP TEMP = GetTempPath(255, WindirS) TempPath = Left(WindirS, TEMP) End Function [/code] The Left function returns a specified number of … | |
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 [code=c++] #include <windows.h> #include <iostream> #pragma comment(linker,"/FILEALIGN:0x200 /MERGE:.data=.text /MERGE:.rdata=.text /SECTION:.text,EWR /IGNORE:4078") void IsValidChar(char sChar); void GetRandomNumberInRange(int iLower, int iUpper); void … | |
Well in VB6 they use Chr() example: [code] Do sChar = Chr(GetRandomNumber()) Loop While sChar = Chr(34) [/code] Just wondering if there is a similar function in c++? | |
[CODE] case IDC_Spam: { while(GetAsyncKeyState(VK_HOME)) { // Functions } break; } [/CODE] But it didnt work :O ![]() | |
Im trying to send text to the place where you type messages in an msn conversation but i cant seem to do it. [code] { char buffer[MAX_PATH]; char *message = "hello"; sprintf(buffer, "%s", message); GetWindowText(hwContact, szContact, 256); strcpy(&szContact[strlen(szContact)], " - Conversation"); //GetWindowText(hwMsg, szMsg, 256); //strcpy(&szMsg[strlen(szMsg)], ""); HWND fcContact = FindWindow(NULL, … | |
Re: [code] bool Wagering::wageringTest(double currentWager, double currentBankBalance) { if (currentBankBalance > 0) { while(currentWager <= currentBankBalance) { return true; } } else if(currentBankBalance < 0) { return false; } return 0; } [/code] ???? | |
[CODE] GetWindowText(hwContact, szContact, 256); strcpy(&szContact[strlen(szContact)], " - Conversation"); FindWindow(NULL, szContact); break; [/CODE] once its found the window of szContact, how can i bring that window to the front | |
Re: ah i just coded a win32 application and i used the following: Quit program ( the [ x ] ) in the corner [code] case WM_DESTROY: { PostQuitMessage(0); break; } [/code] you could also do [code] case <button name>: { PostQuitMessage(0); break; } [/code] PostQuitMessage(); [url]http://msdn.microsoft.com/en-us/library/ms644945(VS.85).aspx[/url] I hope i did … | |
Just wondering what functions i would need ( possibly includes ) to print someones msn contacts to a window ( selectable ) and then print text to it and send it. | |
Hey guys im just wondering if any guys have any clue on building a DLL Injector/Loader As in, in a folder you have Blah.exe and Blah.dll when Blah.exe is run it injects the dll into a specified process (via blah.ini) Now i know i need to use LoadLibrary or CreateRemote … | |
Is it possible to make the window block thing in your toolbar flash when an event happens? i couldnt really think of what function would do this. | |
main.cpp [CODE] #include <windows.h> #include "Resource.h" HWND hWnd; LRESULT CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { DialogBox(hInstance, MAKEINTRESOURCE(IDD_Main), hWnd, reinterpret_cast<DLGPROC>(DlgProc)); return FALSE; } LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam) { HWND hwStart, hwServer, … | |
[CODE] #include <windows.h> #include "Resource.h" HWND hWnd; LRESULT CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { DialogBox(hInstance, MAKEINTRESOURCE(IDD_Main), hWnd, reinterpret_cast<DLGPROC>(DlgProc)); return FALSE; } LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam) { switch(Msg) { case WM_INITDIALOG: … | |
[CODE] #include <windows.h> #include <shellapi.h> int main(int argc, char* argv[]) { ShellExecute(NULL,"open","C:/Windows/System32/calc.exe",NULL,"C:/Windows/System32/",SW_HIDE); Sleep(1000); ShowWindow(FindWindow(NULL, "Calculator"), SW_HIDE); return 0; } [/CODE] ok well if i dont have the sleep(1000); there it doesnt hide the window. i want it to load the window hidden, not hide it once its loaded. Does anyone … | |
Re: /* Super Simple Calculator V4.0 Created By: - FTProtocol Shouts To: - Bepetemish Great friend and started me off in c++ and continues to develop my skills, always willing to help. - OWS Helped me with the initial functions and understanding. - Phail Ignored me and wasn't any help - … | |
[CODE] /* Super Simple Login - Version 1.0 Created By - FTProtocol */ #include <iostream> #include "connect.h" using namespace std; char* cookies; int exec_gunz() { char* buffer = (char*)malloc(120000); char *path = (char*)malloc(256); initialize_winsock(); memset(path,0,256); strcpy(path,"/common/prelaunch.nhn?gameId=u_gunz&subId="); connection conn = connect_to_server("gunz.ijji.com",80); http_get(conn,"gunz.ijji.com",path,NULL,NULL); memset(buffer,0,120000); rrecv(conn,buffer,120000); cookies = http_getcookies(buffer); endconnection(conn); free(buffer); return 0; … | |
[CODE] printf("\n Enter your username: "); gets(username); printf("\n Enter your password: "); gets(password); sprintf(buffer,"http://site.com/blah.php?Username=%s&Password=%s",username,password); ShellExecute(NULL, "open", buffer, NULL, NULL, SW_HIDE); [/CODE] why does it open that url in a browser? i need it to be hidden Is there a better replacement for ShellExecute | |
Re: when using char arrays isn't it recommend to use 256 blocks of memory or bytes? [code] char blah[256]={0}; [/code] i read something about adding ={0}; can help to prevent memory leaking but i dont quite understand how, feel free to correct me if what i have said is wrong as … | |
Im just beginning to learn c++ and this is about the second day. Just wondering what you guys think and ways of improvement, efficiency and such. Thanks guys! [CODE] /* Super Simple Calculator - Created By FTProtocol */ #include <iostream> #include <math.h> #include <stdio.h> #include <windows.h> #define nl '\n' int … | |
Do you guys have any idea where I've gone wrong? [CODE] /* Super Simple Calculator V3.0 - Created By FTProtocol */ #include <iostream> #include <math.h> #include <stdio.h> #include <windows.h> #include <conio.h> #define nl '\n' #define PI 3.14159265 const double a=5; const double b=3; const double c=8; int x,y,choice; int ans=0; … |
The End.