Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

__CIsin and __ftol2_sse problem in masm32

Featured Replies

Posted

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++ .

  • Author

..... no one?

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

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/

  • Author
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

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.