Windows CE emulator on visual studio - visual-studio

I've installed visual studio 2005 and windows embedded c.e. 6.0.
How do I create a simple hello world program in visual studio and then port it to a Win C.E. emulator and run the same there.

Does this page help?
Quoted from there:
Your First Visual C++ for Windows CE
Application
Your first Visual C++ for Windows CE
application will be a simple
application, a WCE MFC AppWizard (EXE)
to be precise. This application will
have a single view that will have a
bitmap painted on it. We will also add
a menu item that when clicked will
evoke a dialog. This dialog will
contain one of the Windows Common
Controls, a progress control. Creating
the Basic Application
Download the sample application source
code.
To start your first Windows CE
application we will generate a shell
using the WCE MFC AppWizard. The
numbered list below will step you
trough this process:
1. Open Visual C++ and go to the File menu and choose the New item
2. Select the Projects property tab if it is not already selected.
3. Select WCE MFC AppWizard (exe) in the list control.
4. Type WCEFirstApp in the Project name edit box
When you finish, you will see the New
dialog box as seen in Figure 3.
Press the Next button.
WCE MFC AppWizard (exe) - Step 1 of 4
will appear as seen in Figure 4.
Notice that the selections are similar
to the MFC AppWizard except that there
is no Multiple documents selection.
6. Accept the defaults.
7. Press the Next button.
WCE MFC AppWizard (exe) - Step 2 of 4
will appear as seen in Figure 5. There
are several options on this page. You
can add support for Windows Sockets,
ActiveX Controls, Windows Help, and
Printing if your target supports
Windows CE 2.1. You also can choose
the type of command bar that you wish
to support. For this exercise we will
accept the defaults.
8. Accept the defaults.
9. Press the Next button.
WCE MFC AppWizard (exe) - Step 3 of 4
will appear as seen in Figure 6. You
can choose to include generated
comments, an option that I highly
recommend. There is no such thing as
too much documentation. There is also
an option to link dynamically or
statically with the MFC Library.
Accept the defaults.
10. Accept the defaults.
11. Press the Next button.
WCE MFC AppWizard (exe) - Step 4 of 4
will appear as seen in Figure 7. This
page gives you an opportunity to set
the base class for the view. It also
gives you an opportunity to set your
file names. Accept the defaults.
12. Accept the defaults.
13. Press the Finish button.
The New Project Information dialog
will appear as seen in Figure 8. Just
like all Visual Studio AppWizards the
wizards give you a final chance to
look over your choices.
14. Press the Ok Button.
15. Select Build menu and choose the Rebuild All item.
When the application is completed
building, you are ready to go on to
the next section.
Also see this.

Related

How to publish Windows Forms Control Library with Visual Studio 2022

I believe this is a question for beginners and I apologize if it was not asked in a right way. I use Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.2.2
The steps I take are:
In the Start Window that asks me "What would you like to do?" I select Create a new project. This takes me to a new window "Create a new project".
In the search field(Search for templates (Alt+S)) I enter "Windows Forms Control" and choose first result. The first result for me is: "C# Windows Forms Control Library(.NET Framework) A project for creating controls to use in Windows Forms(WinForms) applications". and then I click Next.
I click Create because for this question a name or anything else is not something that I have changed. That means(for me) that "Place solution and project in the same directory" is unchecked and that I use .NET Framework 4.7.2
After the project is opened I go to the Build option in the menu and look for the "Publish Solution" option but there is none.
Questions:
Is it possible to publish this(Windows Forms Control Library with Visual Studio 2022) or I just use .dll when I am finished ?
If it is not possible to publish or it is not possible to create some kind of executable file from Windows Forms Control Library why I am able to drag and drop controls like buttons and text fields and with that create some kind of UI?
If it is possible to publish please tell me how?
Is there some kind of list what we can publish or not when using visual studio?
Additional explanation: I followed this: https://learn.microsoft.com/en-us/visualstudio/designers/walkthrough-windows-forms-designer?view=vs-2022 and then at the end of this article there is a "Next steps" part where it says:
This article has demonstrated how to construct the user interface for
a simple calculator. To continue, you can extend its functionality by
implementing the calculator logic, then publish the app using
ClickOnce. Or, continue on to a different tutorial where you create a
picture viewer using Windows Forms.
And I followed the article that is behind the link "publish the app using ClickOnce" and tried to publish.
After some research(more than one try...) I have decided to ask a question here...
Thanks for your time in advance.

