Ah, ok, sounds like you should be pretty much with most of your app by now then :)
Ah, ok, sounds like you should be pretty much with most of your app by now then :)
Then you are indeed talking of holding 2 copies of the picture, one without the tool and then as you make changes to the component, you update the second one, and draw a copy of it, and then the tool in your drawing area.
In essense then you draw on a bitmap in memory only, and then paint it to the image component, and then draw the tool at an appropriate place.
goodo :) Ive done some work with lists and dataviews, can work quite well IMHO.
turbo pascal 7? oh my that goes back a bit.
If you go to options, compiler, bottom right theres a numeric processing section, check the 8087/80287 option.
I remember a conversation like this with someone once before and it was hard for them to picture.
I assume you have an image component and in there is your drawing, and that when the user selects 5mm circle one appears say in the top left hand corner, and they can then direct it to where they want, so you're drawing direct on the drawing? or are you using the "shape" component?
If its a component you're using you move components by using top and left.. but they teleport, so if you want to show things moveing across, then you would have to move them to places along the way.
If its drawing a circle like MSpaint, so you have a drawing area and an item you may/maynot want to keep on it, but you're drawing a circle on it, then you would need to keep a history in memory of what it looked like before hand and be able to repaint it, so theres 2 images in your app 1 with, 1 without. so then when it moves, you copy the without and draw your circle in its new position on it.
Hope that makes some sense.. Your question wsa a little unclear (I know how it can be when you're looking at it and the question seems to make perfect sense to you)
OK, so operation is more like a temporary space to write to to form a work list, to be saved later to your part1, part2?
Delphi 4? ouch. THats seriously old.
OK, so, you didnt answer the last part really, or perhaps it wasnt overly clear. You speak of dbase commands like you used to code them - thats oK, Ive been there, but, are you hoping your users can type them, or just to find out how to tell delphi to do something similar?
yes and no. You can do a dataview to something in memory, such as a list.. I believe even an arraylist.. so.. maybe theres food for thought in that.
The key thing is how your user is going to feel using it. You need to decide which would be easiest to work with to give you what you wanted.
spss as in ibm mainframe? as far as I recall (was a long time ago) spss will output fixed format text files, which you could then read into c#
And, more to the point, which version of excel did you add as a reference?
Yep, make your own up, that you can then reuse as your "matrix" input, but it would then allow all that class to do the validation etc.
Wether you stem it from textboxes or a datagrid is kinda down to how you want it to work I guess, in the short term textboxes maybe easier to work with though
You can do and send anything you would over a browser as long as you're prepared to disect it and play around long enough, this includes the login process, redirection etc.
Its not something someone can just hand you an answer for.
However, if you monitor the HTML to/from your site and what would have been your browser everythings possible with time and patience.
However, Im not aware of anything "out of the can" that will interface with phpbb for you, you would need to do all the HTML ground work yourself.
As always countless ways to to achieve that. If you're storing files you could either store them in a database, or in directories on the server out of general web reach etc.
Either would work, but I guess in the long term it depends more on excactly how you're going to process your matrix - of course the perfect answer would be to device a matrix input component, which consists of either of your ideas, but done so you can drop a Matrix onto your form and size and so on.
Glad to hear its moving on - as long as the design is sufficiently details the bulk of classes etc should be reasonably obvious - and it should filter quickly down from there.
Delphi doesnt have those kinds of commands, but.
Btw which version of Delphi are you using? The tDBF the one from sourceforge?
Are you intending the user to get to type use, copy to, zap etc? or just the delphi specific way of doing it with the tdbf component?
Marsheng,
You've described half a plan on where you're going. What you want to do. You could still arguably use a text file - if you really really wanted to, replace any line feeds from the memo field with an unused character, but it would seem a convaluted way of doing it, when Delphis DB components will do the majority of the work for you.
Its only half a plan because it sounds like theres a lot more feature planning to do before you really get going.
Im guessing that while you have a clients and a parts, and not all clients will use all the parts, so you will have some form of reference table in between that links your items together.
You need to get down on paper (or at least in a text editor) your plans, to work out what options you need, and what data you need to make those options work. At the moment you havent mentioned (at least here) how your machine can receive these controls, as well as what kinds of codes it needs - you probably I guess would need some form of human to machine conversion too, so that a little like in the days of loco (anyone else old enough to remember that?) where you would say go rt 90, fwd 100, lt 90 etc.. that this is then converted to the machine speak which of course is not readable english but perhaps binary values.
…
If you have something that needs to pause and continue you shouldnt be using the mainthread for it. Thats what threads were invented for.
Timer is also a component on your toolbar - with other examples on how to use it in your helpfile.
Or post your code, and the errors or debug information showing where it goes wrong.
You could just use a timer.
Surely your account and user class are the same from your description.
As for your classes, you'd need to define your program more fully before you can be conclusive about the classes you will need to do the job at hand.
You'll need to consider features, and limitations, validations etc.
Once you've written out all the features, their interactions, you'll have a much better idea of what classes you'll need.
Sounds like you have half a plan.
* maybe it's not an assignment, it's a lab or a final exam by way of program writing. :)
But that would still count as homework :)
Sounds like a config error. Whats in your config file?
Rapture is right, its not that we hate you or want you to hate us either. However the addage, give a man a fish, he eats for the day, give a man a fishing rod he can eat for a year.
If we give you an a line of code, what did you learn, we will feed you.
If we give you places to look and how to find your answers..
You learn to find them yourself and work faster and smarter.
Stickies - the marked threads that remain at the top of a forum, which are marked there specifically to be read. In this case, marked at the top of the forum post list with the big word "Announcement", there are 2 of them.
code tags - explained in the stickie
smiley in code - solved by use of code tags, which is why the original poster (or OP to forum savvy people) didnt suffer from it in their code.
As for balls, I have plenty, however, I dont feel the need to share my private email address with you so you can rant away.
The forum rules specifically asked for you to use code tags, and dredging up old posts is usually considered bad forum manners.
Nice judegement, considering Ive been using turbo pascal and then moved on to delphi so a total over over 21 years.
PS delphi 1 was released in 1995.
Because he didnt come back and say anyt of the previous posts hadnt helped him with his issue.
Heavens sake Delphiman, please read the stickies, and start using code tags
So you had to wake up a 6 week old post?
Is there no "how to" on their website? most of these things come with examples and so on.
Did you look at the webservice code? What have you tried?
try group box - even the icon in the toolbox shows it doing what you wanted.
it calls the instance of frmMain's Comm1Dsr, if you had 2 instances of your form, it would only call the procedure in one of those forms.
We dont just hand you the answer because you have demonstrated you dont know how to find out information for yourself, something as simple as this should be something you find in the helpfile - if your question had been more of
Ive got this code, I dont see why its producing <this> when I expected <that> sure, you're likely to see a more informative response, but when the answer is a case of Press F1 for help and read the info you already have to hand, you shouldnt need someone to tell you
My XP even had a link to no addons put in the menu for me when I installed IE7. However, RamyMahrous is right, generic how to run an app should be a googled thing its not really a C# question after all.
No, its just thats the default.. If you havent told it to run on something else, then it wont.
There are quite a few string operations - have a look under "String"
a0011010011 is right, the code clearly shows you trying to connect on port 80, so no, it wouldnt resopond if its setup to run on a different port - either run it on port 80 for testing your code, or change the code to look for the right port.
Termi65 uses the method Id choose, although Id fix the name in the exe, rather than use the app name, just in case someone bothers to change it.
A bit to read on it http://www.ai.uga.edu/mc/SingleInstance.html
How can it be your job, if you don't know anything about C#?
Well, if its not homework, but its *that* important.. only other real option is that its work related - eg perhaps hes a teacher at the school, or hes been asked to make it for the school..
drfarzad, other than you are acting like a small child because no one will code it for you.
If its not your homework, and you need it *critically* it can only therefore be your job, and if you're being paid to do it, call a collegue..
You arent showing effort at all, you're acting like the small child who didnt get the toy they wanted for christmas.
Sure, RamyMahrous didnt show how to use the code he posted, but he did show some sensible code, the fact is you just pasted it and didnt bother working out what you'd do with it or what it means. All this demonstrates is you havent a clue about writing some code only copy and pasting from places and hoping it all works.
An app that works out max/min and sorts some salaries is not life essential, and is without doubt something you can do either in your head, or, in excel which ever you're comfortable with.
In the mean time, go to somewhere like http://www.3dbuzz.com and look at their free c# video training material about how to think about a program, how to code it, learn a little about c# and its OO and they have stuff on other languages, but, take a look at their hyperion code, and its a good basis for the lazy person who doesnt like reading too, as its video and code as you go.
Why not? you fail to mention any compile errors or runtime errors..
Firstly Im guessing it doesnt compile because theres no Main function any more
Secondly, I dont believe he (assumption, sorry) actually said it was a 100% program, it was "some code" to demonstrate things.
Thus showing me, you just blindly cut and paste and have no idea whats going on..
:(
I know, and yet despite your code they write back with
can you please trace you first line ?
List<Human> Humans = new List<Human>();
Eg, they didnt get it.
Part of the problem of hand feeding people code is they then dont understand it.
i want to it show me the max and min salary and the sort number after i gave it to program not the character are in the this line
string[] cArray = new string[3] { "Cha3123", "Cha1234", "Cha1243" };
Well your code only dumps out the values in the array, if you wish for min and max then you would have to add the code for that.. But
It printed them out in numerical order for me when I ran your code
Which is exactly what you told it to.
If you wish it to do so *AFTER* you have entered some data, change your code to ask for some data, and store it, and then run the sort.
No, it sorted the numbers as you told it to - or at least it did when I ran it.
openGL is freee to use, there is no runtime or development costs that Im aware of. You could also look at XNA which while aimed at gaiming is also a framework for drawing like that.
However, drawing a 3d cube in c# in general would be the same as asking how to draw it on paper, its the same for any language, you need the maths to work out the angles, lengths etc.
have a look in the helpfile as to try, and then show us your code, and the errors and/or explain in what way it hadnt done what you wanted..
Then we will help