Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthIste committed Aug 2, 2014
1 parent 856a5fa commit ff7fe96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions winman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ use win32::window::{MessageBoxA,MessageBoxW};
mod win32;

fn main() {
// https://github.com/rust-lang/rust/issues/13259
unsafe { ::std::rt::stack::record_sp_limit(0); }

MessageBoxA(0 as HWND, "text (cstr)".to_c_str().as_ptr(), "title (cstr)".to_c_str().as_ptr(), 0);
MessageBoxW(0 as HWND, "text (wcstr)".to_c_wstr().as_ptr(), "title (wcstr)".to_c_wstr().as_ptr(), 0);
}

0 comments on commit ff7fe96

Please sign in to comment.