|
Hello,
I got a major issue with trying to set DATE on files, not TIME, that works flawless. Here's the way I did:
void CDialogAttribs::DoDataExchange(CDataExchange *pDX)
{
...
DDX_DateTimeCtrl(pDX, IDC_ATTR_DATE, m_tmeDate);
// m_tmeDate is a CTime; IDC_ATTR_DATE is a "caleneder" control created in resource
...
}
{
...
CFileStatus fs;
CFile::GetStatus(file, fs);
fs.m_atime. = m_tmeDate;
CFile::SetStatus(m_strFile, fs);
// I KNOW for a fact that m_tmeDate holds valid numbers in month/day/year field
// before doing ::SetStatus..
...
}
ANY TIPS!?
Cheers,
Henrik
...
}
|
|
|
|
|
Hi I'm going to ask Who can I use TolTip in my program.
Thanks a lot.
|
|
|
|
|
you are in codeproject you find sample about that go to
Dialog and Windows Programming , then Tooltips in modal dialog boxes
AHMAD ALWASHALI
|
|
|
|
|
Hi
I'm Use CFileDialog to open file,
But I Want to open Folder Browse dialog.
Help me to do it.
Thanks a lot.
|
|
|
|
|
G'day Iman,
Check out the SHBrowseForFolder function in the docs.
That should get you started.
Steve
|
|
|
|
|
Hi Steve.
I Use the SHBrowseForFolder function But I don't know what Include file is for this function.
Iman Ghasr-e-fakhri
|
|
|
|
|
G'day Iman,
shlobj.h should do the trick.
Steve
|
|
|
|
|
Iman Ghasr-e-fakhri
|
|
|
|
|
Hi Steve
Please mote Help me
Iman Ghasr-e-fakhri
|
|
|
|
|
|
Hi
I want to use CreateProcess Function,
but this function not work true (not execute my .exe file).
Thanks a lot.
|
|
|
|
|
Hi,
I used the function CreateProcess in many applications.I can even start an ATL Service!
The code goes like this .
STARTUPINFO suinfo;
memset(&suinfo,0,sizeof(suinfo));
PROCESS_INFORMATION procinfo;
BOOL result;
for(int i=0;i<10;i++)
{
result=CreateProcess("<path of="" yr="" exe="">","",0,0,FALSE,NORMAL_PRIORITY_CLASS,0,0,&suinfo,&procinfo);
if(result)
{
cout<<"Client process created\n";
}
else
{
cout<<"Failed to create the client process\n";
exit(0);
}
}
This will work !
Y.Yamini Devi
|
|
|
|
|
<<< In the name of GOD >>>
Hi,
I need algorithm about sorting 1 to 9:
This program can give integer array and must sort this array.
for example:
int MyArray[5] = { 8, 0, 1, 4, 9 };
Sorting(MyArray, 5);
.
.
.
void Sorting(int Array[], int nNumber)
{
.
.
.
// MUST PRINT SORT RESULT
// IT MEAN:
// 0
// 1
// 4
// 8
// 9
}
I need this function very fast ...
Thanks for reply.
Hadi Rezaie
|
|
|
|
|
Hi all,
I wrote my function,
I'm so happy ...
Hadi Rezaie
|
|
|
|
|
I know you did it (bubble sort I presume) and I would encourage you to learn these sorts of things, but I would always consider using STL for containers and algorithms, because they are COOL !!
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Hi all,
I wrote my function,
I'm so happy ...
Hadi Rezaie
|
|
|
|
|
I have an owner drawn combo box where i do drawing in DrawItem function
I am placing a combo box in the resource editor and setting its properties to ownerdrawvariable and has strings. When I do this it works fine but I want to set these from the code because i won't have to remember them all the time.
I did this
void CXXXCombo::PreSubclassWindow()
{
ModifyStyle (0,CBS_OWNERDRAWVARIABLE|CBS_HASSTRINGS);
CComboBox::PreSubclassWindow ();
}
it did not work. Why ? How can i set these from the code by subclassing a combobox
Thanks.
|
|
|
|
|
Ok, now i'm kinda a beginner but, I think you need to use GetStyle and then or(|) the other to style bits on top of the getstyle return.
|
|
|
|
|
Put your ModifyStyle() call in PreCreateWindow() instead.
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|
|
How do I place controls like a CComboBox on a flat CToolBar derived toolbar?
|
|
|
|
|
make a dialog bar instead
its easier
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Yeah, but then I can't have it be the same height as my other toolbar, and I can't have flat toolbar buttons.
|
|
|
|
|
ok ... i see your point ... i won't say it can't be done (every time i say such a thing i find out it can be and i'm beginning to believe that anything can be done given enough time and effort) ... that said however i think to achieve what you want will take some considerable effort as toolbars are not designed to have other controls in them (afaik) ... why not make a dialog bar and do custom drawing of the buttons you want to be flat? it might be easier than the other option
now i await to be told it is easy ... just use CWhateverToolbar etc etc
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
I know how to place CComboBoxs on the old toolbars, but it doesn't work on the falt ones.
|
|
|
|
|
Are there any essays out there that describe how program updating works? Would anyone be interested in writing such an essay? I'm writing a program that I plan to be consistently updated. Hopefully someone out there has a fairly streamlined idea that will make the update quick and painless for the user.
Thanks in advance for any info that you can give me!
-Michael
|
|
|
|