|
Thanks for that, however:
1. I'm not the one asking for an FTP solution; you replied to the wrong message.
2. This is the C# forum, no need for VB code.
3. And why would we use P/Invoke when .NET itself has what is required.
|
|
|
|
|
Apart from that, what have the Romans ever done for us?
|
|
|
|
|
Pete O'Hanlon wrote: what have the Romans ever done for us?
Lots of good things came from the Romans.
They gave us nice roads, connecting major cities, sometimes in remarkably straight lines; admittedly, they haven't been upgraded soon enough (the roads I mean), so now we sometimes have a bit of a jam.
And then they gave you the Hadrian Wall, to protect you against neighboring savages. How can you forget all that?
|
|
|
|
|
Not a Monty Python fan then I take it. Clickety[^]
|
|
|
|
|
Under other circumstances, yes, I am, very much so. I do appreciate the classics.
Questions in programming forums are always taken seriously though.
Well, maybe not really always...
|
|
|
|
|
Forgot to mention, I also appreciate Cleese's more serious stuff: his business training movies, seminars, etc. Enjoyed a couple of interviews he gave. Quite a guy.
|
|
|
|
|
My dear friend,
I havent told you to copy and paste all the APIs in C#.
You can you these APIs in C# only the syntax is different.
Regards,
|
|
|
|
|
I have used this sample Multi-Y Demo from the ZG Wiki site to build a graph that has 4 Y Axis points and the X axis is time based.
The first time through all the y axis stuff works as expected. The 4 items are of dissimilar values and the ranges in the y legends range correctly.
For example
y1 legend has a range of 15 - 35
y2 legend has a range of 85 - 90
y3 legend has a range of 6 - 16
y4 legend has a range of 4 - 24
The from then on only the first 2 y axis legends range correctly but 3 and 4 seem to use the existing y1 and y2 values.
For example
y1 legend has a range of 15 - 35
y2 legend has a range of 85 - 90
y3 legend has a range of 15 - 35
y4 legend has a range of 85 - 90
So I have been unsucessful in trying to clear all y legends.
I have tried...
zg1.GraphPane.CurveList.Clear();
Again it works the first time but not the second.
Has anyone ran into this? Is there a way to dispose and then re create the control programatically so that it would run like it was the first time?
Any Help Would Be Appreciated
rafone
Statistics are like bikini's...
What they reveal is astonishing ...
But what they hide is vital ...
|
|
|
|
|
I have some image url, such as http://images.csdn.net/20101130/2.jpg[^]
I want to download it to local disk using the WebClient, but error.
WebClient webClient = new WebClient();
Uri uri = new Uri("http://" + address);
webClient.BaseAddress = "http://" + uri.Authority;
webClient.DownloadFile(uri, fileName);
The local *.jpg display html label. <!--
This file is used for request transmitted from lighttpd or nginx.
-->
|
|
|
|
|
your code worked for me.
suggestions:
1. enter your error message in the Google search box.
2. if that does not help, tell us the exact error, all of it, and point us to the line it mentions, if any.
|
|
|
|
|
Hi,
I want to develop a simple POS machine software for a supermarket.. It seems that everything is fine but I just want to know how can I open the cash drawer from my C# application regardless of the machine brand and model?
Thanks,
Jassim Rahma
|
|
|
|
|
Again I must tell you to stop flooding forum with question only from your side.
kindly follow my suggestion what I gave you on ASP.NET forum, Please.
|
|
|
|
|
if your subject line is any good, then typing it into either the Google search bar, or the CodeProject search bar, would yield the answer you want. Now start learning to search.
|
|
|
|
|
You can't. Any question of the format "how can I <do some hardware function> from my C# application regardless of the machine brand and model" will have the same answer. In situations like that you code for the most popular hardware configurations. How many hardware types you include depends on the market segmentation of the hardware. In other words if 2 vendors cover 80% of the market, 2 is enough, but if to get 50% market penetration you need to cover 4 vendors, you might want to go 5 or 6. Then if you have built a product that is useful enough someone may pay you to add in other hardware platforms.
|
|
|
|
|
Hi,
I have below problem.
An XSD schema file is converted into a C# class via XSD.exe.
Object of the C# class is stored into an object pool.
When a cunsumer needs a particular type of object, he will scan through the object pool and get the required object.
problem here is when the cunsumer is scanning the object pool, how will he identify the different types of object,
since there will be lot of different type of objects in the pool?
I want to make my objects self explanatory, so that the cunsumer can identify them and consume them.
How do I achieve that?
Thanks in advance
|
|
|
|
|
I don't think you're explaining yourself very well; I'm really unsure about what you're asking.
The code generated by XSD.exe, can you edit this? Can you change the names/re-arrange the namespaces to do this?
You could also look into attributes[^], which are a way of providing information about a class at the class level (rather than at the instance level). From what you're saying, I can only guess at attributes for the moment.
Could you explain further what you're trying to achieve?
|
|
|
|
|
Hi All,
sorry for my bad english.
I need your help for reading a driver name available in the "Device management" of O.S.
Example, I install an USB driver associated with an internal COM PORT assigned from O.S., and I need to find this COM PORT associated at this driver.
I reading all com port of O.S., but what's the right one?
Thanks a lot for any suggestion.
Alex
|
|
|
|
|
I don't know about getting the driver name, however using WMI class Win32_SerialPort one can obtain a lot of information, e.g. there are strings such as Caption, Description, DeviceID, Name. Not all of them are always present, however they should suffice to recognize the port you're looking for.
|
|
|
|
|
Thanks Luc, I try this solution.
Alex
|
|
|
|
|
You're welcome.
|
|
|
|
|
First, sorry the subject title looks like an article name.
I have a pdf document and has a button embedded using javascript. Is there a possible way i can develop a C Sharp application to click the button? Not me to click it
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
I would have a look around at C# PDF libraries like PDFSharp[^] and iTextSharp[^]. There are ones out there that will allow you to print PDF documents.
Furthermore, I think trying to click the JavaScript-embedded button from C# is the wrong way to look at this - why would you try and run JavaScript inside a PDF that is open in memory in a C# application, especially when the JavaScript is probably dependent on Adobe Acrobat's particular implementation of JavaScript and its API? Why not just print it with your C# code?
Do you get what I mean? I thought I would just add that to explain why I didn't tell you how to click the button. I'm not trying to shoot you down, just shed some light on my thought process
EDIT: Brainwave! You probably don't even need a PDF library if all you're trying to do is print a PDF. Take a loot at the Adobe Reader's command line reference. Have a look at this post on Stack Overflow[^]. It shows two ways of printing with Adobe from the command line.
In C# you can achieve this by using System.Diagnostics.Process[^] class. This link shows you examples of starting a process.
|
|
|
|
|
HELP, WHAT're the errors!!! ERROR - unsae
Error 1 Unsafe code may only appear if compiling with /unsafe C:\Visual Studio 2010\Projects\Unsafe\Unsafe\Program.cs 6 24 Unsafe
Error 2 Unsafe code may only appear if compiling with /unsafe C:\Visual Studio 2010\Projects\Unsafe\Unsafe\Program.cs 10 31 Unsafe
using System;
class Unsafe
{
unsafe static void SquarePtrParam(int *p)
{
*p *= *p;
}
unsafe public static void Main(string[] args)
{
int i = 5;
SquarePtrParam(&i);
Console.WriteLine(i);
}
}
|
|
|
|
|
The error is saying you must use the /unsafe switch to compile code that contains the unsafe keyword. Go to the properties of the project, under the build tab and look for the checkbox "Allow unsafe code"
I know the language. I've read a book. - _Madmatt
|
|
|
|
|