Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/22/2020 in all areas

  1. Jos

    MemoryPause/Resume

    You are permanently banned as we do not need this attitude around here.
    4 points
  2. As the WebDriver UDF - Help & Support thread has grown too big, I started a new one. The original thread can be found here.
    1 point
  3. The Scite console hasto be switched to UTF8 in order to display UTF8 properly. So use MsgBox to display Unicode easily. Which DB engine do you use which doesn't have UTF16 output?
    1 point
  4. Jos

    MemoryAddressProblem

    Ok... this is not acceptable here so you will not be allowed in our forums anymore. Jos
    1 point
  5. Func _CodepageToString($sCP, $iCodepage = Default) If $iCodepage = Default Then $iCodepage = 65001 Local $tText = DllStructCreate("byte[" & StringLen($sCP) & "]") DllStructSetData($tText, 1, $sCP) Local $aResult = DllCall("kernel32.dll", "int", "MultiByteToWideChar", "uint", $iCodepage, "dword", 0, "struct*", $tText, "int", StringLen($sCP), _ "ptr", 0, "int", 0) Local $tWstr = DllStructCreate("wchar[" & $aResult[0] & "]") $aResult = DllCall("kernel32.dll", "int", "MultiByteToWideChar", "uint", $iCodepage, "dword", 0, "struct*", $tText, "int", StringLen($sCP), _ "struct*", $tWstr, "int", $aResult[0]) Return DllStructGetData($tWstr, 1) EndFunc ;==>_CodepageToString Func _StringToCodepage($sStr, $iCodepage = Default) If $iCodepage = Default Then $iCodepage = 65001 Local $aResult = DllCall("kernel32.dll", "int", "WideCharToMultiByte", "uint", $iCodepage, "dword", 0, "wstr", $sStr, "int", StringLen($sStr), _ "ptr", 0, "int", 0, "ptr", 0, "ptr", 0) Local $tCP = DllStructCreate("char[" & $aResult[0] & "]") $aResult = DllCall("Kernel32.dll", "int", "WideCharToMultiByte", "uint", $iCodepage, "dword", 0, "wstr", $sStr, "int", StringLen($sStr), _ "struct*", $tCP, "int", $aResult[0], "ptr", 0, "ptr", 0) Return DllStructGetData($tCP, 1) EndFunc ;==>_StringToCodepage Here you are.
    1 point
  6. You will definitely find no argument from anyone here on that topic. Whether that is a good thing or not is a different story.
    1 point
  7. I guess I do not understand why you're even attempting to learn c#. 😕 Most people who join this forum follow a pretty linear path of progression: after 6 months to a year of asking questions they reach a level of knowledge and experience that allows them to begin contributing by answering more than they ask. You, after 9 full years on this forum, are not only still asking - you're still asking basic questions (one of your most recent was simply having to be told you had unbalanced parentheses). Why - with the difficulty you seem to have taking on even the simplest tasks in AutoIt - are you trying to master a language that is magnitudes more difficult? Why not master one before you try to move on?
    1 point
  8. Jos

    try to learn c#

    @faustf , for the record... We will not allow this forum to become an "fausrf dumps all c# questions like he did with au3"! When you need real support learning c#, you will go somewhere where that is much more appropriate. Agreed? Jos
    1 point
  9. one more thing, how did you ever get it to compile? if you want help from me in future, post your code and give me error messages that are generated by the compiler. i use msbuild or visual studio--which uses msbuild, you can easily output to log files and paste results. if you continue your behavior you won't receive help from me any more. it shows you lack consideration from those you wish to elicit some help, and that bothers me a great deal.
    1 point
×
×
  • Create New...