zoukankan      html  css  js  c++  java
  • 开始学习windows api了,写个hello,world纪念一下

    代码
    #include <windows.h>
    #include 
    <tchar.h>
    int  _tmain(int argc,LPTSTR argv[])
    {
        HANDLE hFile 
    = CreateFile(TEXT("d:\\test.txt"),
            GENERIC_WRITE,
    0,NULL,
            CREATE_ALWAYS,
            FILE_ATTRIBUTE_NORMAL,NULL);


        
    if(hFile != INVALID_HANDLE_VALUE) 
        {
            DWORD writeBytes 
    = 0;
            PTSTR text 
    = TEXT("hello,world");
            DWORD len 
    = strlen(text);
            WriteFile(hFile,text,len,
    &writeBytes,NULL);
            CloseHandle(hFile);
        }
    }


  • 相关阅读:
    副本集-Replica Sets
    SpringBoot整合SpringData MongoDB
    Auth认证
    Form
    flask一些插件
    SQLAlchemy
    session
    上下文
    flask路由
    Flask中间件
  • 原文地址:https://www.cnblogs.com/xhan/p/1766872.html
Copyright © 2011-2022 走看看