[c++]Windows的函数后面加’A‘或’W‘的含义

/ 9,342评论 / 49918阅读 / 0点赞

含义

LPCWSTR stringToLPCWSTR(const std::string& orig)
{
    size_t origsize = orig.length() + 1;
    const size_t newsize = 100;
    size_t convertedChars = 0;
    wchar_t *wcstring = (wchar_t *)malloc(sizeof(wchar_t)*(orig.length()-1));
    mbstowcs_s(&convertedChars, wcstring, origsize, orig.c_str(), _TRUNCATE);
    return wcstring;
}
ShellExecuteA(NULL, "open", "https://blog.coolight.cool/", NULL, NULL, SW_SHOWNORMAL);

string str = "https://blog.coolight.cool/";
ShellExecute(NULL, _T("open"), stringToLPCWSTR(str), NULL, NULL, SW_SHOWNORMAL);

const char link_char[] = "https://blog.coolight.cool/";
ShellExecute(NULL, _T("open"), stringToLPCWSTR(string(link_char)), NULL, NULL, SW_SHOWNORMAL);

ShellExecute(NULL, L"open", CA2W("https://blog.coolight.cool/"), NULL, NULL, SW_SHOWNORMAL);

常见编码格式

见另一篇文章:常见编码格式 / 字节序(大端 / 小端)/ 带BOM

  1. Sazrkim说道:

    Добрый день!
    Полезные советы по безопасной покупке диплома о высшем образовании
    all-smeta.ru/?sid=0e06dd097aaff7962ef8ae8c885ef815
    Рады помочь!

  2. ThomasInace说道:

    http://doxycyclinedelivery.pro/# doxycycline 100mg best price

  3. Jamesjer说道:

    amoxicillin online canada: buy amoxicillin online with paypal – buy amoxicillin 500mg capsules uk

  4. Lazrteb说道:

    Добрый день!
    Купить диплом любого ВУЗа.
    c904581v.beget.tech/2024/07/04/kak-podobrat-nadezhnyy-internet-magazin-s-shirokim-vyborom-diplomov.html

  5. Jamesjer说道:

    buy cipro: ciprofloxacin over the counter – ciprofloxacin mail online

  6. Dnrtfes说道:

    Привет!
    Приобрести документ о получении высшего образования можно у нас в Москве.
    ast-diplom.com/kupit-diplom-sankt-peterburg
    Хорошей учебы!

  7. ThomasInace说道:

    https://ciprodelivery.pro/# buy cipro online

  8. Uazrqlt说道:

    Привет!
    Где купить диплом специалиста?
    http://www.dizalty.com/read-blog/67606

  9. Diplomi_xwol说道:

    Привет!
    Приобрести документ о получении высшего образования можно у нас.
    asxdiplomik.com/kupit-diplom-bakalavra-ili-specialista 

  10. ThomasInace说道:

    http://clomiddelivery.pro/# can i get generic clomid without rx

  11. Diplomi_ecst说道:

    купить дипломы о высшем образовании цена люкс diploms-x.com .

  12. Jeffreyquime说道:

    Manny Pacquiao https://filipino-boxer.manny-pacquiao-ar.com is one of the most prominent boxers in the history of the sport.

  13. Jamesjer说道:

    ciprofloxacin 500 mg tablet price: antibiotics cipro – antibiotics cipro

  14. HerbertSed说道:

    Muhammad Ali https://american-boxer.muhammad-ali-ar.com is perhaps one of the most famous and greatest athletes in the history of boxing.

  15. Keithdoure说道:

    Mike Tyson https://american-boxer.mike-tyson-ar.com one of the most famous and influential boxers in history, was born on June 30, 1966 in Brooklyn, New York.

  16. Jamesjer说道:

    doxycycline online without prescription: doxycycline 50mg – doxycycline tablets 100mg

  17. ThomasInace说道:

    http://ciprodelivery.pro/# cipro ciprofloxacin

  18. Jamesjer说道:

    doxycycline capsules 50mg 100mg: doxycycline in usa – pharmacy prices for doxycycline

  19. Lazrcgt说道:

    Добрый день!
    Мы изготавливаем дипломы любой профессии по выгодным ценам.
    http://www.greendoorkitchen.com/2024/06/25/диплом-университета-купил/

  20. Lazrisc说道:

    Добрый день!
    Где заказать диплом специалиста?
    Заказать диплом о высшем образовании.
    lolipopnews.ru/kupite-diplom-i-zabudte-o-studencheskih-dolgih-nochah

  21. Cazryyc说道:

    Добрый день!
    Мы предлагаем документы техникумов, расположенных на территории всей РФ. Вы имеете возможность купить качественный диплом за любой год, включая сюда документы старого образца. Дипломы и аттестаты делаются на “правильной” бумаге высшего качества. Это позволяет делать настоящие дипломы, которые не отличить от оригинала. Они будут заверены необходимыми печатями и подписями.
    secure.smore.com/n/x031d-russian-diplom

  22. ThomasInace说道:

    https://amoxildelivery.pro/# amoxicillin 500mg capsules price

  23. BryanScath说道:

    Michael Jordan https://chicago-bulls.michael-jordan-ar.com is one of the greatest basketball players of all time, whose career with the Chicago Bulls is legendary.

  24. Stevennup说道:

    дизайн интерьера торрент https://dizayn-interera-doma.ru

  25. Diplomi_zzmn说道:

    купить диплом о среднем образовании в липецке ast-diploms.com .

  26. Yrefmed说道:

    Привет, друзья!
    Заказать диплом любого университета.
    ros.listbb.ru/viewtopic.php?f=2&t=523
    Хорошей учебы!

  27. Edwinimale说道:

    The Formula One World Championship https://world-circuit-racing-championship.formula-1-ar.com, known as the Formula Championship in motor racing, is the highest tier of professional motor racing.

  28. ChrisWap说道:

    After some difficult years in the late 2010s, Manchester United https://england.manchester-united-ar.com returned to greatness in English football by 2024.

  29. ThomasInace说道:

    http://doxycyclinedelivery.pro/# doxycycline 250 mg

  30. Jamesjer说道:

    clomid generic: can you get generic clomid without rx – can you buy cheap clomid for sale

  31. Sazrwgg说道:

    Здравствуйте!
    Легальная покупка диплома ВУЗа с сокращенной программой обучения
    opengadjet.ru/legkiy-sposob-poluchit-diplom-byistro-i-prosto
    Всегда вам поможем!

  32. ThomasInace说道:

    https://paxloviddelivery.pro/# paxlovid cost without insurance

  33. Jamesjer说道:

    buy cipro online without prescription: ciprofloxacin – cipro pharmacy

  34. Robertphits说道:

    Jennifer Lopez https://lets-get-loud.jenniferlopez-ar.com was born in 1969 in the Bronx, New York, to parents who were Puerto Rican immigrants.

  35. ThomasInace说道:

    http://doxycyclinedelivery.pro/# doxycycline 40 mg generic cost

  36. KennethRorie说道:

    When Taylor Swift https://shake-it-off.taylor-swift-ar.com released “Shake It Off” in 2014, she had no idea how much the song would impact her life and music career.

  37. Dnrtyvb说道:

    Привет!
    Приобрести документ института можно в нашей компании в столице.
    diplomyx24.ru/otzyvy
    Успешной учебы!

  38. Robertlot说道:

    Priyanka Chopra https://baywatch.priyankachopra-ar.com is an Indian actress, singer, film producer and model who has achieved global success.

  39. MatthewBup说道:

    Liverpool https://england.liverpool-ar.com holds a special place in the history of football in England.

  40. Raymondjoirl说道:

    Автомобили Hongqi https://hongqi-krasnoyarsk.ru в наличии – официальный дилер Hongqi Красноярск

  41. Lazrwol说道:

    Привет!
    Где заказать диплом по актуальной специальности?
    Заказать диплом любого университета.
    chrstms.ru/club/user/11503/blog/11039/

  42. ThomasInace说道:

    https://amoxildelivery.pro/# amoxicillin 250 mg

  43. Lariorewb说道:

    Покупка диплома о среднем полном образовании: как избежать мошенничества?
    ast-diplom.com/kupit-diplom-rostov-na-donu

  44. Jamesjer说道:

    buy generic ciprofloxacin: cipro for sale – where to buy cipro online

  45. Diplomi_isol说道:

    Здравствуйте!
    Купить документ о получении высшего образования можно у нас в столице.
    ast-diploms.com/kupit-diplom-omsk

  46. Jamesjer说道:

    80 mg doxycycline: buy doxycycline 500mg – doxycycline 100mg cost australia

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注