com-rs/examples/safe
Ryan Levick c1c5356779 Clean up examples 2019-08-29 19:31:24 +02:00
..
client Clean up examples 2019-08-29 19:31:24 +02:00
interface Clean up examples 2019-08-29 19:31:24 +02:00
server Clean up examples 2019-08-29 19:31:24 +02:00
src Clean up examples 2019-08-29 19:31:24 +02:00
Cargo.toml Add ComOutPtr 2019-08-22 16:20:07 +01:00
README.md Add ComOutPtr 2019-08-22 16:20:07 +01:00

README.md

COM Example

A COM example in Rust

Run

To install the server and run the client, simply run the following from the basic folder:

cargo run

Alternatively, you can choose to build/install/run the server and client seperately.

Build & Install Server

You can build the server by running the following in the server folder:

cargo build

To "install" the server, you need to add the CLSIDs to your Windows registry. You can do that by running:

regsvr32 path/to/your/server/dll/file

Run Client

To run the client which talks to the server, simply run the following from the client folder:

cargo run