Forum > General >

C++ Ask Me Anything

Posts: 224

Threads: 43

Joined: May, 2022

Reputation: -5

Posted

Ask me anything about C++! Safe space, no such thing a stupid question here!

 

  • 0

https://media.discordapp.net/attachments/1044764388546068510/1051935933836050482/Signature_4.png

ecstacy_lxnny

fka as delta

contentCreator

Posts: 764

Threads: 69

Joined: May, 2021

Reputation: 95

Replied

How do I make a DLL that NEVER GETS PATCHED and executes all the scripts.

 

You were the one who said "no such thing a stupid question" not me.. :troll:

  • 0

fka as delta

F34R

Fear

Posts: 216

Threads: 34

Joined: Apr, 2021

Reputation: 10

Replied

What is DWORD?

  • 0

https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png

Posts: 1372

Threads: 87

Joined: May, 2018

Reputation: 24

Replied

@F34R

watch your profanity

  • 0

Hello there

#StayHome

 

F34R

Fear

Posts: 216

Threads: 34

Joined: Apr, 2021

Reputation: 10

Replied

@LONG what profanity, I just asked a question about Dword I always see this in all dll sources. Is this supposed to be a swear word? If so I'm sorry

  • 0

https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png

Posts: 1372

Threads: 87

Joined: May, 2018

Reputation: 24

Replied

@F34R

it was a joke

no worries

  • 0

Hello there

#StayHome

 

Posts: 224

Threads: 43

Joined: May, 2022

Reputation: -5

Replied

@_realnickk

 

yes, you can do it using static_cast if there is a target type constructor which allows it and you can do it using dynamic_cast ( only accepts pointers and references )

 

honestly that depends, from doing some research it's usually in .rodata. the way virtual function tables work is that the compiler, at the beginning of any class that has virtual functions ( this includes classes derived from classes that have virtual functions ), adds a pointer to a virtual function table which increases the size of the class by sizeof( void* ).

 

  • 0

Added

@F34R

 

on the off chance this is a serious question i'll reply ( it's not a stupid question, some people just make troll questions like that sometimes )

 

a DWORD stands for a double-word( 32 bits ), a WORD is 2 bytes ( 16 bits ), and char's are 1 byte ( 8 bits )

it's a windows typedef for a unsigned long which is 4 bytes whether on a 64 bit or 32 bit process.

 

note: the amount of bytes a DWORD or WORD have does not change throughout 64 or 32 bit, it stays the same, and so will the int keyword

this is why it's recommended to use std::uintptr_t over int as it'll change depending on the current architecture ( if you're writing code which is meant to be used in 64 and 32 bit, it's highly recommended you use std::uintptr_t or std::intptr_t, especially when dealing with pointers as you won't want to truncate a pointer that points to a 64 bit integer by casting it to a pointer that points to a 32 bit integer because when you dereference it you'll be losing 32 bits of information as you'll only be reading 4 bytes, opposed to the 8 bytes a 64 bit integer holds )

  • 0

https://media.discordapp.net/attachments/1044764388546068510/1051935933836050482/Signature_4.png

F34R

Fear

Posts: 216

Threads: 34

Joined: Apr, 2021

Reputation: 10

Replied

@luxiferrwoo Thanks man

  • 0

https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png

Users viewing this thread:

( Members: 0, Guests: 0, Total: 0 )