Hanami
Hanami
CC#
Created by Hanami on 9/29/2024 in #help
✅ Z position controlling of my WPF window
Hello, guys, i'm developing a WPF application for a game, which source code I don't have. I want to make a window, that always will be on top of the game window, but if there is a some other window, for example browser, it can be on top of my application. I have one idea to use C++ functions for windows from user32.dll, but it looks complicated and I think there is a simpler solution. Is it?
7 replies
CC#
Created by Hanami on 9/29/2022 in #help
Marshal class
58 replies
CC#
Created by Hanami on 9/14/2022 in #help
Design
Hello, I decided to write a small program, but I ran into a design problem. The point is. There are 2 population groups Eastern and Western. There are 5 population levels in the western group, and 2 in the eastern group. The population consumes certain goods in a certain amount. Each next level consumes the same goods as the previous one + new goods. At the same time, the amount of consumption of the same goods by different levels of the population also differs. The task of the program is to read data from the process memory (I coped with this), then multiply the received quantity data by special consumption coefficients (which I also have), and then output. And now I have a question, and how best to organize the counting. There was an idea to create a class for each level, create a number field in it, then create fields for storing coefficients that would be defined in the class constructor. And then I don't know. There was an idea to create a get property for each multiplication and count them and immediately return the result. There was an idea to write a universal Calculate method, but the question arose as to how to initiate this method for each multiplication or immediately perform all multiplications in this method, but then it will need to be redefined. In general, help with this, please.
7 replies