How to get folder sharing on Windows Mobile emulator to work - c++

I am developing an application using Windows Mobile 5.0, under embedded VC++ 4.0, and using the emulator for debugging. I need to copy some files onto the emulator and planned on using the option to map a directory to the emulator storage card. Problem is, this option is greyed out when I run the emulator. From the emulator help i get
'On the Emulator, run a Windows CE OS that supports the ability to connect to a directory on the development workstation. '
How do I accomplish this? I have seen the command line option /sharedfolder but can't get at this from platform manager under EVC++ 4.0. All comments welcome.

I have the WinMo 5.0 SDK installed on Visual Studio 2005 and the option to map a directory works fine for me. I'd guess it's an issue related to eVC, which is pretty old by now. My recommendation is to try VS 2005 or 2008, there's a free 90-day trial you can download from microsoft:
http://msdn.microsoft.com/en-us/vstudio/products/aa700831.aspx
Also, I'd note that VS is way better than eVC in many aspects. I used eVC and them moved to VS 2005, many "heavy templates" I had which wouldn't compile in eVC were compiled OK in VS 2005.

Related

VS 2017 RC missing Windows 10 Mobile Emulator

I installed Visual Studio 2017 RC, and in general I'm really impressed! One problem, however, is that I can't figure out the proper method of installing the Windows 10 Mobile Emulator. I have installed the Windows 10 SDK as well as the Emulator itself. My Programs and Features clearly shows these two items are installed:
. Windows 10 for Mobile Image - 10.0.14393.0
. Windows Software Development Kit - Windows 10.0.14393.33
I also have properly selected the Cordova tools during the installation of VS 2017 RC. I can create a new JavaScript project using Cordova and it looks to be correct in the Solution Explorer.
But when I launch Visual Studio 2017 RC and then inspect the Solution Platforms dropdown, it only has these options:
Android
iOS
Windows-ARM
Windows-x64
Windows-x86
Configuration Manager...
I do not see any option for Windows 10 Mobile.
What am I missing?
Nevermind.... Somehow I installed more stuff and then found what I am looking for by selecting Windows-X86, and then there are options for Mobile Emulator 10.0.14393.0 in various memory and screen configurations. Just keep clicking things until it works, I suppose... Seriously, probably my own fault. Moving on!

Creating WDM network driver targeting WinXP x64 - where to start?

I downloaded Visual Studio Community Edition with all the C++ install options. Then I installed WDK targeting WinXP. However it seems like VS can't recognise this and so there is no option in the new project wizard to create an WDM driver.
I was relying on such option because I haven't been creating drivers before and I don't know much about how it happens and which tools am I allowed to use. I hoped VS automated IDE would help me with this.
Any ideas how to start in such case?
EDIT: Maybe community VS version doesn't support creating drivers?
From my experience with WDK: It has its own compiler. You can use VS only as text editor. At compile time, open WDK console, and run the corresponding .bat file (for debug/release/x64 etc.).

Visual Studio C++ and Android Emulator?

I want to make a game for android, but I don't want to program in java.
Visual Studio have support for Android applications in C++, When I start / debug application it say:
Severity Code Description Project File Line
Error Error installing the package. The device '' is invalid or not running. Please switch to another device, or use the Android Virtual Device (AVD) Manager to start a compatible emulator, or connect a compatible Android device. Android1_test.Packaging 0
I have installed xamarin emulator but I can't debug my project into that, and i don't have installed "Microsoft Visual Studio Emulator for Android", when I try to install it I get an error "Setup blocked" and this:
This computer does not support the Visual Studio Emulator for Android, which requires a 64-bit Windows 8/8.1/10 Pro/Enterprise edition or Window Server 2012 or above and a computer that supports Hyper-V. For more information, see System Requirements for Visual Studio Emulator for Android (https://msdn.microsoft.com/en-us/library/mt228280.aspx).
Do I need to install "Hyper-V server 2012..." or something?
EDIT: I have Windows 10 Home and it doesn't support Hyper-V. Thanx you Microsoft (Windows 10 Pro ($129.99) support Hyper-V)
Android with API level 9, released a way to create true C++ applications. This methodology is called NativeActivity and many popular game engines like Unreal and others use this mechanism. Visual Studio comes with the Visual Studio Android Emulator which you can download for an OOTB experience.
Hopefully this helps, if you still have other questions or issues with your experience please feel free to contact at aasthan#microsoft.com.
The
The Visual Studio Emulator for Android is very nice to use, but as you've discovered, it's only available on machines running a version of Windows that supports Hyper-V, which does not include the Home versions. You'll need a Pro version to get that functionality. Fortunately, that's not the only option for developing an app for Android with Visual Studio. The Android SDK comes with a basic emulator that will run on Windows 7, 8.1 or 10 Home editions, although it's not as performant (read: it makes snails look speedy). Intel has a more tolerable solution called HAXM (Hardware Accelerated Execution Manager) that you can try. HAXM is an alternative to Hyper-V specifically designed for supporting fast emulation for Android development (in other words, you can't run both HAXM and Hyper-V at the same time). To use it, you need to have a 64-bit Intel processor that supports VT-x and XD, the instructions used to enable VM support. Intel provides installation instructions here.
Another option is just to hook up an Android device with a USB cable. Most devices let you enable Developer Options in the Settings. There are some common instructions on enabling Developer Options here, but in some cases you'll have to look up how to do that for your specific device, because it varies. When you connect an Android device to your computer with Developer Options for USB connections enabled, the device appears in the drop-down list of deployment targets in Visual Studio. You can deploy code to it directly and debug it remotely the same way you would with the emulator. Be sure to match your build configuration with the architecture of the device you're targeting. The emulators use x86 code, while most (not all) Android devices have ARM processors.

