Hello, while reading event Log records, I need to read generated time of Event Log. If Log Records are generated with Date before than 2038 year then those are getting read properly but for the records having date later than 2038 are not getting read. I am using CTime and Highest Range of CTime is 2038 only. Use of COleDateTime is not possible. Please suggest if there is any solution for this. Abhijeet
Abhijeet Rajput
Posts
-
Cant get Time of Event Log for year 2038 onwards -
Tool Tip on List ControlHello I have tab Control on OCX and in the one Tab i have inserted one MFC Dialog which contains List Control. I want to Set Tool Tip on that List Control. I have Tried following Events : OnToolHitTest & OnToolTipText these work fine in simple MFC but OnToolHitTest event does not get called in my application. Please Help Rajput
-
Create hash Key from InstallerHello Friends, My application installs the required softwares on machine. before installation,I need to check the installer if its corrupted or not.For that I need to create hash key of the software. Does anybuddy know how to create hash key for this? Thanks, Abhijeet Abhijeet
-
ListCtrlHello Friends. When I click on the Item in the listCtrl, next Item should also be selected. I did it by using SetItemState() method. When I select item it works fine i.e next item is also selected but when I click on that selected item,ideally,the item next to it shld be selected. But it only flashes...I mean it is selected and next moment it gets deselected by itself. Here is my code .. Its written in the function of NM_CLICK Message. CODE : BOOL l_bRet = 0; POSITION pos = m_SelList.GetFirstSelectedItemPosition(); int index = (int)pos; for(int j=(index-1); j
-
How to set CursorHello Friends, I want to change the Cursor when mouse is on Button. This I want to do in ATL. Abhijeet
-
Playing a fileYes Dear, First u fill the structure which u ll have to pass as a parameter in ShellExecute() method. You dont need to know the path of player which is going to play that file. Abhijeet
-
How do we can given the highlighted effect to the toolbar button when it is pressedNo, I am from Amravati. & graduated from Shegaon engineering College. Abhijeet
-
How do we can given the highlighted effect to the toolbar button when it is pressedYou can use SetState() method of CButton Class and set the parameter as TRUE to highlight the button Abhijeet
-
How do you add checkbox controls at runtimeHello, We cants add checkbox at run time. What we can do is: Add the Check Box in ur Dialog. After you read the Name of checkbox from file,u can change the lable of ur check box easily. If you want to display check box at run time only then you can hide them previously and then use ShowWindow(SW_SHOW) method to make those check box visible. Abhijeet
-
hi how to find no of files in a folder;)Hello, Here goes ur full solution. int count = 0; CFileFind finder; CStringArray l_caryFileNames; BOOL bWorking = finder.FindFile("*.*"); while (bWorking) { bWorking = finder.FindNextFile(); l_caryFileNames.Add(finder.GetFileTitle()); count ++; } Abhijeet -- modified at 6:41 Tuesday 19th December, 2006
-
hi how to find no of files in a folder:)Hello Reply from Aman Sonny seems correct. You can get the number of file in the varible count used by Aman. To get the name of file excluding extention use finder.getFileTitle() method. Abhijeet
-
How to change Button Color in ATL COM?Hello Friends, does anybuddy know,How to color the button in ATL COM. I have used DrawItem() Method to Redraw the button. It works fine in MFC but does not work in ATL COM.:zzz: Abhijeet