Shoey
Shoey
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
Once I got into the memory allocation management part of trying to replicate string pointers I just gave up and decided on the interop exe way.
21 replies
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
Maybe. I'm not familiar at all with pointers other than what I've read doing this. The debug info printout is reliant on was a string pointer and I couldn't find info on getting that working. I don't think they were used as pointers but there were also LPSECURITY_ATTRIBUTES, LPSTARTUPINFOW, and LPPROCESS_INFORMATION variables. I tried replicating them with struct and using the table linked above but that didn't really work either, just giving me memory access errors all around.
21 replies
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
I am familiar enough with C to manipulate the example executable and get it to set up the VFS and launch a desired executable. Maybe I could write the GUI in C# and have it save the file system structure to a text file, then use a C executable as an in-between that can have the text file and the executable to launch with the VFS passed as arguments?
21 replies
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
I have a decent understanding of it and seem to be able to link some methods to their functions but it is extremely reliant on pointers in a way that C# doesn't seem to support.
21 replies
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
Thank you!
21 replies
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
I don't know how to be sure I'm accessing the same function by using DllImport in C#
21 replies
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
My hangup is I can see that in C a specific function is accessed in the main "class" by including "__declspec(dllimport) void WINAPI usvfsClearVirtualMappings();" under the include folder
21 replies
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
I'm not too sure how applicable that is for me
21 replies
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
I understand the .h files in the includes folder in the example are setting up functions using the dll to be used in the main code but I'm not sure how I could translate what that shows over to C#.
21 replies
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
21 replies
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
21 replies
CC#
Created by Shoey on 7/18/2024 in #help
How can I use a precompiled C/C++ dll in a C# project?
They are projects on github. Sadly they don't have much documentation.
21 replies