Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] How to use write when using win32 file handles #777

Open
Smurf-IV opened this issue Jul 23, 2024 · 5 comments
Open

[Bug] How to use write when using win32 file handles #777

Smurf-IV opened this issue Jul 23, 2024 · 5 comments

Comments

@Smurf-IV
Copy link

Visual Studio 17.10
x64 stl/std project (No MFC)
The following code will not compile:

            fast_io::obuf_file outfile_str( stressFileName, fast_io::open_mode::out | fast_io::open_mode::text | fast_io::open_mode::trunc );
            fast_io::write(outfile_str,utf8bom.cbegin(),utf8bom.cend()); 

States:
image

@trcrsired
Copy link
Member

next branch?

@Smurf-IV
Copy link
Author

I can comment on this repo no more, as I have trouble using this with linked projects that are also /clr builds.
Thankyou.

@trcrsired
Copy link
Member

trcrsired commented Jul 24, 2024

I can comment on this repo no more, as I have trouble using this with linked projects that are also /clr builds. Thankyou.

what? clr builds? Hasn't microsoft removed CLR support?

@Smurf-IV
Copy link
Author

Nope, it has been "Improved" to work correctly with the latest CRT and C++20:
image

@trcrsired
Copy link
Member

trcrsired commented Jul 25, 2024

Nope, it has been "Improved" to work correctly with the latest CRT and C++20: image

what about next branch with ::fast_io::operations::write_all_bytes? There is no ::fast_io::write

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants