boom
boom
CC#
Created by boom on 1/11/2023 in #help
❔ 21,000 Images, Best way to implement a lookup method?
I have 21,000 + images that have to be available for lookup. The images are formatted [item_id].png, and in total is 43mb on disk. Should the best method be to have a lookup that sifts through the directory and string match, or to load them all in memory in a suitable datatype
62 replies
CC#
Created by boom on 12/26/2022 in #help
❔ CSharp Socket Stream Stacks
3 replies
CC#
Created by boom on 12/7/2022 in #help
✅ Mutexing List
I have a service that spawns a thread to execute functions, and the list being access inside the spawned thread is inside of another thread. how do i mutex a list between 2 threads?
20 replies
CC#
Created by boom on 12/6/2022 in #help
✅ How do i pass a function with unknown parameters?
for instance
void WrapFunction()
{
return 1;
}

void WrapFunctionA(dynamic data);
void WrapFunctionB(int data);
void WrapFunctionC(string data);

void CallFunction(Func<?> passed_func) { passed_func(); }

CallFunction(WrapFunctionA);
CallFunction(WrapFunctionB);
void WrapFunction()
{
return 1;
}

void WrapFunctionA(dynamic data);
void WrapFunctionB(int data);
void WrapFunctionC(string data);

void CallFunction(Func<?> passed_func) { passed_func(); }

CallFunction(WrapFunctionA);
CallFunction(WrapFunctionB);
```
34 replies
CC#
Created by boom on 12/6/2022 in #help
❔ Variable Access-Manipulation ?
Is there a way to have a variable constantly point to another variables value without being in a threaded/tasked environment?
int main_global_val = 32;

int local_main = ref main_global_val; ?
// have local_main always refer to main_global_val's value
int main_global_val = 32;

int local_main = ref main_global_val; ?
// have local_main always refer to main_global_val's value
how could i do something like this?
4 replies
CC#
Created by boom on 11/21/2022 in #help
❔ How to Scale Winforms Components with Window Resolution
I'm trying to scale the components using the SizeChanged event, but i'm not getting anywhere. I've tried researching some documentation, but i think maybe my terminology might be wrong. Simply i'm just trying to keep components in their respective place, even upon making the application fullscreen. Given a MINIMUM Resolution, and a MAXIMUM resolution, How can I properly go about scaling components?
2 replies