Click here to Skip to main content
Page 1 of 707
Page Size: 10 · 25 · 50


Author filtered by: CPallini [x]
txt.file remove lines by CPallini
Answer 14 May 2013   license: CPOL
There is no direct way for removing a line from a file. However you might read the input file line by line, copying to a new file only the lines you want to maintain. At the end of the process discard the original file and rename the freshly written one.
Answer 14 May 2013   license: CPOL
Your recording device already produces binary streams, I suppose. You should read the device documentation for finding out what is the format used, study it and then develop an algorithm able to extract the needed data.
C++
Answer 14 May 2013   license: CPOL
When overriding virtual methods you have to make sure that the method signatures exactly match. Change fromQuote:float virtual area() { return 3.14*fRadius*fRadius; }tovirtual float area() const { return 3.14*fRadius*fRadius; }
C++
Answer 13 May 2013   license: CPOL
Did you try Google[^] yet?
Answer 13 May 2013   license: CPOL
Did you try Google[^]?
Answer 13 May 2013   license: CPOL
Suppose, for generality:const int N = 500;a = new char[N];char b[N];You access bit bitno of either a or b in the same way (note: not tested):int getbit(int bitno, int x[], int size){ if ( bitno = (size*8) ) { // throw an exception here } int...
Answer 12 May 2013   license: CPOL
As already suggested, write a method, say executeMyQuery taking, as single parameter, the query string, put in such method all the required code for executing the query. Then call it from the different button click handlers (each handler should pass its own query string).
Answer 12 May 2013   license: CPOL
Since you tagged your question (also) with MFC, I am assuming you are asking about CFile::GetFileName[^]. Such method, as the documentation states, returns the name of the file associated to the CFile object.[Update]GetFileName does NOT provide the info you are requiring. You may use the...
Answer 12 May 2013   license: CPOL
Probably Google[^] helps (the very first entry is a CodeProject article!).
Answer 11 May 2013   license: CPOL
It smell like homework. You should try hard to code it yourself and ask here specific questions when you get stuck.
Answer 11 May 2013   license: CPOL
As alaready suggested, you use the debugger for checking that all the references ( t3, t5, t6 and conn) in the statement are set to valid objects (for instance did you use new on conn?).
Answer 10 May 2013   license: CPOL
Did you try Google[^], yet?
C++
Answer 10 May 2013   license: CPOL
The documentation[^] states:RequirementsMinimum supported clientWindows Vista, Windows XP with SP2 [desktop apps | Windows Store apps]Hence your version of Windows XP does not satisfy such requirements (that is you probably have to update it with, at least, Service Pack 2).
Answer 10 May 2013   license: CPOL
I fixed some bugs (uninitialized variables). Please note: you should handle the digit 0 (zero) too. #include #include void show_number(int number){ int counter = 0; int i, temp, digit, x, ten; if (number > 9) { temp = number; while...
Answer 9 May 2013   license: CPOL
On Windows system newline is "\r\n" (see, for instance Wikipedia[^]). Hence it should work (you should see proper output on notepad, other applications are able to render text file with other newline conventions).Please check (with the help of an hex editor) the actual file content.
Answer 9 May 2013   license: CPOL
You must pass either two characters or two strings to the Replace method. Currently you're passing just one string (the comma is embedded in the string, due to the escaping rules).
C#
Answer 9 May 2013   license: CPOL
It looks you should double them, see, for instance "How to insert string containing single or double quotes" at Stack Overflow[^].
C#
Answer 9 May 2013   license: CPOL
Your while condition is uninfluential (always true). According to the documentation[^]:Return ValueThe total number of elements successfully read is returned.If this number differs from the count parameter, either a reading error occurred or the end-of-file was reached while reading....
Answer 9 May 2013   license: CPOL
You should create a method, say, public int TotalMilliseconds(string s), accepting one string and returning total milliseconds. Once you have it you may easily compute max and min values with a simple single iteration on the array items.
Answer 9 May 2013   license: CPOL
Probably multithreading is useless in your case. It would be usefulif (at least) one task takes a lot of time (that is user noticeable) to complete: often threads are used to prevent the GUI freeze while a long time operation is occurring.
Answer 9 May 2013   license: CPOL
See , for instance: Runtime C# Expression Evaluator[^].
Answer 9 May 2013   license: CPOL
Yes, your program can evaluate (static) expressions, e.g.#inclde using namespace std;int main(){ int x; cin >> x; cout
C++
Answer 9 May 2013   license: CPOL
You may find many articles about, here at CodeProject[^]
Answer 8 May 2013   license: CPOL
You may put your exectuable in one of the folders included in the Windows executable search path[^], or you may modify the latter to include your application's folder.

Page 1 of 707
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid