Developing a Managed Code Application for OS Design
Tools and Setup
- Tools Required: Visual Studio .NET 2003
- Target: Create a C# managed application targeting OS design.
Setting Up the Environment
- Launch: Ensure the Platform Builder Manager has loaded the image into your target design.
- Remote Tools: Use 'Zoom In' to connect to your Apex platform.
- Network Config: Assign a static IP address to your target designer for communication.
- Launch Visual Studio 2003: Open and prepare the environment by selecting the target framework.
Creating a C# Application
- New Project: File β New Project β C# β Smart Device Application
- Naming: Name the project (e.g.,
hello_apex).
- Set Properties: Modify formβs properties (e.g., title
Apex App Demo C#).
- Adding Controls: Drag buttons from the toolbox and set properties (e.g.,
btn_say_hello).
- Event Handling: Double-click the button to generate event-handling code.
- Code Example:
MessageBox.Show("Hello from Apex Infotech");
Deployment and Debugging
- Set Target: Configuration Manager β Set target device (e.g., Windows CE device, IP configured).
- Smart Device Authentication Utility: Run and configure
sdcauthutildevice.exe on both VS 2003 and target device.
- Build: Ensure no errors and build the solution.
- Deploy: Deploy the solution to the target designer.
- Debug: Insert breakpoints (right-click β Insert Breakpoint or F9) and run the application to debug.
VB.NET Application (Optional)
- New Project: Follow similar steps for VB.NET.
- Naming: Name the project (e.g.,
apex_say_hi_vb_demo).
- UI and Event Handling Example:
MessageBox.Show("Hello " & txtName.Text)
- Deployment: Follow the same steps for configuring the device and deploying.
Common Issues
- Connectivity Problems: Ensure Smart Device Authentication Utility is running; reconfigure if needed.
- Deployment Errors: Restart the utility for a successful connection.
Additional Resources
- Learn more about Visual C# and VB.NET.
- Explore additional classes and labs on Platform Builder and Visual Studio .NET 2003.
Conclusion
- Getting started with Visual Studio .NET 2003 and Platform Builder for managed application development.
- Encouragement to explore further classes and opportunities for enhancing skills and improving job market prospects.
Thank you and good luck with your projects!