Webbrowser control no longer working after Windows Update

I have a custom project in VB6, which I was working with it since 3-4 years ago, now today suddenly I noticed that Webbrowser controls are not working anymore on my laptop (maybe after a windows automatic update - it's working on my other laptop)
The problem is when I double-click on Webbrowser components there are no default declarations for them and this text shows up in code section:
Private Sub WebBrowser1_SHDocVwCtl(ByVal Text As String)
End Sub
Please help me fix it and get it back to how it was before.
As #JimmySmith suggests, check that Microsoft Internet Controls is checked in your Components list (Project > Components > Controls tab > Microsoft Internet Controls.). If not, check it and hit Apply, then OK.
If it doesn't show up in the list, you can use the Browse button to look for C:\Windows\SysWOW64\ieframe.dll directly.
Other things that I recommend:
Run VB6 IDE as Administrator. Right-click on your Microsoft Visual Basic 6.0 shortcut and check "Run this program as an administrator" in compatibility properties section.
Select Windows XP (Service pack 3) as Compatibility mode.

Visual Studio Custom External Command Disabled

I have a PowerShell script that is bound to an item that I created in my External Tools menu in Visual Studio 2015.
When I execute it from the External Tools menu it works fine.
I tried creating a new command on the toolbar and I found the command by its number (visual studio refers to the External Tools by number as they appear in the list). The command appears on the toolbar but is disabled so does nothing when clicked.
Can anyone shed some light as to why the command is disabled and how I can enable it?
After playing about with the menus, it seems that there are a load of extra 'external commands' which are not in the menu.
I had assumed the last of my "external tools" was the last one in the numbered list. However when adding all of the external tools commands to a custom menu I can see that my tools show up and are labeled automatically with the correct name once added to the toolbar (instead of being named "external tool 8" etc.
I have 7 external tools but the "external commands" available go up to 24. My commands were numbered 6 - 13.
So it seems my commands were a subset of all the external commands available, and when added to the toolbar they do indeed work as expected.

Toolbox containing no items when I'm editing a dialog

I'm maintainig an old MFC application with Visual Studio 2013. Building the application works fine, but I'm unable to use the dialog editor.
When I open a dialog from the resource view, it displays correctly, I can click on the existing items, view their properties, move them etc.
But when I open the toolbox via the View-Toolbox command (Ctrl+Alt+X), all I get is an empty toolbox as displayed below:
Right click on the toolbar and "Reset Toolbox" doesn't change anything
Right click and then "Show all" shows an impressive list of tools, among those there is the Dialog Editor, but all items are inactive as shown in the picture below:
On the other hand when I create a new MFC project from scratch, the toolbox containing the dialog items works fine.
Does anybody have an idea what could be wrong?
FYI: in the meantime I use Visual Studio 6 (yes) for editing the resources.
There are two typical work arounds to get the toolbox back in Visual Studio. One is to reset the toolbox as you've tried. The other is to delete the “.tbd” files in your corresponding C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\12.0 folder.

Will VS 2010 display recent used project and solution in the context menu of the start menu?

Start menu in Windows 7 has a feature: a programs, pinned to the top, can show a context menu with recently used files:
alt text http://img65.imageshack.us/img65/5149/contextmenustartmenuwin.png
Will Visual Studio 2010 be able to display also recently used Projects and Solutions?
It is possible to pin solution files to the recently used file list.
First make sure you already have Visual Studio pinned to the Start Menu.
Next, drag the Solution file on to the Start Menu so that it is pinned in the main list.
Now select the the Recently Used Files button for Visual Studio so that the list is showing.
Drag the solution file from the main list into the recently used file list.
You can now remove the solution file from the main list.
Beta 1 doesn't seem to support this yet. Its easily possible by using the new Taskbar APIs and specifically the custom categories feature. I think their main problem might be that the solution files are associated with an app called VSLauncher.exe (this small app determines what version of VS to load when you launch a SLN file).
If you want to "pin" your fav solution files to any version of VS, one option this is (I currently used this with VS 2008 and 2010 Beta 1:
Open Explorer and browse to any SLN file you want to pin.
Drag it and pin on the taskbar (it will pin to VSLauncher.exe; this is okay)
Now just repeat the steps for other SLN files.
When you click on a SLN file from the above pinned program's jumplist, another instance of VS2010/VS2008 will launch. It won't show your recent projects or solutions, but atleast it allows you to pin your fav/recent solutions manually. I think you can use this for CSProj or other project files as well.

Resources