Local Atom String Table

View Code
#include <windows.h>
#include <stdio.h>

int main()
{
    CHAR szAtom[32] = "ApexDingdianweifeng";
    
    ATOM a1 = FindAtom(szAtom);

    if(a1 == 0)
    {
        printf("now the local not add\n");
    }

    else
    {
        printf("now the local added\n");
    }


    ATOM aLable = AddAtom(szAtom);

    a1 = FindAtom(szAtom);

    if(a1 == 0)
    {
        printf("now the local not add\n");
    }
    else
    {
        printf("now the local added\n");
    
    }
    

    return 0;
    
}

 

posted on 2013-02-20 18:27  All IN  阅读(129)  评论(0)    收藏  举报

导航