Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: namepsaces: using ns::X and using namespace ns Pin
Michael Dunn3-Feb-04 8:50
sitebuilderMichael Dunn3-Feb-04 8:50 
GeneralRe: namepsaces: using ns::X and using namespace ns Pin
peterchen3-Feb-04 8:57
peterchen3-Feb-04 8:57 
GeneralRe: (edited) namepsaces: using ns::X and using namespace ns Pin
Joaquín M López Muñoz3-Feb-04 9:48
Joaquín M López Muñoz3-Feb-04 9:48 
GeneralRe: (edited) namepsaces: using ns::X and using namespace ns Pin
peterchen3-Feb-04 11:06
peterchen3-Feb-04 11:06 
GeneralRe: (edited) namepsaces: using ns::X and using namespace ns Pin
Joaquín M López Muñoz3-Feb-04 11:15
Joaquín M López Muñoz3-Feb-04 11:15 
Generalget date stamp on current running exe Pin
rayjoslyn3-Feb-04 7:14
rayjoslyn3-Feb-04 7:14 
GeneralRe: get date stamp on current running exe Pin
Ravi Bhavnani3-Feb-04 9:58
professionalRavi Bhavnani3-Feb-04 9:58 
GeneralRe: get date stamp on current running exe Pin
Jesse Evans5-Feb-04 12:18
Jesse Evans5-Feb-04 12:18 
I use the date stamp of my executable as the version number, which I append to the title of my main window. Here's how I get the info:

// the version number of the app is the concatenation of the file's<br />
// date and time values:<br />
// yyyy.mm.dd.hh.mm<br />
static char appVersion[30];<br />
<br />
void AteUtility_InitAppVersion (HINSTANCE hInstance)<br />
{<br />
	char szFileName[MAX_PATH];<br />
	char szFileTitle[MAX_PATH];<br />
	WIN32_FIND_DATA fileData;<br />
	FILETIME localModTime;<br />
	SYSTEMTIME systemTime;<br />
<br />
	GetModuleFileName (hInstance, szFileName, MAX_PATH);<br />
<br />
	GetFileTitle (szFileName, szFileTitle, MAX_PATH);<br />
<br />
	FindFirstFile (szFileName, &fileData);<br />
<br />
	FileTimeToLocalFileTime (&fileData.ftLastWriteTime, &localModTime);<br />
	FileTimeToSystemTime (&localModTime, &systemTime);<br />
   <br />
   sprintf(appVersion, "Version: %4.4d.%2.2d.%2.2d.%2.2d.%2.2d", systemTime.wYear, systemTime.wMonth, systemTime.wDay, systemTime.wHour, systemTime.wMinute);<br />
}


Hope this helps! Wink | ;)

'til next we type...
HAVE FUN!! -- Jesse
GeneralError Pin
Goh Hui Beng3-Feb-04 7:02
Goh Hui Beng3-Feb-04 7:02 
GeneralRe: Error Pin
sps-itsec463-Feb-04 12:19
sps-itsec463-Feb-04 12:19 
GeneralMDI Question... Pin
RobJones3-Feb-04 6:32
RobJones3-Feb-04 6:32 
GeneralRe: MDI Question... Pin
Neville Franks3-Feb-04 10:31
Neville Franks3-Feb-04 10:31 
GeneralRe: MDI Question... Pin
RobJones4-Feb-04 3:17
RobJones4-Feb-04 3:17 
GeneralGetPrivateProfileString() Pin
Goh Hui Beng3-Feb-04 6:24
Goh Hui Beng3-Feb-04 6:24 
GeneralRe: GetPrivateProfileString() Pin
Rickard Andersson203-Feb-04 6:50
Rickard Andersson203-Feb-04 6:50 
GeneralRe: GetPrivateProfileString() Pin
Goh Hui Beng3-Feb-04 7:07
Goh Hui Beng3-Feb-04 7:07 
GeneralRe: GetPrivateProfileString() Pin
Rickard Andersson203-Feb-04 7:10
Rickard Andersson203-Feb-04 7:10 
GeneralRe: GetPrivateProfileString() Pin
Goh Hui Beng3-Feb-04 7:21
Goh Hui Beng3-Feb-04 7:21 
GeneralRe: GetPrivateProfileString() Pin
RobJones3-Feb-04 7:25
RobJones3-Feb-04 7:25 
GeneralRe: GetPrivateProfileString() Pin
Rickard Andersson203-Feb-04 7:39
Rickard Andersson203-Feb-04 7:39 
GeneralRe: GetPrivateProfileString() Pin
Goh Hui Beng3-Feb-04 7:48
Goh Hui Beng3-Feb-04 7:48 
GeneralRe: GetPrivateProfileString() Pin
Rickard Andersson203-Feb-04 8:32
Rickard Andersson203-Feb-04 8:32 
GeneralLinker error in VC 7 Pin
PrashantJ3-Feb-04 6:24
PrashantJ3-Feb-04 6:24 
GeneralQuestion about movewindow Pin
doctorpi3-Feb-04 5:13
doctorpi3-Feb-04 5:13 
GeneralRe: Question about movewindow Pin
Joe Woodbury3-Feb-04 8:06
professionalJoe Woodbury3-Feb-04 8:06 

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.