Just think about it for a second - if the range is 100, we can read the value and divide it by 100 to get a float.
Of course, if the range is only 100 - the smallest increment you may make is 1% of the range. If you goto a range of 1000, you can inc/dec by 0.1% of the range. Then of course, you could have a larger range, and go to (say) 100,000. Each increment would then only represent 0.001% of the range. and so on and so forth
1. Read value
2. divide value by range
3. create a string that represents the resulting number
4. put the result into the edit control.
yeah i wanna build one prog using those two files and then run the prog so that i wanna run a process fro a client and another for ther server on a same machine (local). but i'am asking what should i write in the terminal (as i said i'm under Linux) !!! I m despered t spent alla the day asking that and looking in the net but no way
yes you are all right but in socket there are always a C file for the client and another one for the Server but i forgot how we edit the links between the c files and the o files under linux, i know that there is may be soem command like make or a shell comands i forgot it , i used to compile them about 4 years ago :p and now i need to run that app on my computer (and for the Linux Session i posted this message 5 jours ago and no reply till now :'()
*.o it's only a wildcard way to say 'link with all object files you find'. You get the error because the compiler finds both client.o and server.o (and both have a main function inside). I strongly suggest you to issue the man gcc command.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
i already did the man gcc but with no hopes it stills abstractiv :p
any way thx for your help i ll try to ask the question to my professor and i ll write you the answer if he ll give it to me of course
yeah i wanna build one prog using those two files and then run the prog so that i wanna run a process fro a client and another for ther server on a same machine (local).
If you want to run two different processes, then you should build two different programs. Yes, it's possible to start two different processes from a single program in Linux using fork(), but that appears to be way beyond your current skill level.
Hey there, ive got a feeling there wont be an easy answer / solution to this question but if you dont ask you dont get!
I was wondering if there is any way to globally capture mouse overs in windows. Iam not sure if the way ive described this will make much sense to anyone so a quick usecase might help. When a user opens up the start menu and highlights 'my documents', the background colour changes to blue to show you have your mouse hovered over it. Can this event possibly be captured? I imagine capturing mouse overs on the start menu will be different to say catching a highlighted menu option in visual studio. But id really like to know if there is any way of globally detecting when hovering the mouse "highlights" something on the screen in relation.
I had looked into this and it doesnt seem to hard to do providing I learn enough about the win32 API. However the part which seems to vary between applications is capturing the relevant messages. Ive used winspector to look at messages being sent back & forth between windows and there does appear to be any pattern to what happens when something under the cursor changes due to a 'mouse over'. I noticed the startbar (dv3controlhost , syslistview32) calls wm_ncpaint followed by wm_erasebackground when I move between items and the mouse overs activate but this doesnt seem consistance with other applications ive looked at like Adobe Audition. But ive notice Adobde Audition uses alot of custom classes in its contruction......
Write your program in VC++ seeing as it's an extension to the C language and just write your C code. You can ignore the C++ additions such as object-orientation etc
(or go with Mike's suggestion.)
If you're looking for a good C compiler, I'd recommend Pelles C. It's free, too.
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
modified on Sunday, October 19, 2008 7:15 AM
Last Visit: 31-Dec-99 18:00 Last Update: 2-Oct-23 2:07