0
点赞
收藏
分享

微信扫一扫

最新真人大模型WuhaXL_realisticMixV4.0免费下载与Stable Diffusion 3使用教程【AI绘画、设计】

程序员阿狸 2024-09-16 阅读 2
rustwindows

只需在当前根目录下新建.cargo\config.toml,写入以下配置

├── .cargo
│   └── config.toml
├── Cargo.lock
├── Cargo.toml
└── src
    └── main.rs
[target.'cfg(all(windows, target_env = "msvc"))']
rustflags = ["-C", "target-feature=+crt-static"]
use windows::{core::h, Win32::UI::WindowsAndMessaging::{MessageBoxW, MB_OK}};

fn main() {
    unsafe{
        MessageBoxW(None, h!("Demo"), h!("自带vcruntime140.dll"), MB_OK);
    }
}
[package]
name = "rust_vc_runtime"
version = "0.1.0"
edition = "2021"

[dependencies.windows]
version = "0.58.0"
features = [
    "Win32_UI_WindowsAndMessaging",
    "Win32_UI_Shell"
]

测试对比

举报

相关推荐

0 条评论