Hello Everyone
I'm new to SL development and was wondering if it is possible to write custom modules in C# instead of VB.NET. Does swimapi (again I know very little of this) have any limitations if used in C#?
TIA
Nayan
*This post is locked for comments
In theory both VB.net and C# compile down to the same or equivalent intermediate language code, however, I recall a hotfix awhile back that dealt specifically with calling Object Model from C# code, so perhaps there are some minor differences in the SL environment. The SL kernel is still C++ from what I understand.
Also, launching the parent app from managed code is a little inconsistent sometimes, to put it gently. Make sure you have all hotfixes dealing with object model for your version (mind the SP level too), and there is a specific recommendation for adding a thread delay during launch (it deals with RPC) and also calling the garbage collection a couple of times (e.g . Collect / WaitForPendingFinalizers / Collect, Thread.sleep(delay), repeat) - described in KB article 952057.
Be sure to check out these KB articles if you run into any issues:
943294: Error messages when you try to use Object Model together with languages other than Visual Basic .NET in Microsoft Dynamics SL 7.0: "Automation error" or "Unable to establish connection with Parent.SIVToolbarRemoteObject"
952057: Error message when you try to execute Object Model code in Microsoft Dynamics SL: "Did not receive signal from MSDynamicsSL" or "Unable to establish connection with Parent.SIVToolbarRemoteObject"
Regards,
Paul
Absolutely you can write programs that utilize the Solomon Object Model in C#. I would guess you could write VBTools screens in C# but you would have to figure out the C# equivalent of the VBTools required objects, like the record buffers. Examples of those objects are shown in VB.Net.
Here's a link to the SL Object Model Reference Guide:
https://mbs.microsoft.com/downloads/customer/solomon/70adminguides/sl_ob.pdf
The document claims to be for:"Other Windows programmers
Geo
Both. Additional screens in SL and using custom module using Solomon Object Model.
TIA
Nayan
When you say custom modules, do you mean additional screens for a SL system or a custom module that uses the Solomon Object Model? How do you plan to use swimapi in C#?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,232 Super User 2024 Season 2
Martin Dráb 230,064 Most Valuable Professional
nmaenpaa 101,156