PDA

View Full Version : VB.net example in SP1 of SDK


pdgnr
08 Dec 2006, 11:25
Good day all,
I downloaded the SP1 for the SDK and tried the VB.net example.

I added the Microsoft.FlightSimulator.SimConnect to the references and it built ok, but claims that it cannot load MS.FS.Simconnect when trying to launch it...

I loaded the same example for C# in visual C# and got the same result... Built OK, but unhandled exception when trying to start: cannot load ms...Simconnect.

I am not familiar with VB and VC#. Am I missing something somewhere :confused: ?

Best regards,

Robert

rhumbaflappy
08 Dec 2006, 14:37
Hi Robert.

I use the Microsoft Express editions of both VB.NET and C#.

The sources from the SDK both load and compile as is... I did rename the associated "bin" folder to "bin_old" to make sure a new bin set was created. ( It was ).

You don't need to load or alter anything in those examples.

The file "Microsoft.FlightSimulator.SimConnect" is automatically installed to the "GAC" by the SDK install ( and possibly after the "ConfigSDK.exe" program in the SDK's root folder ).

Likewise, the "SimConnect.dll" is copied to your C:\WINDOWS\WinSxS\ folder automatically.

Dick

ziporama
08 Dec 2006, 18:25
Have you run the updated simconnect.msi to install the DLLs on your development computer?

pdgnr
09 Dec 2006, 02:43
Thanks for your answers...

After reading your posts I begin to suspect my installation. I moved to a second computer, and on this one that works.
I don't understand why it doesn't work on the first one. I have not enough knowledge about .net things and microsoft environment. I used Borland CBuilder till now and I just begin to look to .net with the free products of MS (by the way, thanks Mr Gates!).

Many things look mysterious for me in the syntax, and I presume I'll need help from times in times...! :o

Best regards,

Robert

jcboliveira
10 Dec 2006, 02:16
If your previous language was C I believe that the transition it will be easier with C#.

Maybe it's a good idea to look to this:

http://www.codeguru.com/csharp/.net/net_general/netframeworkclasses/article.php/c8245/

It will give a first look in to .net. To understand the GAC look in to this:

http://www.codeproject.com/dotnet/DemystifyGAC.asp

José

pdgnr
10 Dec 2006, 02:55
Hi josé,
thanks for this two usefull links... They are saved for reading ans re-reading...

By the way, do you know a good tutorial on how to use unmanaged dll with managed code ?

regards,

Robert

Javier
10 Dec 2006, 20:09
The bible: http://www.pinvoke.net/

Best Regards,
Javier.

Javier
10 Dec 2006, 20:11
By the way, do you know a good tutorial on how to use unmanaged dll with managed code ?
The bible: http://www.pinvoke.net/

Best Regards,
Javier.

pdgnr
11 Dec 2006, 01:38
Thanks Javier...
I go immediatly :) !

Regards,

Robert

DocMoriarty
20 Dec 2006, 03:28
What i found about this is, that SimConnect seems to install wrong at times. To solve this problem, you need to remove it from the GAC (Global Assembly Cra ... umm Cache) and then rerun the FSX installation (not sdk) in repair mode so that it gets fixed.

This is the GAC Folder where SimConnect should be installed:

C:\WINDOWS\WinSxS\x86_Microsoft.FlightSimulator.Si mConnect_67c7c14424d61b5b_10.0.60905.0_x-ww_429211e9

pdgnr
20 Dec 2006, 04:39
Thanks for this usefull information Doc...

Regards,

Robert