how to deploy IWshRuntimeLibrary? - c#

I am using .Net 3.5 and C# 3.0, application is creating shortcuts using IWshRuntimeLibrary.
In my understanding IWshRuntimeLibrary.dll is an automatically generated wrapper for wshom.ocx
I am required to support the following Windows Script Host versions:
Windows Vista, Windows Server 2008, Windows XP SP3 - v5.7
Windows 7, Windows Server 2008 R2 - v5.8
Windows 8, Windows Server 2012 - v5.8
Windows Script Host comes with Windows by default.
This post is suggesting that I will have to deploy IWshRuntimeLibrary dll with my project.
What would be to correct way of deploying IWshRuntimeLibrary that would allow it work with both versions of Windows Script Host in all required environments?

When you add a .NET reference to your project for the wshom.ocx file, Visual Studio should generate an interop DLL that you can include in your installer. This DLL should be in your bin folder when you build the project.
If there's a Primary Interop Assembly available, then Visual Studio should detect that.
This is an older article, but still relevant on the topic: http://www32.brinkster.com/srisamp/netArticles/article_16.htm

Related

Develop applications for Windows Compact

I have an Windows Embedded Compact v8.00 device installed with build 6247. FYI - This device is an Siemens HMI.
Now I'm looking for the right way to develop applications for this version of Windows. I started trying with Visual Studio 2008, so I build a very simple application with just a useless textbox. After copying the executable to the device I start tried to run the test applications but nothing happens.
After searching the web I found out it's better to install Visual Studio 2015 PRO with an application builder from Microsoft's website.
Is this the right way to do? What else does I need to know when developing applications for Windows Compact 2013?
To create applications for Windows Embedded Compact 2013 you need VS2013 or VS2015 professional with the Application Builder plugin and a valid SDK installed on your PC.
If you develop managed apps you also need to check in the .NET runtime is already part of the image or find a way to deploy and install it permanently on your device (the way to do this may change depending on the device configuration, registry type etc.)

native DLL working fine in windows XP and trowing System.DllNotFoundException in windows 7 or later

I have a windows XP dev environment for C# application project combination with native DLL. Now I am trying to migrate to Windows7 using last visual studio 2015.
My problem is native DLL is trowing System.DllNotFoundException in windows7 dev environment, so it means I cannot create setup file with enhancements and new features.
Note: I got old windows xp setup file that will install in windows 7. same native DLL work perfectly fine, if that old setup file is installed.
I have no clue how setup file was created but it was created with wise installation studio
The same native DLL files working after old application install and native DLL are not working in dev environment and giving System.DllNotFoundException.
I tried with elevated permissions but no luck.
I am thinking of possible solutions one DLL registration I have no idea how to do that.
Any suggestion is well come
Thanks

I need to build an application for windows ce 4.1

I am using windows 7 with visual studio 2017. I have some code I want to run on windows CE 4.1. How do I build the code for this version of CE? I see there is mention of a CE build platform 4.0 but can't find a download for it?
It depends on what kind of application do you have. If has been developed with Visual Studio probably you should be able to build it in an old version. VS2008 or VS2005 should still support CE 4. For sure they support CE 5,6 and 7.
It may be that the application has been developed with Embedded Visual C++ 4.0, you may be able to still find a download in MSDN but I've no idea about how it could run on Windows 10, maybe a WinXP virtual machine would be better.
If the application was developed using platform builder and integrated in the OS image you can still find it in MSDN but, again, this is quite an old tool and will probably have issues running on a recent PC.

Can I create an EXE file using C# with visual web developer express?

The only option I see under C# Windows is "Class Library" to create a DLL. But I don't want a dll. I want an EXE (this time). I'm running Windows 7, btw.
If you want an executable, that suggests you don't want a web application which is what the Web Developer Express targets.
Instead, download and install the "Visual Studio Express 2013 For Windows Desktop" version. That will let you create console applications, WinForms apps, WPF apps etc. (Note that there's also a "for Windows" version rather than "for Windows Desktop" - that's for Windows Phone and Windows Store apps.)
Or hey, just skip straight to Visual Studio Community Edition which has it all in one bundle :)

Mix two .NET frameworks in Windows Mobile 8

I am creating a Windows Phone application with Visual Studio 2013 Premium.
I have an older version of this project built for the old Windows Mobile platform.
The old project contains proxy classes used with the "Add Service Reference" functionality, ie classes and references from a WSDL file.
The new Visual Studio 2013 does not give the capability to add web service reference, unless you specify an older .NET framework.
My question is the following: Can I combine somehow the new UI capabilities with my old code?
Is it possible for a example to have a dll with the old web references (.NET 3.5) and link it with a project with target the "Windows Mobile 8"?
Windows Phone 8 available APIs don't allow you to handle anything about connection parameters, so proxy address as well.

Categories

Resources