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

/ 9,341评论 / 49905阅读 / 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. Jamesjer说道:

    rexall pharmacy amoxicillin 500mg: amoxicillin in india – amoxicillin 500mg pill

  2. Jamesjer说道:

    buy cheap clomid no prescription: where buy cheap clomid without dr prescription – how to get cheap clomid without a prescription

  3. Jamesjer说道:

    doxycycline with out a rx: cheapest doxycycline 100mg – how to get doxycycline cheap

  4. Dnrtqoh说道:

    Добрый день!
    Купить документ о получении высшего образования вы имеете возможность в нашей компании в Москве.
    ast-diplomas24.ru/kupit-diplom-krasnoyarsk
    Удачи!

  5. Diplomi_sqol说道:

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

  6. GregorySal说道:

    https://indibeti.in is a premier online casino offering a wide array of games including slots, table games, and live dealer options. Renowned for its user-friendly interface and robust security measures, Indibet ensures a top-notch gaming experience with exciting bonuses and 24/7 customer support.

  7. Roberthearp说道:

    купить 2 квартиру новостройке https://kvartiru-kupit43.ru

  8. Timothyzicle说道:

    квартиру новостройку жк купить https://kvartira-new43.ru

  9. Gichardkaf说道:

    whoah this weblog is excellent i really like reading your articles. Stay up the good work! You already know, many persons are hunting around for this info, you could aid them greatly.
    xslot guncel

  10. DavidFex说道:

    The future football star Shabab Al-Ahly https://dubai.shabab-al-ahli-ar.com was born in Dubai in 2000. From a young age, he showed exceptional football abilities and joined the youth academy of one of the UAE’s leading clubs, Shabab Al-Ahly.

  11. Xazrfam说道:

    Привет, друзья!
    Быстрая покупка диплома старого образца: возможные риски
    arusak-diploms-srednee.ru/kupit-diplom-medicinskogo-uchilishha В 

  12. Jamesjer说道:

    paxlovid buy: Paxlovid buy online – paxlovid generic

  13. Manryya说道:

    Здравствуйте!
    Заказать документ о получении высшего образования
    ast-diplomy24.ru/kupit-diplom-voronezh

  14. GeorgeViarl说道:

    In the world of football, Atletico Madrid https://spain.atletico-madrid-ar.com has long been considered the second most important club in Spain after the dominant, Real Madrid.

  15. MichaelDrare说道:

    The fascinating story of Ja Morant’s https://spain.atletico-madrid-ar.com meteoric rise, from status from rookie to leader of the Memphis Grizzlies and rising NBA superstar.

  16. JamesUname说道:

    Galatasaray https://turkey.galatasaray-ar.com is one of the most famous football clubs in Turkiye, with a glorious and eventful history.

  17. StephenDus说道:

    Thanks for the auspicious writeup. It in fact was a entertainment account it. Glance advanced to more added agreeable from you! However, how can we be in contact?
    mustang-online.ru

  18. Lazrtvn说道:

    Привет, друзья!
    Мы изготавливаем дипломы любой профессии по приятным ценам.
    karhu.blueaddlution.com/2024/06/30/купить-диплом-в-серове/

  19. секс с сексуальной училкой sex-s-uchilkami.ru .

  20. Jamesjer说道:

    where to get clomid no prescription: can i order generic clomid tablets – can i get clomid price

  21. Michaelphime说道:

    AC Milan https://italy.milan-ar.com is one of the most successful and decorated football clubs in the world.

  22. Charlesimify说道:

    Ремонт плоской кровли https://remontiruem-krovly.ru в Москве, цена работы за 1 м?. Прайс лист на работы под ключ, отзывы и фото.

  23. Larioriiq说道:

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

  24. StevenSof说道:

    Thai Company Directory https://thaicorporates.com List of companies and business information.

  25. Jamesjer说道:

    buy ciprofloxacin over the counter: cipro for sale – buy cipro without rx

  26. Jamesjer说道:

    buy paxlovid online: paxlovid covid – paxlovid pill

  27. Uazrvzs说道:

    Добрый день!
    Где приобрести диплом по актуальной специальности?
    ekonty.com/blogs/view/58699

  28. Jamesjer说道:

    buy amoxicillin 500mg usa: amoxicillin 500 mg brand name – amoxicillin without prescription

  29. TimothySkymn说道:

    Real Madrid’s https://spain.real-madrid-ar.com history goes back more than a century. The club was founded in 1902 by a group of football enthusiasts led by Juan Padilla

  30. MichaelLix说道:

    FC Bayern Munich (Munich) https://germany.bayern-munchen-ar.com is one of the most famous and recognized football clubs in Germany and Europe

  31. RandallWhirm说道:

    Arsenal https://england.arsenal-ar.com is one of the most famous and successful football clubs in the history of English football.

  32. Yrefutf说道:

    Здравствуйте!
    Заказать диплом университета.
    macadamlab.ru/wiki/index.php?title=??????????_?_???????:_???????_???????_???_??????_????????_???????
    Успешной учебы!

  33. CarrollSox说道:

    bareboat charter Montenegro Montenegro rent boat

  34. ThomasInace说道:

    http://doxycyclinedelivery.pro/# doxycycline prescription australia

  35. Sazrauy说道:

    Здравствуйте!
    Мы изготавливаем дипломы любой профессии по приятным тарифам. Стоимость будет зависеть от выбранной специальности, года получения и образовательного учреждения. Всегда стараемся поддерживать для покупателей адекватную политику цен. Важно, чтобы дипломы были доступны для большого количества наших граждан.
    7prbookmarks.com/story17111334/купить-диплом-сантехника

  36. Dnrtqzw说道:

    Здравствуйте!
    Заказать документ ВУЗа вы можете в нашей компании.
    diplomasx.com/kupit-diplom-ekaterinbur
    Успехов в учебе!

  37. Mazrakj说道:

    Здравствуйте!
    Приобрести документ университета вы сможете у нас в Москве. Мы предлагаем документы об окончании любых университетов Российской Федерации. Вы получите необходимый диплом по любым специальностям, включая документы образца СССР. Даем 100% гарантию, что в случае проверки документа работодателем, подозрений не возникнет.
    Мы изготавливаем дипломы психологов, юристов, экономистов и прочих профессий по приятным тарифам. Стоимость зависит от определенной специальности, года получения и образовательного учреждения. Всегда стараемся поддерживать для заказчиков адекватную политику цен. Важно, чтобы документы были доступными для большого количества наших граждан.
    http://www.maleus.ru/index.php/component/tag/эволюция
    Будем рады вам помочь!

  38. Lazrepb说道:

    Добрый день!
    Мы готовы предложить дипломы психологов, юристов, экономистов и других профессий по невысоким ценам.
    http://www.horn-fahrzeugaufbereitung.de/купить-дипломы-олимпиад.html

  39. Приветствую. Подскажите, где почитать разные статьи о недвижимости? Сейчас читаю https://konditsioneri-shop.ru

  40. Diplomi_pyst说道:

    купить диплом в кирово-чепецке diploms-x.com .

  41. Jamesjer说道:

    buy cipro without rx: buy ciprofloxacin – buy generic ciprofloxacin

  42. ThomasInace说道:

    https://amoxildelivery.pro/# generic amoxicillin

  43. ThomasInace说道:

    http://ciprodelivery.pro/# buy generic ciprofloxacin

  44. Jamesjer说道:

    can i buy generic clomid now: cost cheap clomid no prescription – can you buy clomid without dr prescription

  45. Mazrbhe说道:

    Добрый день!
    Как безопасно купить диплом колледжа или ПТУ в России, что важно знать
    http://www.hinterhof.ch/de/2024/06/30/купить-диплом-урфу/

发表回复

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