zoukankan      html  css  js  c++  java
  • WinCE 7.0 下如何获取全路径文件名的后缀?

    一般大家会自己用字符串处理函数来获取,我以前也是这样做的。
    今天看到一个使用系统 API 获取后缀的方法,使用的是 PathFindExtension()。
    这个函数在 MSDN 的智能设备的帮助中竟然没有,但确实是可以在 WinCE 7.0 下使用的。

    PathFindExtension Function  
    --------------------------------------------------------------------------------  
    Searches a path for an extension.   
    Syntax  
    LPTSTR PathFindExtension(LPCTSTR pPath);  
    Parameters  
    pPath  
    [in] A pointer to a null-terminated string of maximum length MAX_PATH that contains the path that contains the extension for which to search.  
    Return Value  
    Returns the address of the "." preceding the extension within pPath if an extension is found, or the address of the trailing NULL character otherwise.   
  • 相关阅读:
    调用打印预览问题
    html2canvas+Canvas2Image分享海报功能踩坑
    SQL Server – Show/Hide Results Pane in Management Studio 2012
    jQuery
    Sap PI 接口配置
    WebService 错误解决记录
    线程
    HTML和CSS
    C#高编
    MVC3
  • 原文地址:https://www.cnblogs.com/91program/p/5201030.html
Copyright © 2011-2022 走看看