Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Right Click Mouse  (Visto 41444 veces)

0 Miembros and 3 Guests are viewing this topic.

Offline stark98 #280 Posteado: September 25, 2023, 12:54:30 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 124
  • Gracias recibida: 1775
  • fr
Maybe your ObjectItem struct is wrong

I don't know if the structure is correct. I can't figure out where the values ​​in char PosX come from; charPosY;
I did not find a single piece of code that would write values ​​to these variables.

https://prnt.sc/26gxuca

Writing to variables goes in main.exe
Запись в переменные идет в самом main.exe

https://prnt.sc/26h135z

Added these lines from other sources now everything works.
Could you explain a little to me how main writes values ​​to these variables?.
I want to understand this and understand how it works.

Не могли бы вы мне немого объяснить как main записывает значения в эти переменные?.
Я хочу в этом разобраться и понимать как это работает.

Certainly! `#pragma pack` is a preprocessor directive used in the C and C++ programming languages to control the alignment of structures or other data types in memory. The `#pragma pack` directive allows programmers to specify or modify how the elements of structures or variables are aligned in the computer's memory.

The `#pragma pack` directive is followed by an integer argument that specifies the desired alignment. This argument indicates the number of bytes with which to align the elements of structures. Typically, the value is specified as a power of 2 (e.g., 1, 2, 4, 8), but it can vary depending on the compiler and platform.

For example, if you want to align the elements of a structure to 4 bytes in memory, you can use the `#pragma pack(4)` directive before the structure definition. This will cause all elements in the structure to be aligned on 4-byte boundaries instead of the default alignment.

It's important to note that using `#pragma pack` can lead to more efficient memory usage in certain cases but can impact performance because accessing unaligned data may be slower on some hardware architectures. Therefore, it's essential to use this directive carefully and consider the specific requirements of your platform and program when deciding to modify the default alignment.
Explained by Chat GPT. magia2

Be cool, and all will be ok))
Skype: sky.hack2
Discord: bonny9

Offline nhaixuong #281 Posteado: October 14, 2023, 08:25:13 AM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 68
  • Gracias recibida: 644
  • vn
@ZabiinoOo  ayúdalo a agregar el hide al tema, porque si no no le van a dar gracias.
Thank you
B có zalo không, e xin kết bạn hỏi chút về cái code chuột này với  woot

Gracias:


Offline networks1 #282 Posteado: February 25, 2024, 06:28:33 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 14
  • Gracias recibida: 1
  • ve
Alguien me podría decir en que archivos va el código? soy nuevo programando, se los agradeceria


Offline meiwenhan123 #283 Posteado: March 16, 2024, 09:30:27 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 2
  • Gracias recibida: 0
  • cn
very good, works perfect.. thanks


Offline eduardo253 #284 Posteado: April 23, 2024, 12:39:53 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 57
  • Gracias recibida: 4
  • ar
Hola alguien tubo error en este

code

// Click Derecho
#if(MOVE_ITEM)
   last_tickcount_moveitem_ = 0;
#endif
 


Offline KhongGianOL #285 Posteado: April 25, 2024, 12:18:34 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 216
  • Gracias recibida: 590
  • vn
Hola alguien tubo error en este

code

// Click Derecho
#if(MOVE_ITEM)
   last_tickcount_moveitem_ = 0;
#endif

Không ai gặp lỗi cái này cả...cậu chèn code sai hoặc thiếu mới báo...phải chụp rõ cái hình lên chứ....

Note Eng:  No one has encountered this error... you inserted the wrong or missing code to report... you should take a clear picture... who knows what error you encountered?

Be kind, for everyone you meet is fighting their hard battle

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
19 Replies
2697 Views
Last post April 08, 2021, 01:45:40 AM
by xtestx
10 Replies
1514 Views
Last post December 23, 2020, 11:11:55 PM
by Ketamine
0 Replies
726 Views
Last post October 18, 2022, 10:41:43 AM
by ziza
1 Replies
431 Views
Last post February 02, 2023, 01:32:54 AM
by takumi12
4 Replies
384 Views
Last post June 27, 2023, 11:01:18 PM
by crazyyXXTT