|
Hey guys,
I'm developing an application that a user can design and print labels for CDs and DVDs. I'm wanting to add the functionality to print directly on the disk if the printer has the capability. The question is: How do I find out if the printer can do direct disk printing? The .Net framework doesn't seem to provide an interface for interacting with such printers. I have wrote a number of manufactures asking for advice but they didn't seem interested in talking to me when they found out I wasn't apart of some big company. Can you pros here a CP help me?
Cheers,
Richard
If you could rent a programmer a hour and a half for a dollar and a half, how much would he charge for 10 hours?
|
|
|
|
|
Certain windows OS'es such as Vista and Windows Server 2003 with SP1 can create partitions more than 2TB in size using GPT. Suppose I have such machine with single partition spanning 3TB in size under drive letter D. Would a regular windows XP 32bit machine (which do not support GPT by the way) have any problems connecting to that partition when mapped to \\machinename\D$? Any issues when reading or writing data?
Anybody has experience doing something like this?
Thanks.
|
|
|
|
|
The SMB protocol used by Windows file sharing doesn't deal in disk offsets. It asks the server to open the file for it, passing the filename to get a handle. The fact that D$ is the root of the filesystem is irrelevant.
The SMB protocol supports 64-bit offsets for read and write operations, so you can manipulate very large files (> 4GB).
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
I'm not sure you understood the issue, either that or I'm not seeing definitive answer to my question in your reply.
See this link:
http://www.carltonbale.com/2007/05/how-to-break-the-2tb-2-terabyte-file-system-limit/
Most of the older windows operating systems (including windows xp 32 bit) only support MBR partitioning meaning they cannot create or work with partitions more than 2TB in volume. To get around this problem Microsoft introduced GPT partitioning in latest operating systems. With GPT there are virtually no limits on the partition size.
The problem here is not connecting to the drive root or working with files >4GB. It's whether the system that does not support GPT such as windows xp 32bit can connect to a network share >2TB in size and work correctly with it.
I would hope that network protocol would abstract it all away. However, I have read reports that xp had problems writing to linux (yes, I know, slightly different) network share that was 3TB in size. So I wanted to ask if anyone knows if that really is a problem or not.
|
|
|
|
|
I am building an x64 kernel mode driver with WDK 6000. Two intrinsics are used: __readmsr and __writemsr .
As mentioned in MSDN Library, it requires to include <intrin.h>. But there is no such file in the inc folder and the subfolders of WDK 6000!
What is the correct include file for these intrinsic functions? Thanks!
Maxwell Chen
|
|
|
|
|
The intrinsic functions are a compiler feature, not a WDK feature. Look in the compiler Include tree. For example, C:\Program Files\Microsoft Visual Studio 8\VC\include.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
I bought a fanless Via-based system with 256 mb RAM from eWayCo and have been trying to get it to boot Win XP, which it claims it should be capable of (not just the embedded version). The machine has no floppy drive or cd drive, just an IDE slot.
Using an IDE-CF adapter on another computer, I was able to install XP to the CF card, disable virtual memory and install all the XP updates.
Plugging the adapter into the fanless system, I can boot and it displays the XP boot menu ("Your computer didn't start correctly last time...") and I choose safe mode. Everything goes fine until it trys and loads gagp30kx.sys, which I understand is a Via video card driver. I modified boot.ini to allow me to boot into VGA mode, which just displays a blank screen.
I know this is a long shot, but any ideas on how I might be able to get this thing to boot?
Thanks!
modified 12-Jul-20 21:01pm.
|
|
|
|
|
We recently went through this with a (VIA) Jetway ITX board.
Try installing the operating syatem from an external USB CD drive.
You may have to make changes to the BIOS settings to get the system to boot from the CD.
|
|
|
|
|
I've tried this with a couple of USB CD drives, and I was unable to get the device to be recognized so that I could off of it. Do you know of any boot environment, like the old windows boot disks with CD support, that I could use to load drivers for the cd driver to start the installation?
edit: this would have to boot off a flash drive
modified 12-Jul-20 21:01pm.
|
|
|
|
|
The motherboard's bios should support booting from a CD. The windows XP installation CD is bootable.
On our machine we did have problems with the factory BIOS settings. The system would not boot from a USB CD. I finally solved this problem by enabling all appropriate USB options.
Another possibility is to attach the required hardware (CD, Floppy, etc.) directly to the motherboard.
|
|
|
|
|
There is a site "bootdisk.com" or "bootdisc.com" that has tons of bootable images.
|
|
|
|
|
I ended up getting this working by making a flash drive a bootable XP install.
Thanks for the suggestions
modified 12-Jul-20 21:01pm.
|
|
|
|
|
You should install on the hardware the box needs. Just install to a normal harddisk on the fanless system, then use another comp to pull an image and write that to the CF-card.
Cheers,
Sebastian
--
"If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
|
|
|
|
|
I don't have a CD drive on the fanless system and I am unable to boot my computer with off a usb cd drive I have. I've tried booting over PXE but I can't find any free software that seems to work and I've tried creating an image in a virtual machine with very generic hardware cloning the harddrive contents to a CF card, but that didn't boot either.
Any ideas?
Thanks!
modified 12-Jul-20 21:01pm.
|
|
|
|
|
I don't understand, if the system has an ide slot, (40 pin parallell ATA), why can't you connect both an HD and a CD to the cable and make an installation on the HD?
When you have installed the HD then you move an image to the CF card.
|
|
|
|
|
So I went to look at a printer issue tonight, and there's no real issue, but when I finally got an invoice printing, it takes several minutes to print a single document.
I haven't worked with dot matrix for about fifteen years, so I'm a little rusty, but I'm guessing it's printing 'fancy' instead of draft mode. I may be wrong, but it just looks like if I set it to draft, it won't get through all three sheets. Is this a valid concern? I cant test now as the printer is very elsewhere.
|
|
|
|
|
Does it self test ok?
Has anybody been playing with the dip-switches?
Is handshaking ok?
Is the print-head motor and gearing/belts ok?
modified 1-Aug-19 21:02pm.
|
|
|
|
|
It works, it just takes more than two minutes to print a one page invoice.
|
|
|
|
|
Brady Kelly wrote: it won't get through all three sheets.
Changing to Draft mode won't change how hard the pins strike the paper, so give it a try. The current mode, however, may be double-striking, or using a font that's wider than normal to make a clear third copy. It's worth playing with it, though, and you can't hurt anything (so long as you remember what the original settings were and restore them later). You might also check the settings to see if bi-directional printing is enabled. That can make big speed difference.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Hi
I have a problem. I want to detect USB Disk, but when I use GetDriveType, fuction return 3 drives instead 1 (it also return floppy disk and remote hard drive). I what to know alternative of GetDriveType.
|
|
|
|
|
Hi,
you can use WMI classes to get more details, such as the interface ("USB").
However it is not that easy, and it keeps getting more and more complex to
figure out a general solution as more device types emerge: you have to discern
USB floppies, USB hard disks, USB memory sticks, USB DVD drives, etc.
However an ad hoc solution to a specific problem is most certainly doable,
given time and lots of googling.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
I think that using WMI it's a wright way and maybe connect to ("system evets") & ("USB") interface.
Thanks for help!!
|
|
|
|
|
I'm looking for some kind of toolkit used for building drivers.
I know of two:
Compuware has retired DriverStudio since 2006 and I cannot find any replacement for it from Compuware. So building a driver for e.g. 64-bit Vista would be out of the question with an old version of DriverStudio.
Is really Jungo the only alternative out there?
Of course it's possible to build a driver with only the DDK, but I figure that the benefits of using a toolkit outweighs the drawbacks.
Any tip is appreciated.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Fat_Boy develops drivers for a living, drop him an e-mail via CP and ask him what he uses.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Mmm, that's a thought, but I'm rather reluctant to sending personal mails.
I know I get somewhat upset when people are emailing me directly asking for help, it kind of invades the privacy...
Well, that's how I interpret the forum guidelines and since that's how I would like to be treated, I treat other members the same way.
But it's a good idea otherwise, thanks.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|