Jump to content

__CIsin and __ftol2_sse problem in masm32


Recommended Posts

Hi there guys,

I recently ripped an aboutbox from one of HAZE's keygens

 ABOTBOXHAZE.png.956cf7e20587c69f4c746f6bbe35e869.png

but unfortunately when i was going to compile and even inserted the externdef's both for __CIsin and __ftol2_sse :

externdef c __CIsin:dword
externdef c __ftol2_sse:dword

... i do get this error on compiling:

bones.obj : error LNK2001: unresolved external symbol ___CIsin
bones.obj : error LNK2001: unresolved external symbol ___ftol2_sse
C:\Users\User\Downloads\asm.masm32-graphical-effects\MASM32-graphical-effects\HaZE\bones.exe : fatal error LNK1120: 2 unresolved externals

do you guys think it might require another msvcrt lib but newer version or libcmt lib ? this aboutbox is obviously coded initially in C++ .

Link to comment

unresolved externals so it might be related to the msvcrt version or some other lib i think

Link to comment

You have incorrectly defined function names. See here:

externdef c __CIsin:dword
__CIsin <-- function name you defined in ASM

bones.obj : error LNK2001: unresolved external symbol ___CIsin
___CIsin <-- function name linker is looking for

_CIsin  <- function name actually exported from msvcrt.dll

Details and more explanation for example here: http://masm32.com/board/index.php?topic=6533.0 or here: https://www.bigmessowires.com/2015/10/06/assembly-language-windows-programming/

Link to comment
Posted (edited)
1 hour ago, kao said:

You have incorrectly defined function names. See here:

externdef c __CIsin:dword
__CIsin <-- function name you defined in ASM

bones.obj : error LNK2001: unresolved external symbol ___CIsin
___CIsin <-- function name linker is looking for

_CIsin  <- function name actually exported from msvcrt.dll

Details and more explanation for example here: http://masm32.com/board/index.php?topic=6533.0 or here: https://www.bigmessowires.com/2015/10/06/assembly-language-windows-programming/

spacer.png

thanks kao for the suggestion, modified the function names and used the msvcrt.lib i have used for the libv2 1.5 snippet and used these :

externdef _CIsin:PROC
externdef _ftol2_sse:PROC

it did open up, the thing is nothing shows up on the aboutbox. not even the spinning dots, perhaps i might need to get the initializations found in WinMain to get the exact result. :E

(good grief this might be the hardest aboutbox to rip from X_X)

Edited by r0ger
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...