Click here to Skip to main content
15,867,308 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sorting a list Pin
David Crow14-Jul-06 3:30
David Crow14-Jul-06 3:30 
GeneralRe: sorting a list Pin
aafcls14-Jul-06 5:51
aafcls14-Jul-06 5:51 
GeneralRe: sorting a list Pin
led mike13-Jul-06 10:17
led mike13-Jul-06 10:17 
QuestionCode Management Practices.... Pin
Christopher Stratmann13-Jul-06 8:05
Christopher Stratmann13-Jul-06 8:05 
AnswerRe: Code Management Practices.... Pin
led mike13-Jul-06 8:20
led mike13-Jul-06 8:20 
GeneralRe: Code Management Practices.... Pin
Christopher Stratmann13-Jul-06 8:31
Christopher Stratmann13-Jul-06 8:31 
GeneralRe: Code Management Practices.... Pin
led mike13-Jul-06 9:06
led mike13-Jul-06 9:06 
GeneralRe: Code Management Practices.... Pin
Christopher Stratmann13-Jul-06 9:23
Christopher Stratmann13-Jul-06 9:23 
I have introduced new code and then decided I didn't want to keep it. Maybe more examples may help understand...

GetDefaultPrinter.txt
-----------------
Setup:
-----------------
-  Add an include directory, C:\Program Files\Microsoft SDK\include
-  Add a link to Winspool.lib


-----------------
DOxygen File:
-----------------
/*!	\fn GetCurrentDefaultPrinter(std::string& s_printer_name)
 *	This function get the users current default printer name.
 *	\param s_printer_name This is the users current default printer.
 *	\return A boolean is returned.  If false then there was no default printer found.
 */


-----------------
.h File:
-----------------
bool GetCurrentDefaultPrinter(std::string& s_printer_name);


-----------------
.cpp File:
-----------------
#include "Winspool.h"
////////////////////////////////////////////////////////////////////////////////////////
bool GetCurrentDefaultPrinter(std::string& s_printer_name)
{
	s_printer_name = "";
	CPrintDialog cpd(FALSE);
	if(!cpd.GetDefaults())
	{
		return false;
	}

	s_printer_name = cpd.GetDeviceName();
	return true;
}
////////////////////////////////////////////////////////////////////////////////////////


stdstring - Is Digits.txt
-----------------
DOxygen File:
-----------------
/*!	\fn Is_String_Digits(const std::string& s_digits)
 *	This function will check to see if the string contains all digits or not.
 *	\param s_digits This is the string to check and see if it contains all digits or not.
 *	\return If false then the string contains characters other than digits.
 */


-----------------
.h File:
-----------------
bool Is_String_Digits(const std::string& s_digits);


-----------------
.cpp File:
-----------------
////////////////////////////////////////////////////////////////////////////////////////////
bool Is_String_Digits(const std::string& s_digits)
{
	if (s_digits.length() == 0)
		return false;

	for (int i = 0; i < s_digits.length(); i++)
	{
		if (!isdigit(s_digits[i]))
			return false;
	}

	return true;
}
////////////////////////////////////////////////////////////////////////////////////////////


I am not trying to argue with you that putting these files into source control is a bad idea. You could if you want to. I just choose not to. What I want to get at is how all these different files are organized. What type of file structure? Do you use any software (besides version control) to accomplish this?

Chris
AnswerRe: Code Management Practices.... Pin
Wes Aday13-Jul-06 9:41
professionalWes Aday13-Jul-06 9:41 
GeneralRe: Code Management Practices.... Pin
Christopher Stratmann13-Jul-06 9:44
Christopher Stratmann13-Jul-06 9:44 
Questionrplease help Pin
kh.pakdaman13-Jul-06 7:33
kh.pakdaman13-Jul-06 7:33 
AnswerRe: rplease help Pin
Chris Losinger13-Jul-06 7:41
professionalChris Losinger13-Jul-06 7:41 
AnswerRe: rplease help Pin
David Crow13-Jul-06 7:51
David Crow13-Jul-06 7:51 
GeneralRe: rplease help Pin
Christopher Stratmann13-Jul-06 8:20
Christopher Stratmann13-Jul-06 8:20 
AnswerRe: rplease help Pin
Zac Howland13-Jul-06 8:56
Zac Howland13-Jul-06 8:56 
GeneralRe: rplease help Pin
earl13-Jul-06 11:59
earl13-Jul-06 11:59 
GeneralRe: rplease help Pin
Zac Howland14-Jul-06 3:11
Zac Howland14-Jul-06 3:11 
Questionany Idea for a Project? Pin
Semion_N13-Jul-06 6:45
Semion_N13-Jul-06 6:45 
AnswerRe: any Idea for a Project? Pin
valikac13-Jul-06 7:05
valikac13-Jul-06 7:05 
GeneralRe: any Idea for a Project? Pin
Semion_N13-Jul-06 7:08
Semion_N13-Jul-06 7:08 
AnswerRe: any Idea for a Project? Pin
Wes Aday13-Jul-06 7:10
professionalWes Aday13-Jul-06 7:10 
GeneralRe: any Idea for a Project? Pin
cppcook13-Jul-06 7:17
cppcook13-Jul-06 7:17 
AnswerRe: any Idea for a Project? Pin
earl13-Jul-06 7:49
earl13-Jul-06 7:49 
GeneralRe: any Idea for a Project? Pin
Semion_N13-Jul-06 8:06
Semion_N13-Jul-06 8:06 
AnswerRe: any Idea for a Project? Pin
David Crow13-Jul-06 7:49
David Crow13-Jul-06 7:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.