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
N

nhatvhm

@nhatvhm
About
Posts
14
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to built data structure Sparse Matrix using Hash Table??
    N nhatvhm

    Anyone can help me for example source code or idea to built data structure Sparse Matrix using Hash Table (by C++) Thanks your help

    C / C++ / MFC tutorial c++ data-structures cryptography help

  • How to get the fullpath from argument of my application (VS C++ 2005)?
    N nhatvhm

    My application used to argument (with argv[1]: filename). How to get fullpath from filename via argv[1]. For example, [myapp.exe input.txt]. :confused:

    C / C++ / MFC tutorial c++ visual-studio question

  • How to convert "D:\Documents\delay.txt" to "D:\\Documents\\delay.txt"?
    N nhatvhm

    char *strFilePath = new char[1024];
    strFilePath = "D:\Documents\delay.txt";

    So, how to replay('\','\\'). I'm used C language.

    C / C++ / MFC help tutorial question

  • How to convert "D:\Documents\delay.txt" to "D:\\Documents\\delay.txt"?
    N nhatvhm

    Hi all, I'm trying convert "D:\Documents\delay.txt" to "D:\\Documents\\delay.txt". Anybody can help me? Thank so much!

    C / C++ / MFC help tutorial question

  • How to search data on DataGridView?
    N nhatvhm

    Hi, everyone Now, I'm use to data paging in DataGridView. When I search data on DataGridView that is just show data in present page. I would like get all data rows of DataTable that is being data paging on DataGridView. For example: pagesize = 5, DataTable have two pages. data in 1st page:

    name age
    John 21
    N.John 20
    Nancy 20
    Tomath 21
    Jan 22

    and data in 2nd page:

    name age
    Jany 20
    Alpha 21
    Don 22
    Bony 20
    Tomy 22

    One-page is present page. I'm beginning search data at "name" column as 'Tom'. It is just show one row in DataGridView. This data is correct when it show two rows in DataGridView. That is all. Did the way solve this problem? Can anyone help me?:confused:

    C# help tutorial question

  • How to search data on DataGridView that is being data paging? [modified]
    N nhatvhm

    Now, I'm use to data paging in DataGridView. When I search data on DataGridView that is just show data in present page. Have the way solve this problem? I would like get all data rows of DataTable that is being data paging on DataGridView. For example: pagesize = 5, DataTable have two pages. data in 1st page:

    name age
    John 21
    N.John 20
    Nancy 20
    Tomath 21
    Jan 22

    and data in 2nd page:

    name age
    Jany 20
    Alpha 21
    Don 22
    Bony 20
    Tomy 22

    One-page is present page. I'm beginning search data at "name" column as 'Tom'. It is just show one row in DataGridView. This data is correct when it show two rows in DataGridView. That is all. Can anyone help me?:confused:

    modified on Wednesday, September 10, 2008 7:04 PM

    C# help tutorial question

  • Differently another way to set value for element in XML?
    N nhatvhm

    Great! Thank you so much :)

    C# xml tutorial question announcement learning

  • Differently another way to set value for element in XML?
    N nhatvhm

    Hi , Recently i tried to get an xml file that contains many element with no values and set their values.

    <Book>
    <Auther>
    <Name></Name>
    <Age></Age>
    </Auther>
    <Publicity>
    <Year></Year>
    </Publicity>
    </Book>

    this xml Element elements has no values and i want to set their values and save the xml string to file.I used to ... mNodeChild = mDoc.CreateElement("Name");``mNodeChild.Value="John";. Although, this line code is correct syntax. But when this program write to XML file that is message announcement {Cannot set a value on node type 'Element'} do someone knows how to do it?

    C# xml tutorial question announcement learning

  • How to convert one byte to string?
    N nhatvhm

    In MSDN guide convert array bytes to string, here code: Encoding.UTF8.GetString(byte[] bytes)VS2005 doesn't support convert one byte to string. Anybody can I help me? or for example how to convert one byte to string. Although, may be use to Convert.ToString(byte) is correct, but I don't think so. Except, differently another way Thank one so much!!!!

    C# tutorial data-structures help question

  • How to get another DataTable from original DataTable?
    N nhatvhm

    I think you mistake and omit line dt = data.Clone() before foreach(DataRow dr in data.Rows)

    C# help tutorial question

  • How to get another DataTable from original DataTable?
    N nhatvhm

    I think of my explain very clearly for you. anyway, thank you so much. I get it and i get answer, have a good day!

    C# help tutorial question

  • How to get another DataTable from original DataTable?
    N nhatvhm

    Exactly, I think so,

    C# help tutorial question

  • How to get another DataTable from original DataTable?
    N nhatvhm

    Here, it is source code

    public DataTable SearchField(string strSearch, string strFieldName)
    {
    DataTable dt = new DataTable();

            foreach (DataRow dr in data.Rows)
            {
                string strT = dr\[strFieldName\].ToString();
                if (stringSearchMP(strSearch, strT) != -1)
                {
                    DataRow row = dr;
                    dt.ImportRow(row);
                }
            }
            return dt;
        }
    

    I don't know to cause why my function return null. Because, DataGridView.DataSource = dt can't show data. Anyone help me?:confused: Anyway, thanks so much!!!

    C# help tutorial question

  • Make virtual method in my project
    N nhatvhm

    //*****************************Main Program ****************************** #include #include #include #include "ReadWrite.h" #include "Graph.h" void main(int doiso, char *thamso[]) { GRAPH G; int rf=G.ReadData(thamso[1]); if(!rf) printf("Khong doc duoc file!\n"); else { printf("Doc duoc file!\n"); G.GraphAlgorithm(); int wf=G.WriteData(thamso[2]); if(wf) printf("Ghi file thanh cong!"); } getch(); } //******************************Graph.cpp********************************* #include #include #include "Graph.h" int GRAPH::ReadData(char *FileName) { FILE *fp=fopen(FileName,"rt"); if(!fp) return 0; fscanf(fp,"%d",&n); B=new unsigned char *[n]; unsigned char *temp=new unsigned char [n]; for(int d=0; d //***********************Graph.h************************************** `class GRAPH { private: int n; int label; int *LabelLT; unsigned char **B; public: int ReadData(char *FileName); const int WriteData(char *FileName); void GraphAlgorithm(); void Visit(int i); };` Help me, make virtual method in my project! <(-|-)> "To be or not to be"

    C / C++ / MFC c++ data-structures help
  • Login

  • Don't have an account? Register

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