If you want the reference manuals for assembly, Intel, for example, lets you download the IA-32 Intel Architecture Software Developer's Manual. You would want Volume 2: Instruction Set Reference.
Now, I heartly approve of anyone wanting to learn the assembly language for their...
what about something like:
fstream f_in;
f_in.open(argv[1], ios::in);
fstream f_out;
f_out.open(argv[2], ios::out);
int i = atoi(argv[3]);
char line;
string strLine;
while (f_in.getline(line, sizeof(line)))
{
strLine.assign(line,f_in.gcount());
if( f_in.gcount() < i )...
If I may add one more little note, rather than using C-style casting, which may be difficult to locate after you've decided the casting is causing an error, consider using the reinterpret_cast, const_cast, and static_cast operators. That way, when you have to find your mistake, it will be...
If you want to dynamically add/remove items, I would suggest that you use an STL list, deque, or vector. Then you can use the erase() and other member functions with impunity. Be aware when iterators are invalidated, though.
The advantage is that the STL is platform independent and quite...
May I make a suggestion? Take a look at the STL as an alternative to building these sort of routines on your own. I've found it a wonderful tool to avoid much of the mundane grunt work I used to have to do...it's been a real timesaver.
I have found named pipes to be very useful in this circumstance. I confess I've done far more C++ than Vb code, however. Using a blocked-read thread on each end of the pipe is a very simple model which allows you to hang on a read until data arrives or the pipe goes away. You then simple...
There is a good example in MSDN under the title "Creating a Simple Win32 Service in C++" that uses Event Logging. Perhaps the most time consuming thing for me was getting the process straight to create a MESSAGETABLE entry for the resources and integrating it into my system. While...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.