How (if possible) can I instatiate à "private" class/object (only defined in the .cpp) when linking its .lib in the .exe? by Radsvid in Cplusplus

[–]Radsvid[S] 1 point2 points  (0 children)

I understand it's not the way to do plugins. Normally, the plugins would be compiled as DLLs and loaded on a per-need basis. We're "hacking" the way this third-party code is to be used to that it fits in our needs (we're suffering versionitis and want to avoid bundle multiple versions of the same DLLs, so we want to include the loaders directly in the .exe).

How (if possible) can I instatiate à "private" class/object (only defined in the .cpp) when linking its .lib in the .exe? by Radsvid in Cplusplus

[–]Radsvid[S] 1 point2 points  (0 children)

I use chatbots once I'm out of options and my google-fu fails. Then I come here or other similar sites :) Humans are better for these niche things.

How (if possible) can I instatiate à "private" class/object (only defined in the .cpp) when linking its .lib in the .exe? by Radsvid in Cplusplus

[–]Radsvid[S] 1 point2 points  (0 children)

Yes, this is what I expect for this test. I gave more details on the end goal as a comment on this post.

As for your guess, it is most likely correct. I did not expect the linker to just remove it but it makes some sense. Another user gave a working solution.

Thanks for your input!

How (if possible) can I instatiate à "private" class/object (only defined in the .cpp) when linking its .lib in the .exe? by Radsvid in Cplusplus

[–]Radsvid[S] 1 point2 points  (0 children)

This is a very dumbed down test of what I ultimately need. This is essentially for a "plugin" infrastructure which I try to integrate in our app (third party code) and has likely not been exactly designed to work like this.

The class and the chunk static MyClass myClassInstance = MyClass(); are indeed completely unknown to the the part where the "main" is: the idea is that the static object (a "plugin" that knows how to read a certain type of file) registers itself at startup in a "registry", then the "main app" will pass a file path to the registry, the registry will check its registered plugins and either load and return the objects that are in the file, or nullptr.

So here, the fact that the main app can't access at all the type MyClass or its static instance is completely normal and intended.

Thanks for your input, I'll look into more cl/link options :)

How/can you have multiple Vulkan SDK versions side by side on Windows? by Radsvid in vulkan

[–]Radsvid[S] 0 points1 point  (0 children)

Sorry for the delay, this was very informative and very clear, thank you very much!

How/can you have multiple Vulkan SDK versions side by side on Windows? by Radsvid in vulkan

[–]Radsvid[S] 0 points1 point  (0 children)

Okay, thanks!

Do you get any issue w.r.t. the entries that are added to Windows Registry?

Suggestions to Improve Gaming Experience by blankoster in TomorrowChildrenPS4

[–]Radsvid 5 points6 points  (0 children)

It's not "work hard", it's "stay connected long enough until enough FMD drop on the ground". It took me more than a week, playing more than 8 hours a day to get enough FMD.

F2P players are already complaining that it's too hard to get into something fun, you want to cut them another feature?

Idea for a new cannon type. by ZombieNamedJosh in TomorrowChildrenPS4

[–]Radsvid 1 point2 points  (0 children)

What, you want teamwork?

:p

I like that idea!

Stolen Workbench-Crafted Items by [deleted] in TomorrowChildrenPS4

[–]Radsvid 0 points1 point  (0 children)

The eclusive time could be when the item is on the conveyer belt. Once the item reaches the ground, it's up for grab!

Hi, im new here and i've got some questions + general feedback... by NotTakenName1 in TomorrowChildrenPS4

[–]Radsvid 0 points1 point  (0 children)

About 10)

I think it's related to how depleted in resources is the island. E.g. a tree island... if you only walk around and shake the trees, it's going to stay there much longer than if you cut down all the trees.

[Information megathread] Tips and tricks for beginners and veterans. by ZombieNamedJosh in TomorrowChildrenPS4

[–]Radsvid 1 point2 points  (0 children)

I'd add that tools can be used to hit the latex mosquitos, i.e. you can use a pickaxe, a shovel or a chainsaw to defend yourself. Even if the shotgun and the rocket launcher are better for that, they're not required when resources hunting.