Replies: 3 comments 3 replies
-
Hi @spiroza , The error seems to indicate that the Do you have the whole VS solution at that file path? It's a bit strange because when that project is built, it should automatically build all the dependencies. But maybe that's not working? There should be a Which build type(s) are you trying (Release, Release-nnn, Debug)? Thanks, |
Beta Was this translation helpful? Give feedback.
-
You may be right about that extra step. I haven't used Visual Studio in a
few years and definitely haven't had any mixed language solutions so there
were some things I had to figure out...e.g. right clicking on the specific
file to debug it so I could step through it. It will be a challenge for me
to get this all connected to a window. If I run into trouble I'll be sure
to beg for help.
Thank you!
…On Wed, Nov 9, 2022 at 12:16 AM Max Paperno ***@***.***> wrote:
Cool, glad you got that figured. I'll check the dependencies again (it
should have built the rest of the solution projects as needed, which would
be WASimClient and WASimClient_CLI).
Yes, depending on what you want to do of course, but it would make sense
to have those event handlers as part of one of your app's classes. They
don't have to go in MainWindow per sé (eg. you could have a "Simulator"
class which uses the WASimClient), but that's probably simplest to start
with.
The ClientStatusHandler() would receive disconnection events, both when
explicitly disconnected (calling client.Disconnect[Server|Simulator]())
and if the Sim itself quits. The ClientEvent object it receives is
described here
<https://mpaperno.github.io/WASimCommander/namespace_w_a_sim_commander_1_1_client.html#struct_w_a_sim_commander_1_1_client_1_1_client_event>
.
The C# interface could use some more documentation
<https://mpaperno.github.io/WASimCommander/class_w_a_sim_commander_1_1_c_l_i_1_1_client_1_1_w_a_sim_client.html>
specific to it. In general it is all basically identical to the C++
version, except of course some of the variable types (String vs
std::string for example), and the event handlers (vs. callbacks in C++).
Holler with any questions!
Cheers,
-Max
—
Reply to this email directly, view it on GitHub
<#10 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXSEVGJA65FORP5UFRABEM3WHMXSRANCNFSM6AAAAAAR2VVNJU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I get...
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'WASimCommander' could not be found (are you missing a using directive or an assembly reference?) CS_BasicConsole F:\MyMSFSProjects\WASimCommander-main\src\Testing\CS_BasicConsole\Program.cs 22 Active
Is there a preliminary step I'm missing?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions