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.

Masm + Vc + Qword == &$#!"

Featured Replies

Posted

Heya :)

I just tried coding something in C++ which exports a function in a dll that takes an ULONGLONG param.

Now I was trying to create a MASM inc file for the prototypes.

The problem is that if I use Function PROTO STDCALL Value : QWORD

it seems to swap the lo and hi values.

This seems to be a problem with C++ where the low part of the qword is located at [offset] and the high part at [offset+4].

(Offset being the address of the qword)

AFAIK it's the other way around in MASM so I was looking for a data type that would behave the same...

Instead of having to use:

Function PROTO STDCALL ValueLow : DWORD, ValueHigh : DWORD

Or am I wrong and MASM does it the same way ? I've just seen a few sources where it is done differently, but I havent worked with QWORDs very much, let alone MASM :wacko:

Thanks in advance :)

  • Author

Nevermind, I think I figured it out:

QWORD structure actually looks like this:

Lo-Value | Hi-Value

just like ULONGLONG for C++

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.