Yeah don't use the new operator...
How large of a chunk of memory are you looking for? Is it for holding objects or data? The three ways I'd go for is:
1)Create and use a custom heap
2)Use Virtual memory
3)Use memory mapped files
All depends on what exactly you're using it for.
nbucska:
I guess I can't argue with that.
faraznasim:
Humm what exactly would like to write to a serial port, I'll give you a windows example if you want.
Windows is just as simple, just need to know the tricks ;) ... Actually you can't direct interface to the hardware via an application (ring 3 code). However you can treat any port like a stream device.
What are your imported packages? Also are using the command line compilier or an IDE based compilier, nevermind I saw it's MS J++ so it's IDE. See if you could find the package paths, it's been a while since I used this, and make sure that package exists. Also when you set up the project what...