|
sravanthi.M wrote: and is the print code same for both dot matrix printer and normal printer.
The answer is yes and no.
Yes: If you are just issuing a "print" command from anything above a semi-intelligent terminal (a PC, for example), then the entire operation would be taken care by a printer driver. There will be no difference in this case.
No: If your code is going to run on a semi-intelligent or a dumb terminal, then there may be no 'broker' between your code and the actual device to shield you from the boiler-plate stuff. You will then have write code to incorporate the appropriate ESC sequences[^] of the printer attached. As you are talking about dot matrix printers, generally they must fully comply with the EPSON escape sequences (the standard). Mind you that these sequences may differ from one printer to another, depending on what kind of printer is it (thermal, dot matrix, laser, etc.,). So, you will have a separate "print" function for every type of printer that the program may have to work with.
If your program will be running in a dumb to semi-intelligent terminal AND has to work with multiple printers, then it may not be a very pleasant experience to write the code for it.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
You are welcome.
May I kindly ask you to avoid using SMS language (like PLZ, THX, U, R). It irritates a majority of the grown-ups. I will excuse your brevity if you had posted this from a handphone.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
ok sorry for your INCONVENIENCE.
Thank you
|
|
|
|
|
sravanthi.M wrote: u r rply
"you are Ripley"?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
How can the signal strength, MAC address and related information be obtained? (both connected and NON-connected APs)
I tried to use WMI, but it always returned garbage MAC addresses.
Please help!
Thanks!
|
|
|
|
|
Have you looked into any WinAPI that allow you to communicate with the command line (cmd.exe)? Their has to be a way to harnass the ipconfig information through WinAPI.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I have a working C# program. It's a gui that lets me access my parallel port. I would like to be able to convert it into a web page now. I've tried the copy past and start debugging approach. I think it's over my head.
I would like to know where to go or who to contact to have a pro work on it. I am willing to pay a programmer for a few hours of thier time. I will provide my working program and I can pay with paypal. Can someone please advise.
|
|
|
|
|
|
I was tempted to do that but he may actually want quality work done. I agree that here is definately not the place for the storm this will bring.
How is he going to assess the quality of the coder?
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Please don't cross post.
-
First you might find out if it's a simple or hard task.
Is it the parallel port on the server computer or the client computer that you want to access?
Despite everything, the person most likely to be fooling you next is yourself.
modified on Wednesday, October 22, 2008 2:22 AM
|
|
|
|
|
it's the parallel port on the server that I want users to be able to access.
|
|
|
|
|
Can any one clue me in on what to push in the search engine
so I can read the directories and file names from a open server
I want to be able to auto select what files to download instead of hand picking... (lol I can do that with flashget hand pick)
I have tried a few example for just a look around but they where not even close to getting of the start line...
Thanks for any words to search for... I like to read all about what ever once I get a good hit..
Thanks
Oh by the way I'm using VS 2008 C#
|
|
|
|
|
Normally you can't. Directory browsing is turned off by default, so the only sites that you could get that information from would be the ones where someone have chosen to expose this information.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
the server I'm looking is open for viewing
besides even if they do the blocks you can get the file if you know the directory and name .. I do it all the time.. right now I'm scanning the folder by using coded numbers..
the question was how to do it
NOT why not to do it...
|
|
|
|
|
CDBob2002 wrote: right now I'm scanning the folder by using coded numbers..
If you're talking about a "dictionary" style, where you try to download files from the server, guessing at filenames, this isn't an OPEN server and there is no way to get the directory contents from such a configured box. You've found the only method that's going to work, and it'll only work so long as the owners of the box don't notice you're blindly trying to download files. Once they figure it out, you'll be blocked from doing so.
|
|
|
|
|
still the wrong answer
still the wrong answer
still the wrong answer
still the wrong answer
if flashget get can do it why can't I
The server is open
Basically there site is set up so you have to go web page to web page just to get one file at a time..
I don't want to have to flip pages.
While I was sleeping last night I had my scanner going and have downloaded
58000 files... so what do you want to do flip 58000 pages or get then all at once.. this download was just a small part of what I have so far..
don't wory I'll find some thing...
I found something last night that is a C# library open source
once I wake up and the grandson leaves I'll hit it hot and heavy again
|
|
|
|
|
OK. So the server is available for browsing the file system. You get the directory in an HTML page, so parse the page to get the directory and filenames. A Regular Expression ought to do it nicely. From there, you build a list of URL's for the files you want to download and use HTTP to get them, one at a time. There is nothing in the .NET BCL that's going to do it for you.
|
|
|
|
|
Please don't reply if all you are going to do is B.S
I'm sorry I asked now...
anyway I have found parts of what I was after on yahoo
I just need to combine them into one... program...
Does Microsoft MVP mean Jokestersoft MVP
I think I'll go ask at the real M$ C# forums...
http://forums.microsoft.com/MSDN/[^]
|
|
|
|
|
I had this Idea to write an emulator to use firmware updates as plug-in modules. The program will be used as a help desk program for helping end-users configure thier internet routers. Basically what I would be looking to do is to be able to view and navigate the web setup many of these routers provide and to see where the settings need to go in order to provide step-by-step directions to the end-user. The program does not need to "emulate" a virtual network or anything like that or even bootup simulation. Just the web navigate pages, except I would like it to emulate default IP's(for the setup page) and the factory user/pass to log-in. So basically for a linksys WRT54G I could download the firmware's for every version and select which one the user has. Then I could navigate the pages and tell the user what setting go where and on which page.
Does this seem possible? Dlink has a web page similar to what I am trying to do, but I want to use C# to embed a web page inside a form which would have drop-downs for model/make/version.
|
|
|
|
|
This is quite an interesting idea, however it will be a very very difficult project.
Firstly, emulators are difficult to write. You need intricate knowledge of the hardware, so unless you work for the manufacturer your going to be doing a lot of reverse engineering. You would have to analyse the firmware (which is binary), try and understand what the firmware is doing, and from that, work out how the router works. This will be very very hard, it's not a project I would know how to do.
The easier way to do this would be simply to buy all the routers you want to work with, and take screen shots of all the pages. Then you could just display the screen shots when the user selected the router/version.
If you are insistent on trying to do something like this, the place to start looking would be the websites that have custom firmwares for the routers. These guys have at least begun to partially understand how the router works inside, and may be prepared to share some knowledge with you. My recommendation though would be not to bother, even if you have to buy hundreds of routers and take hours grabbing screen shots of each one it will still be quicker and easier than writing an emulator for just one router.
Simon
|
|
|
|
|
Hi,
I'looking for a little help regarding Windows API from C#.
First, let me explain what I am trying to do.
I'm opening an external application (Internet Explorer) from a C# App, and I want the window to open maximized and then remove the ability from the user to Mnimize, Restore, Maximize, Move and Size the IE Window. It was easy enough to open the Windows in a Maximized state and then use Win API to modify the Window style not to have a Minimize and Maximize button. Here is the basic code I used...
const int GWL_STYLE = -16;
const int SW_HIDE = 0;
const int SW_SHOW = 5;
[DllImport("user32.dll")]
public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
Process inet_pro = new Process();
private void button1_Click(object sender, EventArgs e)
{
inet_pro.StartInfo.WorkingDirectory = @"C:\Program Files\Internet Explorer\";
inet_pro.StartInfo.FileName = @"C:\Program Files\Internet Explorer\iexplore.exe";
inet_pro.Start();
inet_pro.WaitForInputIdle(1000);
int newStyle = 0x15CC0000;
Thread.Sleep(300);
GetWindowLong(inet_pro.MainWindowHandle, GWL_STYLE);
SetWindowLong(inet_pro.MainWindowHandle, GWL_STYLE, newStyle);
ShowWindow(inet_pro.MainWindowHandle, SW_SHOW);
}
This code sets the Window to a maximized state and removes the Maximize, Minimize and Restore buttons and also removes these abilities from the System Menu. But the problems I still have are...
1. Once you have set the style, the window is no longer locked in position e.g you can move it by dragging the windows titlebar.
2. The Window is sizeable, which it should not be if in true Maximized state.
I need to resolve these two key issues, and I was hopeing to do it with out having to implement any type of global hook, which relies on an external custom DLL. Any suggestions would be most appreciated?
Thanks
Shane
|
|
|
|
|
The best you can get is a fixed size window with no minimize/maximize button. Which would be fine exceptyou can restore the window by double-clicking the caption bar, and since you removed the maximize button you can't maximize it again.
So, you could always remove the caption bar too. Anyway, this is the closest i could get:
const uint WS_CAPTION = 0x00C00000;
const uint WS_BORDER = 0x00800000;
const uint WS_DLGFRAME = 0x00400000;
const uint WS_THICKFRAME = 0x00040000;
const uint WS_MINIMIZEBOX = 0x00020000;
const uint WS_MAXIMIZEBOX = 0x00010000;
const uint SW_MAXIMIZE = 0x00000003;
uint newStyle = GetWindowLong(inet_pro.MainWindowHandle, GWL_STYLE);
newStyle ^= WS_THICKFRAME;
newStyle ^= WS_MAXIMIZEBOX;
newStyle ^= WS_MINIMIZEBOX;
SetWindowLong(inet_pro.MainWindowHandle, GWL_STYLE, newStyle);
ShowWindow(inet_pro.MainWindowHandle, SW_MAXIMIZE);
You could try removing WS_CAPTION and see how that works out for you, but then the only way to quit is ALT-F4.
My current favourite word is: Nipple!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Thanks for the reply. But even with WS_CAPTION removed you still can move the window by clicking on the thin border at the top of the window.
|
|
|
|
|
I never saw this kind of coding before can somebody recode the following methods in a more simpler fashions.
private void SetFlag(CellFlags flag, bool val)
{
if (val)
flags |= flag;
else
flags "= ~flag;
}
public bool Removed
{
get { return (flags " CellFlags.Removed) != 0; }
set { SetFlag (CellFlags.Removed, value); }
}
modified on Tuesday, October 21, 2008 4:06 PM
|
|
|
|