Quantcast
Channel: User trojanfoe - Stack Overflow
Browsing all 226 articles
Browse latest View live
↧

Comment by trojanfoe on How to get values from privacy settings that are set...

I’m voting to close this question because PS5 development is under NDA and cannot be openly discussed.

View Article


Comment by trojanfoe on Crypto++ text file Decryption not working properly

I don't see how size_t fileSize = inputFile.tellg(); is working as I cannot see you move the file pointer to the end-of-file beforehand?

View Article


Comment by trojanfoe on what is the most compatible GDB version to use with...

Have you considered CLion as an alternative?

View Article

Comment by trojanfoe on Visual Studio cannot recognize CMake included...

The image you posted seems to indicate that the compiler can see sbt_image, given it's doing static analysis of it and finding issues.

View Article

Comment by trojanfoe on rust is running two tests, while I am just asking for...

Try with ... test_function -- --exact.

View Article


Answer by trojanfoe for Immutable HashMap with mutable object as value

You will need to use interior mutability:use std::{cell::RefCell, rc::Rc, collections::HashMap};fn main() { let aa = HashMap::from([(1, Rc::new(RefCell::new(1)))]); println!("{:?}",aa); if let...

View Article

Comment by trojanfoe on Visual Studio Code for some reason changes '\' with...

Isn't it cmake doing that, rather than VSCode?

View Article

Comment by trojanfoe on GLFW in docker container through ssh

If there is no display connected then I doubt that OpenGL will work. You might make more progress switching to Vulkan (non-trivial, I know) which can work in headless mode.

View Article


Comment by trojanfoe on CMake failed to check C++ compiler with Visual Studio...

What does CMakeOutput.log and CMakeError.log tell you?

View Article


Comment by trojanfoe on CMake and Ninja - Problems with dollar sign in custom...

What is the dollar sign actually used for in the custom command?

View Article

Comment by trojanfoe on How can I compile a simple Swift cli program for Alpine?

Does adding --static-swift-stdlib work? Also you can test what libraries the executable will use, before transferring it to the target machine, using ldd.

View Article

Comment by trojanfoe on Program hangs on connect()?

Yes, it's a blocking call unless you've set the socket to non-blocking mode.

View Article

Answer by trojanfoe for CMake and Ninja - Problems with dollar sign in custom...

Your issue isn't anything to do with dollar signs; it appears to be to do with how you structured your Testtarget dependency. Using this works for me, on macOS:cmake_minimum_required(VERSION...

View Article


Comment by trojanfoe on Getting error trying to run Homebrew via Process in a...

As already hinted; is the app sandboxed?

View Article

Comment by trojanfoe on How to check if the current user is admin from macOS...

No, this is C using the Core Foundation framework et al.

View Article


Comment by trojanfoe on Window for a rust compiled app is unresponsive in...

This is not a programming question and therefore should be asked elsewhere.

View Article

Comment by trojanfoe on fscanf changing file position to a negative value

I don't understand the use of fseek(fp,where,SEEK_SET);. Shouldn't you instead be progressing the file pointer beyond the position of the char after the number?

View Article


Answer by trojanfoe for Visual Studio: How to "Copy to Output Directory"...

To add my hat into the ring here, if you want to include a whole directory of content and you don't want to track each individual file in Visual Studio, then you can add this in your project file (for...

View Article

Comment by trojanfoe on How to manipulate shared texture/image of an asset?

I have an offscreen (render-to-texture) workflow that uses wgpu and I use Rc<wgpu::Texture> to pass the texture around. I recently added texture caching so had to change that to...

View Article

Comment by trojanfoe on rust is running two tests, while I am just asking for...

Try with ... test_function -- --exact.

View Article
Browsing all 226 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>