Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

Thilek

@Thilek
About
Posts
67
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Connect to IRC server
    T Thilek

    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..

    C / C++ / MFC csharp visual-studio sysadmin tutorial question

  • Connect to IRC server
    T Thilek

    Hi 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.

    C / C++ / MFC csharp visual-studio sysadmin tutorial question

  • listbox not visible in thread
    T Thilek

    its ok guys... i manage to solve that.. thanks anyway... :) cheers.....

    Managed C++/CLI sqlite graphics docker question learning

  • listbox not visible in thread
    T Thilek

    i 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

    Managed C++/CLI sqlite graphics docker question learning

  • Form refresh... and accept click on button while performing other task...
    T Thilek

    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

    Managed C++/CLI question help career

  • Form refresh... and accept click on button while performing other task...
    T Thilek

    how to run on threat i am new to this.. kindly gv me some example plz...

    Managed C++/CLI question help career

  • Pause button.....
    T Thilek

    hm.... how can pause them since when i am running the scan.. the form does not accept any events.... :)

    Managed C++/CLI help question database graphics regex

  • Form refresh... and accept click on button while performing other task...
    T Thilek

    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...

    Managed C++/CLI question help career

  • string append with \ symbol
    T Thilek

    :laugh: its so funny that i been breaking my head for days with this... thanks a lot.. u saved me...

    C / C++ / MFC question help

  • string append with \ symbol
    T Thilek

    thanks ya...

    C / C++ / MFC question help

  • string append with \ symbol
    T Thilek

    yes....

    C / C++ / MFC question help

  • string append with \ symbol
    T Thilek

    when 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....

    C / C++ / MFC question help

  • string append with \ symbol
    T Thilek

    hi 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...

    C / C++ / MFC question help

  • Pause button.....
    T Thilek

    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++...

    Managed C++/CLI help question database graphics regex

  • Pause button.....
    T Thilek

    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

    Managed C++/CLI help question database graphics regex

  • reader.Read() to string array
    T Thilek

    thanks bro.. its working :)

    Managed C++/CLI c++ database sqlite data-structures help

  • Int64 minus....
    T Thilek

    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

    Managed C++/CLI c++ database help question

  • reader.Read() to string array
    T Thilek

    i 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''

    Managed C++/CLI c++ database sqlite data-structures help

  • reader.Read() to string array
    T Thilek

    Hi 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 ;)

    Managed C++/CLI c++ database sqlite data-structures help

  • Mysql Remote login
    T Thilek

    hi 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

    Managed C++/CLI help csharp c++ database mysql
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups