Search Results

Showing results 1 to 30 of 30
Search took 0.01 seconds.
Search: Posts Made By: nmaillet ; Forum: C++ and child forums
Forum: C++ Aug 6th, 2009
Replies: 7
Views: 220
Posted By nmaillet
Sort of, the first one simply tells the system to request a repaint given those conditions. The UpdateWindow(hWnd); function on the other hand, allows you to request an update when you need one. If...
Forum: C++ Aug 5th, 2009
Replies: 7
Views: 220
Posted By nmaillet
WindowClass.style = CS_HREDRAW | CS_VREDRAW
This causes the system to call request a repaint of the window when the width of the window is changed (CS_HREDRAW) or the height of the window is changed...
Forum: C++ Jul 30th, 2009
Replies: 5
Views: 273
Posted By nmaillet
You're having a problem with scope. You declared it in the main function, as well as within the do statement. Therefore when you set it in the do statement it will set the variable in the do...
Forum: C++ Jul 28th, 2009
Replies: 2
Views: 311
Posted By nmaillet
Take a look at http://msdn.microsoft.com/en-us/library/8etzzkb6(VS.71).aspx. The rename attribute doesn't actually rename anything within the DLL, it simply gives an alias for any property to avoid...
Forum: C++ Jul 25th, 2009
Replies: 2
Views: 276
Posted By nmaillet
Setting the console font is platform dependent, therefore you'll need to use the Windows SDK for this. Take a look at http://msdn.microsoft.com/en-ca/library/ms682073(VS.85).aspx for console...
Forum: C++ Jul 25th, 2009
Replies: 3
Views: 358
Posted By nmaillet
The default constructor is just used when no other constructors have been declared. To create a no-arg constructor (override the default constructor):
class MyClass {
public:
MyClass();
};
...
Forum: C++ Jul 25th, 2009
Replies: 6
Views: 194
Posted By nmaillet
When you create a new array, the elements in the array are not initialized to any default value. Therefore whatever happens to be in the memory where the array is created, it will be that until you...
Forum: C++ Jul 3rd, 2009
Replies: 3
Views: 213
Posted By nmaillet
A few things: first of all, make the second if statement else-if; second, make the last else-if statement else. Also, pushups should be >50/>30. You should be more carefull with your brackets too:...
Forum: C++ Jun 18th, 2009
Replies: 11
Views: 725
Posted By nmaillet
Correct me if I'm wrong but I don't think your actually intending to read the file as binary. Your file contains the "characters" 0069... So 0 would give you 48, 6 would give you 54, etc. according...
Forum: C++ Jun 11th, 2009
Replies: 3
Views: 297
Posted By nmaillet
If you are using Visual Studio, there is an option in the project properties, to make it either a static library (.lib) or a dynamic library (.dll), or any other IDE should be similar. Then you can...
Forum: C++ Jun 11th, 2009
Replies: 2
Views: 404
Posted By nmaillet
I believe what you are looking for is the EnumPrinters function in the Windows API. http://msdn.microsoft.com/en-ca/library/dd162692(VS.85).aspx
Forum: C++ Jun 11th, 2009
Replies: 2
Views: 214
Posted By nmaillet
In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run you can put your program to run on startup. There is also similar keys in each users registry (if it isn't meant for all users of...
Forum: C++ Jun 10th, 2009
Replies: 2
Views: 236
Posted By nmaillet
When you refer to Form, do you mean you are using the VC++/.Net framework. If this is the case, you can try simply setting the DoubleBuffered property (protected member I believe).
Forum: C++ Apr 30th, 2009
Replies: 1
Views: 350
Posted By nmaillet
First of all, the while statement would never evaluate to true, therefore A->next = A; would never execute. The next statement B->next = B;, would remove all references to any subsequent nodes in...
Forum: C++ Apr 30th, 2009
Replies: 4
Views: 665
Posted By nmaillet
Where are the declarations of dnode and the include function? Other than that, quickly looking through the code:
if(val1 < val) would not work, since there is no declaration for it. I am assuming...
Forum: C++ Feb 27th, 2009
Replies: 5
Views: 373
Posted By nmaillet
You can run it through a loop to check the other pieces to ensure that the randomly generated square is not already occupied.
Forum: C++ Feb 27th, 2009
Replies: 5
Views: 373
Posted By nmaillet
You need to set the rand seed value, use srand(). Unlike Java and C# the seed value, when not set, is the same every time it is run. I suggest using the current time to set the seed value.
Forum: C++ Feb 25th, 2009
Replies: 6
Views: 451
Posted By nmaillet
The nodeType struct should be declared outside the main function.
Forum: C++ Feb 11th, 2009
Replies: 1
Views: 404
Posted By nmaillet
Try using const char* instead of a string, since string is a class but LPCSTR is a character array.
Forum: C++ Feb 10th, 2009
Replies: 1
Views: 222
Posted By nmaillet
For your last question, yes it is because the character 0 has a value of 32 I think. The character with the value of 0, or NULL, is '\0'.

For the first part, char names[][90], would not work...
Forum: C++ Feb 8th, 2009
Replies: 1
Views: 668
Posted By nmaillet
If you are using Windows, I believe DirectShow has recording capabilities.
Forum: C++ Dec 8th, 2008
Replies: 5
Views: 458
Posted By nmaillet
Visual C++ Epress (http://www.microsoft.com/express/vc/) is a free version of Visual Studio, it just requires separate downloads for other languages.
Forum: C++ Dec 3rd, 2008
Replies: 5
Views: 1,716
Posted By nmaillet
Simple, for each character in the line array, search through the source array for the character, then use the same index to replace the characters with that of the target array...You'll most likely...
Forum: C++ Dec 3rd, 2008
Replies: 3
Views: 372
Posted By nmaillet
No problem, and try this:
logFileOut.open ("logfile.txt");
for (int write=0;write<account_Names.size();write++)
{
logFileOut << account_Numbers[write] << ":" << account_Names[write] << ":" <<...
Forum: C++ Dec 3rd, 2008
Replies: 6
Views: 1,301
Posted By nmaillet
I'm not very experienced with threads in C++, but from what you said, it shouldn't make a difference in the amount of time it takes to empty the buffer. Have you tried it on another computer? And...
Forum: C++ Dec 3rd, 2008
Replies: 3
Views: 372
Posted By nmaillet
The problem is with line 203. You're trying the assign the value of newAccount to memory outside the bounds of the vector's array. Use account_Names.push_back(newAccount) instead, and it should...
Forum: C++ Dec 1st, 2008
Replies: 9
Views: 762
Posted By nmaillet
The size of a pointer has to be consistent for a particular system. It is the reason for labeling a system as 32-bit, 64-bit, etc. The reason for having different types of pointers is for the...
Forum: C++ Dec 1st, 2008
Replies: 3
Views: 462
Posted By nmaillet
After the do-while loop is done you can calculate everything. You have the size of the set of scores, counter, so all you need to do is declare an integer as an index to use in a for loop, as well...
Forum: C++ Dec 1st, 2008
Replies: 3
Solved: MSXML
Views: 558
Posted By nmaillet
And did you download the SDK?
Forum: C++ Nov 30th, 2008
Replies: 9
Views: 762
Posted By nmaillet
It's 4 bytes on a 32-bit system (reason for a 4GB RAM limit), and 8 bytes on a 64-bit system. I believe you can check using something like sizeof(void*).
Showing results 1 to 30 of 30

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC