Windows embedded CE 6.0 USB printer driver - visual-studio-2005

I am going to write USB printer driver for Windows Embedded CE 6.0. But I dont know from where to start. Now I installed VS2005, patches of WinCE6.0, VS2005 team suite SP1, Platform Builder SP1, R2,R3.
Tell me how to start to write the driver, whether from VS 2005. In which application I am going to write the driver application. How to use platform Builder, how PB is helpful for me to write the USB driver.
I have Win CE 6.0 device is with me. Plz help me .
pcl.dll is not working for this device. plz tell me how to write driver, steps for it.

If you want to plug a printer into your CE device, start with the source found on your PC at:
C:\WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USB\CLASS\PRINTER
If you want your CE device to act as a printer, start with the source found on your PC at:
C:\WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USBFN\CLASS\UFNPRN
Clone the code to your BSP (do not modify the code in the locations above), make the modifications and then do the build/sysgen/makeimg as necessary. Iterate until you have what you want.

Related

How to simulate sensors with Visual Studio 2015 and Windows 10?

I'm trying to develop a simple Windows 10 app and I wanted to simulate a Pedometer for testing. How can I do that? And what about other type of sensors, can I simulate them too?
Ok I found a solution.
Microsoft provides sample drivers here and there you can find sensors folder. So download what you need, compile and deploy.
To compile you need Windows Driver Kit.
If you're deploying to a x64 machine the drivers has to be signed. I had trouble signing the drivers so I booted Windows 10 with no driver signature enforcement and deployed the driver using DevCon. Check the driver INF once compiled to see the installation instructions.

How to run Embedded Visual Basic on modern PC

I try to use this abandoned software to teach newbie with Visual Basic 6 knowledges only.
I know this software is not recommended for real-world development.
I have installed eVB (full install) on Virtual PC machine with Windows XP mode
I tried to run application on emulator. Firewall allowed this connection.
But I've got message:
Emulator for windows CE will not run within another copy of emulator for windows ce
As I mentioned this problem, with no workaround:
VPC and the Emulators use the same emulation engine, and so the emulators think you're trying to run them inside another emulator instance because they can't tell the difference.
1) Is there possible to run eVB on Win7 PC?
2) Is there possible to run eVB on VmWare PC with Windows 2000/Windows XP?
3) Is there free alternative to eVB for learning purposes only?
Yes, the emulators will not run in a VM.
I do question to value of using eVB, as it's definitely a dead technology, and there's very little use for the VB6/VBA syntax any longer.
If you're trying to teach the basics of programming in general the I'd get an Express version of Visual Studio and teach VB.NET or C# for a simple, standard desktop application. Most of the knowledge there would be transferrable to a device.
If developing for a Windows CE device is a hard requirement, then I'd probably try finding an old version of Visual Studio (2005 or 2008) and using VB.NET or C# in the Compact Framework for those. My guess is that your best route there would be to try to find the eval version of Platform Builder (Windows Embedded Compact 7) which would give you something like 90 or 120 days.
The express edition of the newest versions of Studio also allow targeting Windows Phone, which has an emulator and supports VB.NET or C#.
And of course you could even try using Xamarin Studio and target Mono against an Android emulator. Again, you'd get C# on a device, though the UI paradigm is way different than anything for CE or Windows Phone.
If you simply want to write BASIC code for am embedded device, Parallax has the BASIC Stamp, which has pretty cheap starter kits. If you're after .NET on an embedded device, Netduino might be what you're after (I think they have VB.NET support).
Really I guess the question is "what's the end goal?" To learn general programming? If so, just use a desktop machine to start with. To apply programming knowledge to an embedded device? Then get something with more up-to-date support.
Regardless of the goal, I have a hard time coming up with a valid reason for trying to use eVB.

Windows Embedded CE 6.0 USB Printer Driver

I am going to write USB printer driver for Windows Embedded CE 6.0.
But I dont from where to start.
Now I installed VS2005, patches of WinCE6.0, VS2005 team suite SP1, Platform Builder SP1, R2,R3.
Tell me how to start to write the driver, whether from VS 2005.
In which application I am going to write the driver application.
How to use platform Builder, how PB is helpful for me to write the USB driver.
I have Win CE 6.0 device is with me.
Plz help me .
When Printer connected to device, device gives error for "give the driver name for printer",
I tried by giving pcl.dll.
tell me how to use pcl.dll also
I would follow the documentation for Windows CE 5.0, I don't imagine WinCE 6 being much different.
http://msdn.microsoft.com/en-us/library/aa447572.aspx
Printer Driver Samples
...
Two printer driver samples are available to you: A generic printer driver, called Pcl.dll, and a USB printer driver.

WinUSB failing on non-development computers

Good afternoon,
WinUSB is working well on the development computer that I am using (Win XP SP3). I am able to download new firmware to the Cypress FX2, and then connect to the new USB device once it 'renumerates'. However, if I've tried the same code with the WinUSB driver on a few other computers (Win XP SP3, Win7 x64) and they both returned the error "A device attached to the system is not functioning." when trying to use CreateFile to get a handle to the USB device.
The devicePath was found successfully, so I'm not sure why it cannot connect to the device. Furthermore, the device manager states that my device is working properly. I'm curious if I'm missing something when compiling the code? I would guess that my development computer has something installed on it that the other computers do not? Or perhaps it's a power setting and the device is going to sleep (although I've fooled around with the Power Options on each computer to no avail).
Does anyone have any ideas? I've compiled under Visual Studio 2008, and have installed the Microsoft C++ 2008 Redistributable Package on the computers that I've tested on.
Thanks,
Giawa
Solved: The GUID that my driver was using was shared with another device on the system, which was returned instead of my device. The device just happened to not be installed on my computer. I've generated a new GUID and everything seems to work now.
Giawa

Windows 7 Driver for Print to XPS

The link to the Windows 7 DDK (or WDK) is not something I seem to be able to get to.
I need to write a driver that will convert the content to XPS and then do something with it. The "do something" is easy, but its the first part I'm not sure of.
I found links to the Win7 WDK but as I said above I can't get to it (my company has MSDN but I can't find it in the downloads).
As for the XPS part, I found this link which talks about XPS now available, and the resulting link to here doesn't seem to focus on drivers at all and seems more general.
I'm wondering if anyone can help with these two issues. Is writing a driver for Win7 much the same as Vista, in which case I can at least get started with the Windows 2008 WDK? And has anyone used this XPS filter pipeline to print to XPS with their own custom drivers?
Appreciate all help.
You can find a link to the Windows Driver Kit (WDK) 7.0.0 on the How to get the WDK page.
For driver development, XPSDrv drivers developed for Vista (and the downlevel redist for XP & Server 2003) are compatible with Windows 7. However, Windows 7 adds new Win32 APIs that can be used within an XPSDrv and help with manipulating XPS content and provide a driver-safe rasterization capability.

Resources