Deploy a C program compiled in VS2010

I have a compiled an older C++ program that runs fine in debug mode in VS2010 converted to VC++ 6 but I have no idea how to package or deploy the application.
VS2010 may not have anything to do with deploying the program at all but I thought I should mention it.
The "release" folder not only contains the executable but some "obj", "tlog", "vc100.pdb", "exe.intermediate.manifest" and "lastbuildstate".
This application is being installed on Windows Mobile OS (hopefully). It isn't as simple as copying the executable to the device is it?
Do I need to create a cab file or msi and, if so, how?
I am absolutely new at this being spoiled in C# and MVC for far too long!
Visual Studio 2010 does not have any of the Smart Device compilers (managed or native) required to even build for Windows Mobile (not Windows Phone). You must use Visual Studio 2008 to build, deploy and/or debug.
EDIT
FWIW, Studio 2012 will have support for Smart Devices (Studio 2010 still won't get support) in Q1 of next year. Backward-compatibility has yet to be announced, but it's always possible that you'll be able to develop for WinMo devices using the ARM compiler. There's a video here detailng some of the features.
Have you done a search on google yet? While I don't know anything about deploying to a windows phone, a quick google search found a few hits.
I searched for 'deploy windows phone app' and found a few things. Among which are:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/gg588378(v=vs.92).aspx
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff928362(v=vs.92).aspx
Last of all, it looks like this has been asked before on this website. For instance:
Can you install you own apps on your windows 7 phone

VS.Net 2005 required on Build box with .Net 2.0 C++ Projects?

We have a build box that uses CruiseControl.Net and has been building VB.Net and C# projects using msbuild. All I have installed on the box as far as .Net is concerned is .Net 2.0 SDK (I'm trying to keep the box as clean as possible). We are now trying to get a C++ app building on this box. The problem we are running into is that the header files (e.g. windows.h) are not installed with the SDK.
Do I have to install VS 2005 to get this to work?
Edit:
As a couple people have answered, I had actually downloaded the 3.5 Platform SDK, but the applications built on this box MUST run on boxes that do not have 3.5 installed. By installing the 3.5 SDK on my 2.0 build box, am I compromising my build box?
Edit:
I'm going to leave this as unanswered, but thought I would add that I went ahead and installed Visual Studio on the box and all is well. I hate having to do that, but didn't want to run the risk of having a 3.5 SDK on my 2.0 build box. I would still love to hear a better solution.
Visual Studio is not needed, but for C++ you need the Platform SDK as well:
http://www.microsoft.com/downloads/details.aspx?familyid=484269E2-3B89-47E3-8EB7-1F2BE6D7123A&displaylang=en
Edit: There is also one for Windows 2008/Vista, not sure which is the correct one:
http://www.microsoft.com/downloads/details.aspx?familyid=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en
No, you have to install the windows platform SDK.
You'll need to download this:
http://www.microsoft.com/downloads/details.aspx?FamilyId=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en
Edit: #Michael Stum
You need the Server 2008 / Vista / .NET 3.5 SDK version.
Depending on what you are using in C++ (MFC, ATL, etc) you are probably going to have to install Visual Studio Professional (not express) as a lot of the libraries and headers are part of Visual Studio and not included in the SDK or Visual Studio Express (if you are doing managed C++ using .Net as the main framework then installing the SDK will be enough). We run our build boxes on VM's and so like to have as little installed as possible, so I spent a fair bit of time trying to get things working by installing as little as possible and for our C++ I ended up having to install Visual Studio.
I don't see why having .NET 3.5 would comprimise the build box - 2.0 and 3.5 co-exist without a problem. The only concern I could see would be a developer upgrading a solution to VS2008 without your "permission" and the build not failing...
In general, you need some set of SDKs (Software Development Kits) to be able to build, and some set of redistributable packages to run.
In case it's not obvious, you should be testing your product on an otherwise clean machine before you ship, so you know you got the dependencies right.