|
Hi there
Iam trying to compile a simple vector draw program, but when shapes are drawn it will not give a smooth picture of the shape, i have heared that rubberbanding is the way to do it but haven't had any succes.
Can anyone shed some light on it for me
Many thanks
Sam
|
|
|
|
|
Are you using the WebImageViewer? It has a build in rubberband
~Alexander Kent
|
|
|
|
|
I have a C# application, which is using a several dlls. Sometimes one of dll's is missing, then exception is thrown with message like "The "name.dll" one of it's dependencies is missing". In this case the user (and me) doesn'n know which dll is missing. How can I get it's name at run time?
|
|
|
|
|
|
i've a problem on writing a source code for a bus company with 2 choices:
When invoked the program should present the user with two choices and let user
choose by inputting corresponding number:
1.Make a reservation
2.Sell a ticket.
If user choose (1) the program should,
1.Prompt user to input Bus name and find the file with that name, if not found create
a binary file with given name for keeping reservations for that bus.
2.Create a structure with all information needed to record a reservation.
3.Check for consistency that the seat is not taken already and the bus is not full.
4.Write the reservation into the binary file for chosen bus maintaining consistency.
5.Thank the user and exit.
If user choose (2) the program should,
1.Ask the user to input the name of bus in which reservation was previously made.
2.If the bus file does not exist, inform the user of the problem and repeat step 1.
3.Ask user input name and seat number reserved
4.If name and seat number are correct, mark the seat as sold and record amount of
money paid for the seat.
5.Finally the program should thank the user for using the program and display a
pretty report showing the current status of chosen bus in terms of which seats are
reserved, which ones for which the ticket is sold and total revenue collected so far.
nkacha
|
|
|
|
|
And what are your concrete problems or do you expect us to write the whole application for you?
www.troschuetz.de
|
|
|
|
|
This looks a lot like a homework assignment.
We can help you if you post specific questions, but we'll not code your entire application
Yes, even I am blogging now!
|
|
|
|
|
hi man,
so you have C# in school? Where's the problem? Screen IO? System.Console ...
File IO? System.IO.File ... Algorithm? If it is so, don't drink so much alcohol, or get some sleep, student!
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Nice job of cutting and pasting your homework assignment! Unless you start writing the code yourself, you will never get any help from us. We help those who help themselves.
Now, if you want someone to write your program for you, just send a cashiers check for $5,000.00US, drawn on a US bank.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i am using a vc++ 6.0 dll that is returning a 8 bit per pixel graycsale image byte buffer that i want to display into my picturebox
currently i am using
System.Drawing.Bitmap NewBmp=new Bitmap(640,480,640,System.Drawing.Imaging.PixelFormat.Format8bppIndexed ,(System.IntPtr)buff);
my image is grayscale and the format but the constructor is accepting is only Format8bppIndexed which is collored hence macking mess with my bitmap colors
i also tried to use stream but my buffer is not being converted to bitmap and eror is recieved
can anybody help me show my 8bpp inage byte buffer (byte*)in picture box
thanks
|
|
|
|
|
Does anyone actually know how to create a timelimited try out version of an application that is supposed to work offline?
Considerations: I can't really trust the computer clock because of the possibility that the user can easily change it to gain more time for the application
|
|
|
|
|
Software protection is hard. There are tons of good (and bad) articles about it on the web, I suggest you to search on Google about it.
Depending on the price of your product, you can use a hard-lock such as a HASP4-Time that has an embedded, unchangeable, clock.
You can trust the machine's clock, but only to measure time spent inside the program, not between invocations.
Yes, even I am blogging now!
|
|
|
|
|
I think i solved parts of the problem. You can always get the number of ticks that has elapsed since a reference date i think it is first of January 1973. So that should solve the problem, since you are no longer independant of what date or time the clock is set to.
However another problem remains and i'm afraid it can not be solved completely. How do you asure that the application has already been installed and used on a computer?
You can put a registry key that tells that the application has been installed on the computer. However if someone finds out that key, he can just delete it and the application will start up thinking it is the first time it is started on that computer. Of course you can hide that key really well leaving a difficult task for the hacker but still... there is no 100% secure way of insuring that the application has been installed only once.
|
|
|
|
|
Hmitosh wrote:
I think i solved parts of the problem. You can always get the number of ticks that has elapsed since a reference date i think it is first of January 1973. So that should solve the problem, since you are no longer independant of what date or time the clock is set to.
That is the clock! You have to count the number of ticks that go by while you app is running. You cannot depend on any system clocks, only the tick of a timer internal to your app.
Hmitosh wrote:
However another problem remains and i'm afraid it can not be solved completely. How do you asure that the application has already been installed and used on a computer?
You can put a registry key that tells that the application has been installed on the computer. However if someone finds out that key, he can just delete it and the application will start up thinking it is the first time it is started on that computer. Of course you can hide that key really well leaving a difficult task for the hacker but still...
There's the problem! For which is there no solution.
Hmitosh wrote:
there is no 100% secure way of insuring that the application has been installed only once.
You said it yourself...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I have a problem I've been trying to solve for a couple of days now. I posted it before but couldn't get an answer that worked so I'm trying again.
I'm serializing an arraylist containing my own classes to a file. It works just fine. I can deserialize this again solong as the application doing the deserializing is the same as the one doing the serializing. When trying to deserialize in another application I get an invalidcastexception, as far as I can see this is because the programname saved in the file is not the same as the programname trying to deserialize. Can someone please tell me if and how I can work around this?
Thanks!
Andreas Färnstrand
|
|
|
|
|
|
Thanks Daniel!
With some modifications that worked perfectly.
Andreas Färnstrand
|
|
|
|
|
Hi,
I need to access a PCI I/O Card. A sys-Driver is installed, the card is visible
within the system.
Does anybody have an idea?
thanks in advance
Jörg
|
|
|
|
|
Probably you have some sort of API for talking to this piece of hardware. You can use any API that C/C++ can use by declaring it with DllImport.
Yes, even I am blogging now!
|
|
|
|
|
You're going to need either an SDK for this card or an API library .DLL and the documentation on it. Without that stuff, you're out of luck...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks Dave,
I have an API library for this Interface-card and it is working.....
But there is only a 'Polling-Mode', so I thougth I could replace this
library with something working with 'Events'..
It isn't it worth to spend too much time for that stuff ... and reinvent the wheel..
|
|
|
|
|
Hi all,
My project involves displaying a jpeg (dimensions - could be 10000x10000 pixels) within full screen window. Image to be panned in 2-D using mouse.
Suggestions/ Help please.
Also where can I get information on Library functions available within the C#.net framework?
Many Thanks.
|
|
|
|
|
You could simply put a picturebox inside a form, with Docking set to DockStyle.Fill.
Set AutoScroll to true on the Form, and the scrollbars will appear.
That's it
Yes, even I am blogging now!
|
|
|
|
|
|
I have made the following property on a Custom Control (derived from ComboBox), but when I use it both in design time and in runtime, the value of the StringCollection is empty.
The 'set' part of the property alters the ComboBox' own ObjectCollection 'Items'.
I add strings to the property in design time, and the editor says that they are present, but when i use it the value inparameter to the property is empty - i.e. no strings in the StringCollection.
Any thoughts on why this is so?
[Editor("System.Windows.Forms.Design.StringCollectionEditor, System.Design",
typeof(System.Drawing.Design.UITypeEditor))]
public StringCollection ItemList
{
get
{
return this.itemList;
}
set
{
try
{
StringCollection arr = AgroSoftTranslator.TranslateItems(value);
((AComboBox)base.aControl).Items.Clear();
foreach(string s in arr)
{
((AComboBox)base.aControl).Items.Add(s);
}
base.aControl.Invalidate();
this.itemList = value;
}
catch(Exception e)
{
throw e;
}
}
}//property itemList
|
|
|
|