Thanks guys... i manage to write the program in JAVA since i did socket programming in JAVA before.... i will try to work on this first.. once its could be done as i wanted, then i will do it with C++ since i wanted the program to be in C++ :) Thanks a lot with your ideas and suggestions... It was all about socket to connect to IRC... never know it will be easy as this.... Really helped me..
Thilek
Posts
-
Connect to IRC server -
Connect to IRC serverHi guys, I would like to create a simple program that can connect to a irc server and then send message on the main.. Can anyone give me ideas how to do it.... i have seach for some simple code but then could nt run on my visual studio since its showing so many errors... can anyone given some simple codes to connect ? Thank you.
-
listbox not visible in threadits ok guys... i manage to solve that.. thanks anyway... :) cheers.....
-
listbox not visible in threadi guys , i am running a threat which will scan for worm in given directories.. currently its scanning but it supposed to show the scanned files in the listbox.. but its not showing.. how can i make it to show on list box ya.. Below is my coding :-
#pragma once
#include "Form1.h"
#include "QUARANTINE.h"
#include "Scanner.h"using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data::SQLite;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Collections::Generic;
using namespace System::IO;
using namespace System::Threading;char status ='S';
namespace Enhan_GUI {
/// <summary> /// Summary for autoscan /// /// WARNING: If you change the name of this class, you will need to change the /// 'Resource File Name' property for the managed resource compiler tool /// associated with all .resx files this class depends on. Otherwise, /// the designers will not be able to interact properly with localized /// resources associated with this form. /// </summary> public ref class autoscan : public System::Windows::Forms::Form { public: autoscan(void) { InitializeComponent(); // //TODO: Add the constructor code here // } int Data; protected: /// <summary> /// Clean up any resources being used. /// </summary> ~autoscan() { if (components) { delete components; } } private: System::Windows::Forms::Button^ cmdClose; protected: private: System::Windows::Forms::Label^ label1; private: System::Windows::Forms::Button^ cmdPause; private: System::Windows::Forms::GroupBox^ gbxfunction; private: System::Windows::Forms::Button^ cmdStart; private: System::Windows::Forms::Label^ label2; private: System::Windows::Forms::Label^ label3; private: System::Windows::Forms::PictureBox^ pictureBox1; private: /// <summary> /// Required designer variable. /// </summary> System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentMode -
Form refresh... and accept click on button while performing other task...Below is my coding.. i not sure where to put the thread....
#pragma once
#include "QUARANTINE.h"
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;namespace Enhan_GUI {
/// <summary> /// Summary for manscan /// /// WARNING: If you change the name of this class, you will need to change the /// 'Resource File Name' property for the managed resource compiler tool /// associated with all .resx files this class depends on. Otherwise, /// the designers will not be able to interact properly with localized /// resources associated with this form. /// </summary> public ref class manscan : public System::Windows::Forms::Form { public: manscan(void) { InitializeComponent(); // //TODO: Add the constructor code here // } protected: /// <summary> /// Clean up any resources being used. /// </summary> ~manscan() { if (components) { delete components; } } private: System::Windows::Forms::PictureBox^ pictureBox1; protected: private: System::Windows::Forms::GroupBox^ gbxfunction; private: System::Windows::Forms::Button^ cmdPause; private: System::Windows::Forms::Button^ cmdStart; private: System::Windows::Forms::Label^ label2; private: System::Windows::Forms::Button^ cmdClose; private: System::Windows::Forms::Label^ label1; private: System::Windows::Forms::Label^ label3; private: /// <summary> /// Required designer variable. /// </summary> System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(manscan::typeid));
this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
this->gbxfunction = (gcnew System::Windows::Forms::GroupBox());
this->cmdPause = (gcnew System::Windows::Forms::Button());
this->cmdStart = (gcnew System::Windows::Forms::Button());
this->label2 = (gcnew System::Windows::Forms::Label());
this->cmdClose = (gcnew System::Window -
Form refresh... and accept click on button while performing other task...how to run on threat i am new to this.. kindly gv me some example plz...
-
Pause button.....hm.... how can pause them since when i am running the scan.. the form does not accept any events.... :)
-
Form refresh... and accept click on button while performing other task...hi guys, i am having program when i minimize then maximize a form that running a job.. My program will scan for worms in the selected directories.. when i click start it will start scanning .... while scanning it will add the scanned file names into a listbox.... if i minimize the form or open anothe windows or application (lets say my document)then click back on the form , its not showing the contents on the list box.. the list box is empty till the whole scanning process is completed... How can i make it show the list (refresh) even after i minimize it and show it back.... and my second question is how i can allow the form to accept click on others buttons while its still scanning.. this is to allow me to stop a the scanning.... if i click on close it waits till the scanning to complete before it close... Kindly help me...
-
string append with \ symbol:laugh: its so funny that i been breaking my head for days with this... thanks a lot.. u saved me...
-
string append with \ symbolthanks ya...
-
string append with \ symbolyes....
-
string append with \ symbolwhen i use C:\Private_Folder\forGetz its not seaching or getting the file name.. unless i use C:\\Private_Folder\\forGetz or C://Private_Folder//forGetz then its working :( but when i use folder browser dialog , i will be getting as C:\Private_Folder\forGetz....
-
string append with \ symbolhi guys, i am developing a worm scanner.. i have to choose the directories from Folder Browser Dialog.. when i does that i will get the directory C:\NVIDIA\Win2KXP but i need to convert it to C:\\NVIDIA\\Win2KXP so that i can get the file names in the that directory using ListFiles...... since the symbol \ i could not put \ between "" and '' how can i solve this ya?? help me plz...
-
Pause button.....well i am doing this program in .net... the entire program is done in managed C++ but there are some i had to use normal c++ since i am new to managed c++...
-
Pause button.....hi guys, i am working on a worm scanner... most of the modules are done... but there is a problem regarding the pause button.. i not sure how to do it... below is my coding :-
vector files;
wstring directory =(L"C:\\Windows\\system32");
if (ListFiles(directory, L"*", files))
{
for (vector::iterator it = files.begin(); it != files.end(); ++it)
{
keepname = WStringToString(it->c_str());
searchkmp();
int index = listBox1->Items->Add(String::Concat(gcnew String(it->c_str())));
listBox1->SelectedIndex = index;
count++;
listBox1->Update();} }
when user click on start the program will get the filenames... each time it gets the filename it will call for the string matching function (searchkmp()) to match the for signature... My question is how can i make a pause function in this program ya.. when user click on the pause the program should pause and when user click back on the same button it will continue.... kindly help me ya... regards, Thilek
-
reader.Read() to string arraythanks bro.. its working :)
-
Int64 minus....Hi guys, I have a question ya... minus a int64 with another int64.. below is my coding :-
System::Int64^ limit1; System::Int64^ limit2; System::Int64^ diff; diff = limit1-limit2;
the limit1 and limit2 values are the count of the records in a database. but the diff-limit1-limit2; is not working. i am new to managed c++.kindly help me... Regards, Thilek
-
reader.Read() to string arrayi try using this and i got the following errors :-
c:\documents and settings\thilek\desktop\sparta test\trial.cpp\Scanner.cpp(114) : error C2065: 'List' : undeclared identifier
c:\documents and settings\thilek\desktop\sparta test\trial.cpp\Scanner.cpp(114) : error C2275: 'System::String' : illegal use of this type as an expression
c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : see declaration of 'System::String'
c:\documents and settings\thilek\desktop\sparta test\trial.cpp\Scanner.cpp(114) : error C2059: syntax error : '>'
c:\documents and settings\thilek\desktop\sparta test\trial.cpp\Scanner.cpp(143) : error C2065: 'stringList' : undeclared identifier
c:\documents and settings\thilek\desktop\sparta test\trial.cpp\Scanner.cpp(143) : error C2227: left of '->Add' must point to class/struct/union/generic type
type is ''unknown-type''
Scanner.cpp
.\Scanner.cpp(114) : error C2065: 'List' : undeclared identifier
.\Scanner.cpp(114) : error C2275: 'System::String' : illegal use of this type as an expression
c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : see declaration of 'System::String'
.\Scanner.cpp(114) : error C2059: syntax error : '>'
.\Scanner.cpp(143) : error C2065: 'stringList' : undeclared identifier
.\Scanner.cpp(143) : error C2227: left of '->Add' must point to class/struct/union/generic type
type is ''unknown-type'' -
reader.Read() to string arrayHi guys, i am writing a program that get data from a sqlite database and add the records to a string array. But i not sure how to add to the string array. i search few ways on net and try out, but it didnt work. Below is my coding :
string signature_array[100];
int count =0;SQLiteConnection ^connection = gcnew SQLiteConnection("Data Source=test.db3;Pooling=True");
connection->Open();
SQLiteCommand ^cmd = gcnew SQLiteCommand(connection);
SQLiteDataReader ^reader = cmd->ExecuteReader();while (reader->Read())
{
signature_array[count]=reader->GetString(2);
count++;
}
reader->Close();kindly help me.. i am using visual C++ pro 2008... Thank you. Regards, Thilek ;)
-
Mysql Remote loginhi guys, I have a program that connect to mysql database in a remote location(speedhosting.co.cc). but when ever i execute the program it shows error. connection state : driver closed undefined value data reader = undefined value I am using VC++ .net to for this program and (using namespace MySql::Data::MySqlClient) Kindly help me plz. Thank you. Regards, Thilek