Thank you every one.

I am able to execute my gui from rust. My example can be found at
 https://github.com/amuxtux/rustGtk


On Sat, Nov 10, 2012 at 12:39 AM, Patrick Walton <[email protected]>wrote:

> On 11/9/12 12:10 AM, Amit Jain wrote:
>
>> now I want to write a rust-gui.rs <http://rust-gui.rs>  ( a rust wrapper
>>
>> for this), but could not get any idea how to
>> supply the argc and argv .
>>
>> rust-gui.rs <http://rust-gui.rs>
>>
>> ============
>>
>> use libc::{c_char, c_void, c_int, c_uint};
>> //use std;
>> extern mod gui{
>>    fn showGtkUI(argc:c_int, argv:**c_char);
>> }
>>
>>
>> fn main( /* what can be args */ ) {
>>      // what should I do here.
>> }
>>
>>
>> i tried vec [str] etc but every time i get compile errors.
>>
>
> Call os::args(). That returns you a vector of strings containing the
> arguments.
>
> Patrick
>
>
> ______________________________**_________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/**listinfo/rust-dev<https://mail.mozilla.org/listinfo/rust-dev>
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to