Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/09/2022 in all areas

  1. Hi markyrocks Just downloaded the autoitdll beta .01.zip from your last post and ran the dummyscript.au3 found in it I tried it on 10 elements (Global $size = 10) but it returned an @error 3 ("function" not found in the DLL file) : $result = DllCall($dll,"handle:cdecl","findArray","int",5,"int",0); If @error Then Exit Msgbox(0, "DllCall", "error " & @error & " occured") ; added that line I notice there is a zip file within the zip (autoitdll.zip within autoitdll beta .01.zip) Both dll's in the zip files are the same. But both dllmain.cpp aren't the same at all : one contains the function findArray, the other one doesn't. Could it be possible that the dll needs to be recompiled with the most recent dllmain.cpp (the one containing the function findArray ?
    1 point
  2. Nine

    Can't find my array?

    If you cannot debug it by yourself, you will need to provide the file ($request) here. And most importantly, make the script runable to us. Then we will be able to efficiently help you, cause right now it is just a guessing game...
    1 point
  3. @markyrocks : thanks for the update in the initial post of 1st page (which includes a very rapid sort on 1D arrays of floats, doubles etc...) I had to change 1 line in the updated AutoIt script or the sort goes wrong when it comes to integers (all values returned = 0) Your update : Func EnumToType($Enum) if $Enum>0 And $Enum<12 Then return $TYPE_[$Enum] endIf     return -1 EndFunc ConsoleWrite would show something goes wrong : $sType = 0   EnumToType($sType) = -1 This should fix it : Func EnumToType($Enum) if $Enum>=0 And $Enum<12 Then ; 0 for $INT32 return $TYPE_[$Enum] endIf return -1 EndFunc ConsoleWrite would then correctly display : $sType = 0   EnumToType($sType) = int And the integer values returned are now correctly sorted. Note: in case someone wants to display the results (unsorted, then sorted) using _ArrayDisplay, please consider using the last beta version of _ArrayDisplay which uses a virtual listview. It will display the 100.000 elements at the speed of light (thanks to @LarsJ for the initial idea and @jpm for the coding)
    1 point
  4. Sorry lol I totally missed the fact that the dll wasn't included. Wow duh. Anyways the files on the first page have been updated. Should hopefully work. Like I said tho that's just like the demonstration portion. It may be useful in limited circumstances but the main event is yet to come. As a side note the more i dig ... the more I just shake my head. I can't elaborate bc its a secret. ssshhhhh
    1 point
  5. Yes I can (?m) : multiline option. In this mode, "^" matches at each start of line ^.+:#\K : from the beginning of the line, one or more chars up to ":#". The added \K means "forget (don't replace) this" \w{6} : 6 word chars (?=.+>120</span>) : followed (?=) by one or more chars AND the string ">120</span>" . If this string is not present then the replacement must fail For your 2nd question, as you do single replacements it's much simpler to use StringReplace : StringReplace($string, "(16,17)=1 '>1</span>", "(16,17)=1 '>99</span>")
    1 point
  6. @Frank70, Guess you didn't see that the question is from more than 9 years ago, so really doesn;t need to be answered anymore!
    1 point
×
×
  • Create New...