Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #72.9K
~419 People Reached
Favorite Forums
Favorite Tags
c++ x 2

2 Posted Topics

Member Avatar for Member #748295

Avoid the memory leak #include <iostream> #include <fstream> #include <vector> #include <string> using namespace std; void WordFunction(string *pstr); void CleanUp(); vector<string *> words; int main() { ifstream file; string word; file.open("word.txt"); while (!file.eof()) { file >> word; if (!file.eof()) { WordFunction(&word); } } file.close(); for (int i=0; i < words.size(); …

Member Avatar for Mephesh
0
162
Member Avatar for Kesarion

GetDC() will return a device context from within its context. So within a CDialog class the method will return a CDC pointer that can be used to paint to the CDialog.

Member Avatar for Mephesh
0
257

The End.