System commands
Question: Is there a way for me to issue system commands (for example, DOS commands: dir, md temp, etc.) from within a C++ program? Answer: You can use the C
Question: Is there a way for me to issue system commands (for example, DOS commands: dir, md temp, etc.) from within a C++ program? Answer: You can use the C
A safe-to-use, long-lasting switch statement should always contain a default label in order to avoid hard-to-detect bugs such as the following: //Month.h fileenum Month { Jan, Feb, Mar, //…etc. Dec};//Month.cpp
In standard C, the functions abort() and exit() perform an immediate program termination, regardless of where they are called from. Although this also works in C++, it is usually not
In standard C, a function declared static has an internal linkage; it is accessible only from within the translation unit (source file) in which it is declared, but not from
Question: In a TQuery component, I use the SQL property to call up a stored procedure which is kept on a MSSQL server. The string used is ‘Execute [nameofproc] :param1,
Question: How to I copy a file from a source to a target in Delphi. I have been trying: SourceId := OpenFile(Source, FileStructure1, of_Read); if SourceID = -1 then ShowMessage(‘Unable
Question: In Delphi 1 I am trying to emulate the “..” function for wild card search in Paradox in Local SQL. I am aware of ‘like’ but it is not
Question: I am trying to read in a value of pi/4 from an editbox. Is there a built in command to convert it to a real from a string or
Question: An ordinary Stringgrid with 5 columns and 7 rowsThe user wants to add 1 or 2 more rows. So farI know how to write the code! But where do