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
~608 People Reached
Favorite Forums
Favorite Tags
c++ x 13
Member Avatar for roachic

Hi everyone. I was wondering what is the best way to check if a text file is empty? When I read from a text file: file.Open(path, CFile::modeRead); And then try to access it: file.ReadString(line) I get an error.. I have tried if 'file.end' but file.end returns true every time so …

Member Avatar for roachic
0
145
Member Avatar for roachic

I want to read a file which is in the same folder as my program. What is the notation to get the current folder? I tried '.' but it doesn't work.

Member Avatar for roachic
0
94
Member Avatar for roachic

Hi everyone. I'm trying to create an array of distinct random numbers. This is what I have so far. [CODE] std::vector<int> randomNumberVector; randomNumberVector.resize(10); void CBlah::Randomize(void) { int randomNumber; int length; int i; BOOL isTaken; length = randomNumberVector.size(); for(i = 0; i<length;i++){ while(randomNumberVector[i] == NULL){ randomNumber = GenerateRandomNumber(); isTaken = CheckRandomNumber(randomNumber); …

Member Avatar for roachic
0
196
Member Avatar for roachic

Hi everyone. I'm trying to get a vertical scrollbar to work on my CDialog. I followed the instructions on [URL="http://support.microsoft.com/default.aspx?scid=kb;en-us;262954"]this link[/URL] and copied the code exactly into my class. It compiled fine. But when I ran it, the Vertical scrollbar disappeared. And I've double checked that my vertical scrollbar is …

0
62
Member Avatar for roachic

Hi everyone. I am trying to generate a certain number of sliders on my CDialog, that certain number is not fixed. I managed to make the sliders appear fine by doing this: [code]for certain length{ [INDENT]CSliderCtrl *tracker = new CSliderCtrl(); tracker->Create(WS_CHILD | WS_VISIBLE, CRect(left, top, right, bottom), this, i);[/INDENT] }[/code] …

Member Avatar for roachic
0
111