|
The first parameter of FindFirstFile() supports wildcards.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
thanx ...actually i was not aware of using wildcard in find firstfil()..
thanx...
birajendu
CyberG India
Delhi
India
|
|
|
|
|
See like this
<br />
WIN32_FIND_DATA find;<br />
HANDLE handle=FindFirstFile("*.*",&find);<br />
while(FindNextFile(handle,&find)!=0)<br />
m_List2.AddString(find.cFileName);
FindClose(handle);<br />
of course this code read *.* and insert to a list but you can use like this
whitesky
|
|
|
|
|
Hi,
i want to converts FILETIME into two DWORDs, one for date and the ohter for time in the same way NTFS stores file modification, creation and access date. can anybody teell how to do this.
|
|
|
|
|
a FILETIME structure is already two DWORDs...
typedef struct _FILETIME {
DWORD dwLowDateTime;
DWORD dwHighDateTime;
} FILETIME, *PFILETIME, *LPFILETIME;
Do the chickens have large talons?
|
|
|
|
|
I think its not a good idea and i don't have any about the NTFS systems.
The file time is stored as number of 100 nano second intervels, so that much of number cann't be in a singlr DWORD at one level.
This is my thought but don't know excatly..
|
|
|
|
|
Hi,
thanks for replying. I tried to convert the FILETIME into year, months etc by calculating the no of 100 nano second intervals from 1601. But the value i am geting is quite high.
Thanks.
|
|
|
|
|
Dear all,
I am writing a Satellite DLL application for Localization process.
I need to allow the user to switch between different langauge at runtime.
[Using regional settings in Control panel we can change the input locale language. Then we can switch langauge using EN icon or shortcut keys]
How to allow the user to input texts in Different Language ? This should be done programatically(dynamically. i.e On-the-fly).
I am working in MFC application under windows 2000.
Experts Kindly suggest me.
Regards,
Karthik M
|
|
|
|
|
|
many function in which CWnd pointer is used
and i check in application the CWnd pointer is *pParent
what when i use this one it gives error
as in the m_spin.SetBuddy(CWnd *pWndBuddy);to attach a edit control with spin control
Ashish Dogra
MCA
Noida
|
|
|
|
|
Go to the dialog editor and open the spin control property window . There you can set the property for Alignment - Left and AutoBuddy to TRUE
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
when i set these properties application does not run
can u tell me why
thanks
Ashish Dogra
MCA
Noida
|
|
|
|
|
Seem_Spin1.SetBuddy(GetDlgItem(IDC_EDIT1));
and maybe you need to this function (if this function is next your question if not maybe it is some helpful to you )
void CAnswer::OnDeltaposSpin1(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>(pNMHDR);
SetDlgItemInt(IDC_EDIT1,m_Spin1.GetPos());
*pResult = 0;
}
whitesky
|
|
|
|
|
ashish dogra wrote: can u tell me why
Not without more information. When you say, "does not run," what exactly does that imply? Do you get a runtime error, an exception, an assertion, some incorrect value, etc? Have you stepped through the code using the debugger to see, or at least narrow down, what the problem is?
BTW, didn't you just ask this same question here a mere 2 hours ago?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
yes david when i answer to this question i see he asked this question already
whitesky
|
|
|
|
|
So, what's your point?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I say and you say but again we say a same question again again,...,I can say please dont post a same question like a loop
whitesky
|
|
|
|
|
Hi,
I have a really annoying problem, and I can't find the solution to it. Hopefully someone here can help me.
When I run my application on Win XP with themes activated, sometimes the vertical scrollbar in my childwindows locks and can't be used. Though I can still scroll with left/right on the keyboard.
The app works fine on 2000/XP without theme.
The app is an MDI application, and in one of the windowcontrols, I have a windowcontrol and then a childwindow control.
It is the childwindow controls that locks, but only the ones I've created by myself. A CListCtrl for example works perfectly. It's like my controls doesn't get that the scrollbar is used.
I really, really hope someone can shed some light on this for me
/Markus
"Computers are like airconditioners, they don't work properly when you open windows..."
|
|
|
|
|
hi all,
I have a Dll which will call CForm View. I want to Access the Member functions of the CMainframe Class all member functions which are userdefined from the DLL when i Execute the DLL.
Please let me know.
uday.
|
|
|
|
|
You want to put your view class in a DLL? Or your Frame class? or both?
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Are there any socket events in Windows and how can I handle them?
modified 9-Mar-17 17:16pm.
|
|
|
|
|
They hide that information in the DOCUMENTATION[^]
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
Hello all,
I have an activex control,which is a video player plays .cam files.I run this activex control using IE.Everything is working good.
The problem is, if i open two windows(IE) at a time,one is crashing and showing error.how to overcome this problem..
Giv me some ideas..
Thanks in advance
Sunita
|
|
|
|
|
What does your video player do when a second instance is started?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi,
when the second instance gets started,a new player will be downloaded again.As soon as the new player downloads,the older player is crashed and the new player starts playing the old cam file.
Any solution for this..
thanks in advance
sunita
|
|
|
|