cppman Posted July 22, 2008 Posted July 22, 2008 (edited) $hplugin = PluginOpen("dll.dll") ConsoleWrite("lolz" & @lf) ConsoleWrite(enc(0x00,0x00,0x00,0x00,"lolz",4) & @lf) PluginClose($hplugin) How would I run the plugin in it's own program?You are passing all NULLs to the function. Then you dereference that array of NULLs and pass it to the mc_encrypt function as a string (which would only get the first character anyways). Either that is the problem now, or that is going to be a problem later. But now, I have to agree with Valik. You need to get a foundation in C or C++, or even just low-level programming concepts in general. edit: Actually, I guess AutoIt would convert 0x00 to "0". Edited July 22, 2008 by cppman Miva OS Project
cppman Posted July 22, 2008 Posted July 22, 2008 And 0 is null.Notice I put the 0 in quotes. "0" != 0.I assumed because AutoIt uses a variant, GetString would return "0" rather than 0. Miva OS Project
Richard Robertson Posted July 23, 2008 Posted July 23, 2008 Ah, yes. Wait, for the OP: why not accept a number instead of a string?
cppman Posted July 23, 2008 Posted July 23, 2008 (edited) Ah, yes. Wait, for the OP: why not accept a number instead of a string?That would make a lot more sense. char IV[5]; memset(IV, 0, sizeof(char) * 5); for (int i = 0; i < 4; i++) IV[i] = (char)AU3_GetInt32(&blah[i]); Then there is his string. muttley Edited July 23, 2008 by cppman Miva OS Project
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now