I'd guess that the JavaDoc for JFrame will tell you...
jwenting 1,905 duckman Team Colleague
jwenting 1,905 duckman Team Colleague
jwenting 1,905 duckman Team Colleague
I'd guess that the JavaDoc for JFrame will tell you...
I admit I had to look it up myself :) but here it is:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#packagecomment
the main extra stuff the free MSVC compiler installs is an updated .NET runtime environment if that's not already installed.
The first program you'd create using the compiler would need that anyhow (unless you specify to not compile for .NET) and anything compiled with VS .NET 2003 will also need it.
and in case you want some more specifics...
drums rolling
bugles calling
Both Borland and Microsoft have released free compilers for 32 bit Windows.
Furthermore if you use Linux or any other Unix variant you most likely have a compiler already installed.
yes, several in fact.
int main()
{
for (;;);
}
doesn't do much, doesn't use a lot of memory either :)
Imagine what you're doing there and you will know why it does not do what you think it should.
You create a new System object (poor naming choice btw) and call a method on that.
What you WANT to do is call that method on another System object, the one which is currently displayed on your screen and launched the popup in the first place.
The way to do that is to hand a reference to that object to the PhoneBook which then passes it on to its WindowListener.
Phonebook phonebook = new Phonebook(this);
and so on...
Then you can call the method on the System object that's actually the correct one.
That's a copyright problem, not a trademark one :)
I've had the same, only that was not resolved. The company refused to remove the photo until I sent them a bill and legal threats. At that point it was removed but the bill (which was in accordance with normal fees for such things as laid down by professional organisations) was never paid.
They're now bankrupt and are being investigated for involvement in illegal drugs traficking...
The argument is extremely common, and so are the questions how to prevent an image from being taken from the web (to which the answer should always be that it's impossible, the only thing you can do is put up a clear notice that it's not allowed).
Bittorrent has many of the same problems as does Kazaa. It too is a large source of illegal content much of which will be infected with virusses, trojans and other malware.
In fact all filesharing applications are like that, something I really like as it means users of illegal software are sooner or later more or less automatically punnished for their actions.
Like I suspected you're not flushing any of your Streams, that's BAD.
I've not checked if you're properly closing them, look for that as well.
Programming for less waste also makes for faster programs.
Customers complain about programs being huge and slow, a main reason is the reasoning you portray that RAM and CPU cycles no longer matter.
They do. Maybe not to the extent they did 20 years ago but they certainly matter today.
DOS 3 ran on 384KB of RAM in a 4.77MHz CPU comfortably with enough left over to run a word processor or spreadsheet.
Today Windows XP struggles doing that when you have 384MB of RAM on a 2.5GHz CPU... That's 1000 times the memory and 500 times the CPU speed to run essentially the same functionality.
And guess what, that DOS program on that XT ran almost as fast as that bloated Windows program on that PIV.
I don't advocate leaving everything behind and going back to handcoding in ASM, but what I do advocate is to be aware of the RAM and CPU cycles your code uses and not to waste that.
Another example: a few years ago I was assigned to optimise a C++ application running on OS/2 on a P233. It needed to run once a day analysing a large amount of input data and generating a report over it.
There was a problem though, over time the data had grown and now the program needed 32 hours to complete it's daily run...
By doing a few simple optimisations like loop unrolling and inlining some small functions (one …
well, you need to ditch all those heavy GUI libraries to start with, those eat massive amounts of memory...
It's all a question of memory allocation, people just don't go the extra mile these days to think up memory structures to use minimal RAM.
Where are the days of using a single int to store 16 booleans?
You cannot control the size of controls (including panels). The setSize() method should never be relied upon.
you need to use an overloaded version of toArray() which takes as argument an array to put the data in (if it fits).
The usual way to use this version is as follows:
criteria = (String[])tokenVector.toArray(new String[0]);
which gives the function a zero-length array of String with the only purpose to use this array as an indication of the type of array you want it to return.
Alternatively you could initialise the array with the correct length and pass it:
String[] criteria = new String[tokenVector.size()];
tokenVector.toArray(criteria);
whatever suits you... though many people tend to go for a system that uses less words than you do.
Post the relevant parts of your code. Sounds like you are forgetting to flush some buffers.
if someone trademarks the name and you can prove you were using it before they trademarked it they'll have 2 choices: give up the trademark of let you keep using the name (actually, they could offer to buy you out as a third choice).
The lowest spec machine I ever installed Linux on was a 486 DX100 with 16MB RAM and a 250MB harddisk scrounged from a Pentium.
2MB VGA card, black and white 14" screen.
Installation took 48 hours, kernel compile crashed after 96.
Booting took about 10 minutes, as took starting X.
I think any woman finding this offensive does so because she recognises herself all too well and is deep down ashamed of the fact ;)
The software I would choose is Jive.
Works very well and is fast and secure (Sun uses it for their forums, as does Novel and several others).
No longer free, but while it was I helped in development so I may be biassed ;)
Time for a Big Bump.
I'd like to add a title or two as well, which even though not C++ specific should be required reading for any serious student (or practitioner) of software development.
Stay away from the "teach yourself in 24 hours" and similar series. They give too many shortcuts that will catch up with you as you gain experience.
Get "Accellerated C++" by Koenig and Moo instead.
Learn C++ before you dive into specific APIs...
"Accellerated C++" by Koenig and Moo is excellent.
"The C++ Programming" Language by Stroustrup is required (or should be) for anyone doing C++.
Myself I'd also heartily recommend "Agile Software Development, principles, patterns, and practices" by Robert Martin. While not directly about C++ (though it used in many examples) it's an excellent treatise about software engineering (how to design a program, how to think about software development).
why would you use recursion here at all?
I don't see the reason for it.
when using C++ you should never use char* for strings, instead use <string> which yields the string class.
You can then convert those to char* where needed.
I agree that char* is usually a better idea than char[] to handle strings in C.
yes, that cost me about 5 minutes to deliberately get wrong ;)
ANd! To aDd to WhAT aLEx saId; pEAsE uSE prOPeR . punCtuATIon, ANd caPITaliSatION: IN yOuR quEstIonS?
garbage?
If you haven't initialised array elements or incorrectly declared an array the data in it will be the data that was in the memory spots before the array even existed.
If you change it you can cause the computer to crash...
I've seen sigs get way out of hand.
On one forum there were people with sigs that were almost a screenfull (at 1024x768) of images and a page of text (for about 500k of data for the sig alone).
They'd then post 10 or so replies in a thread, each a single line long...
That was the end of that, strict limits were imposed as to the size of banners (something like 200x70 pixels and 5kb max, plus max 3 lines of text) and ever since the moderators are having to tell people to scale down their sigs several times a week...
The way you're doing it it won't work over a network anyway as you're trying to pull your graphics from the machine that's running the browser...
Pack everything in a jar file and pull the graphics from that.
but skip anything by Allen Holub.
no, it's not OK to copy it from someone if it's been discontinued.
You'll just have to look harder or use another product.
#include <iostream>
using namespace std;
void main(void){
cout<<"1 2 lazy 2 do my own homework therefore 1 got this solutiun frum sum website";
}
I'd say the statement was uncalled for (in whatever context it was made) and extremely poor advise.
That alone should be enough reason to lower your reputation...
or dust of a very old book on Turbo C++ 3 or older.
Opening the document is the easy part, it's just a file after all ;)
Interpreting it is hard. There's a library by the Apache group (Jakarta project) which offers partial capabilities to read and write Word documents http://jakarta.apache.org/poi/index.html but if that is not enough you're pretty much on your own (I think they'd be happy to accept contributions towards completing their work).
Well, if the JVM dies any thread in it dies as well so you can't have a thread that never dies at all.
Other than that, you can track whether your thread is alive of course.
Thread has a method for that called isAlive() which returns true if the thread is not dead (but has been started).
You can of course NOT restart a dead thread, so if it dies you'll have to create a new thread for it and start that.
I've found good threading tutorials very hard to find. I'm also still looking for a good threading book, the one I did get (Taming Java Threads) is probably the worst book on programming I've ever had the displeasure of reading and is the first programming book I ever tossed into the trash that wasn't completely outdated.
well, as it uses a drive letter it will ever only work on Windows...
That's the problem with files, path structures are platform dependent.
The best you can do is to either use relative paths only so you will always look from your installation directory, in which case you can use the system properties to get the path separator (path.separator system property) to figure out whether to use / or \, or else to use a configuration file which contains the filenames and paths. You can make this a file unique to each platform or (this should be possible) detect the platform you're running on and select the single correct entry for that platform from the config file based on that.
As config files can be stored and read using Java classpath entries through ResourceBundle there's no need to know the exact path specifiers for them.
and then there's OpenGL which is native to C++ (including VC++).
I've been seeing the same to an extent.
Or people sending a PM in response to a forum post instead of posting a response in the forum.
I'd say go for it, maybe even make it a higher number :)
There's many choices of forum software available.
Most you need to host yourself (which requires special software and settings on the webserver which your ISP won't give you unless you pay quite a bit extra), some you cans sign up with a service and they host it for you (at a cost, either money or you get bombarded with ad banners and popups).
never rush through coding, it only leads to errors.
Think first, code last.
Check your project settings. Most likely you didn't include the directory containing the header files to the search path for headerfiles.
I started this morning on two machines ... a first generation Intel 3 ghz (400 mhz bus) and a dualie mac G5 ... my mac finished a work unit in a little under 12 hours and my Intel is still chugging away. Macs are good number crunchers I guess :)
Not necessarilly. If it works like Seti@Home the workload in each unit can differ wildly.
I've had workunits complete in an hour when the next took 12 hours or more on the same machine (without me at the keyboard, I kept it going all day and night).
Your site is copyrighted implicitly, there's no need to register copyright (and there hasn't been for several decades no matter what some lawyers want you to believe).
The only thing registered copyright does is potentially make it easier to prove you have the originals, but in the case of a website an old backup tape or dated artwork would likely do just as well.
Trademarking I've never had to deal with directly. I do know that it's pretty useless unless you get a trademark in every single country.
A US trademark isn't necessarilly valid anywhere else.
It's also I think a quite expensive process.
As to incorporating it, that would turn Daniweb into a company complete with all the tax hassles and everything.
In many countries only companies can register domain names (or could, things are changing) which may have been a reason for people to incorporate themselves.
You've a LOT of crap in there, my guess is your changes are being reverted as soon as you make them...
C:\WINDOWS\System32\taskswitch.exe
C:\WINDOWS\System32\Fast.exe
C:\Program Files\IJ Accelerator\PropelAC.exe
C:\WINDOWS\System32\ulg0gp8vrh7jthd.exe
C:\WINDOWS\DvzCommon\DvzMsgr.exe
C:\Program Files\InterVideo\Common\Bin\WinCinemaMgr.exe
C:\WINDOWS\System32\mrtMngr.EXE
R0 - HKCU\Software\Microsoft\Internet Explorer\Main,Start Page = http://win-eto.com/hp.htm?id=9
R1 - HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyServer = http=localhost:8080
O2 - BHO: (no name) - {467FAEB2-5F5B-4c81-BAE0-2A4752CA7F4E} - C:\WINDOWS\System32\7KGVWS~1.DLL
O4 - HKLM\..\Run: [SplashDisplayer] C:\WINDOWS\System32\ISTHTB.EXE
O4 - HKLM\..\Run: [CoolSwitch] C:\WINDOWS\System32\taskswitch.exe
O4 - HKLM\..\Run: [FastUser] C:\WINDOWS\System32\fast.exe
O4 - HKLM\..\Run: [KernelFaultCheck] %systemroot%\system32\dumprep 0 -k
O4 - HKLM\..\Run: [Propel Accelerator] "C:\Program Files\IJ Accelerator\trayctl.exe" /STARTUPLAUNCH
O4 - HKLM\..\Run: [Control handler] C:\WINDOWS\System32\ulg0gp8vrh7jthd.exe
O4 - Global Startup: Dataviz Messenger.lnk = C:\WINDOWS\DvzCommon\DvzMsgr.exe
O4 - Global Startup: InterVideo WinCinema Manager.lnk = C:\Program Files\InterVideo\Common\Bin\WinCinemaMgr.exe
O8 - Extra context menu item: Allow pop-ups from this site - C:\Program Files\IJ Accelerator\pac-addwl.html
O8 - Extra context menu item: Refresh Pa&ge with Full Quality - C:\Program Files\IJ Accelerator\pac-page.html
O8 - Extra context menu item: Refresh Pi&cture with Full Quality - C:\Program Files\IJ Accelerator\pac-image.html
O15 - Trusted Zone: *.greg-search.com
O20 - AppInit_DLLs: ikxnxh46m7lejkdll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll.dll
One or two of those may be genuine but they all look highly suspicious to me.
What have you tried?
Except the declaration of the array you don't seem to have done anything...
The desktop IS a folder on your harddisk Sphyenx :)
It's perfectly fine to put it there, the log will then also appear on the desktop.
no, that's not needed when adding files. But you are responsible for making sure your project is up to date when they change externally...
that's what that nice courseware and books you got (or should have) are for...
It's such basic stuff...