Hi, Thank you for your reply. Web server machine administrator will change the time of web server machine. Is there any way to keep the session alive even if the web server machine time changed? // Jahfer.
jahfer
Posts
-
All sessions expire when system time changes. Why? How to solve it? -
All sessions expire when system time changes. Why? How to solve it?Hi, I have set a time-out value of 2 min. When the system time changes, all existing sessions get automatically expired. What will be the problem? How can we solve this? We cannot increase the time out value from 2 min. Session state mode is "InProc" (Not set anything in Web.Config. So it will be taking the default "InProc" mode. I assume so.) Thanks in advance for your help // Jahfer.
-
How to get the virtual printers (eg: Acrobat PDFWriter) installed?Hi How to get all the virtual printers ( for example: Acrobat PDFWriter, pdfFactory Pro, PDF995 etc.)installed on a machine? I tried with the API "EnumPrinters()", but this returns all the printers (including both virtual and real printers) installed on the machine. Development Tool and Platform used: VC++ .NET 2003 & Windows Xp. Thanks in advance, Jahfer.
-
How to localize open dialog box?Thank u for all replies. Actually, the problem with me was that I didn't used UNICODE macro. When I took a UNICODE build, the letters changed to Japanese. But the "open" and "cancel" text on the button still remains same. Is there any way to change this? Jahfer V P.
-
How to localize open dialog box?I am using Windows 2000 Professional (English) and Visual Studio 6.0 (English, entrerprise edition) for the development. I have created an SDI application for supporting Japanese language. In this SDI all menus are Japanese(this is what I needed). But the open dialog box still display in English. How can I change this too to Japanese? Thanks in advance Jahfer.
-
How to change resource of exported class from a DLL?Hi All I developed a MFC extension dll which has English resources in it. I want to incorporate French resource to this dll. I am using this dll in my main application. The resources loading from this dll should be controlled programatically. (ie, In English OS it should load French resource or vice versa) I have come across the following code /***********/ HINSTANCE = LoadLibrary("MyDll"); AxSetResourceHandle(hinstance); /***********/ But It is not working in dlls (Inside DllMain()). How can I do it dlls? regards Jafi.
-
How to copy ONLY the updated data from a large file?Dear khan++, That doesn't solve my problem, because I am not the person going to update the file. More over, the file may get updated not only at its end but anywhere in it. Any other idea? regards, Jahfer V P.
-
How to copy ONLY the updated data from a large file?Hello, I copied a large file from one disk(source) to another disk(destination). After this I made (manually or programmatically) some changes in the file on the source disk. Now, these changes should reflect in the file on the destination disk also. In order to achieve this, I copied the file again from source to destination. Since the file is a large one this method is not efficient. Because, for any minute change, I have to copy the entire thing. Is there any way to copy only the updated portion from the file on the source disk to the file on the destination disk? Hoping to get a reply soon. Thanks in advance. regards, Jahfer V P.
-
How to get the sectors/clusters of a particular file?I need to get the sectors/clustors of a file. A file may be in contiguous sectors or may be scattered, on the disk. I want to get this sector information. Jahfer V P.
-
How to get the sectors/clusters of a particular file?Hi, How to get the sectors/clusters of a particular file? I am working on Windows 2000. Hoping to get a reply soon. TIA. regards, Jahfer V P.
-
How to create disk image?Hi, I want to copy the entire content of a hard disk to another one. The second hard disk should be an exact image of the original one, after the copying process. How to do this using VC++ or C++ or C? Please suggest me the way of approach that I have to adopt. Hoping to get a reply soon. TIA. regards, Jahfer V P.
-
How to run an application when clicking "Shut Down" from start menu?Hello, I am using Windows 2000 Professional and VC++ 6.0 (MFC). I have created a simple dialog based application. I want to run this application when I click "Shut Down" from start menu. How to achieve this? TIA, Regards, Jahfer V P
-
File I/O : Which one to use? CFile or fstream?Dear Stolid_rock, Can you give any sample code doing this? Regards, Jahfer V P.
-
File I/O : Which one to use? CFile or fstream?Hello, I am working with VC++ 6.0 (MFC). I need to write the following structure to a file in binary mode. struct EmployeeData { char strName[50]; UINT nAge; float fSalary; }; For that, which class that I will use? CFile or fstream? TIA, Regards, Jahfer V P
-
MS FlexGrid : How to merge 4-cells to a single cell?Hi All, I am using MS FlexGrid with VC++ 6.0(MFC). How to merge 4 adjacent cells( they form a square) to a single one in the flexgrid. All the 4-cells contain the same text or picture. TIA, Regards, Jahfer V P
-
How to load picture to FlexGrid cell in MFC?Dear Suhredayan, Thank You for your great help. The sample you pointed out helped me to reach the destination. Here is the way that I implemented it. It is very simple. /******************************/ CPictureHolder picHdr; picHdr.CreateFromBitmap(IDB_BITMAP1); m_FlexGrid.SetCol(2); m_FlexGrid.SetRow(1); m_FlexGrid.SetRefCellPicture(picHdr.GetPictureDispatch()); /******************************/ Thanks & Regards, Jahfer V P
-
How to load picture to FlexGrid cell in MFC?Hello, I am working with MS FlexGrid and VC++ 6.0(MFC). I need to load a picture(bmp) to the cell of the flexgrid. How can I do this? TIA, Regards, Jahfer V P
-
How to set text vertically in a Microsoft FlexGrid cell?Hello, How to set text vertically in a Microsoft FlexGrid cell? TIA, Regards, Jahfer V P
-
How to add Scroll bars to ActiveX controls?Hello, I am using VC++ 6.0 and MFC to develope ActiveX Control. How can I add scrolling functionalities to the control window(derived from COleControl) similar that in CScrollView ? TIA, Jahfer V P.
-
GDI+ and ActiveX controlHello, I am working with GDI+ and MFC in VC++ 6.0 The initialization codes for GDI+ library is working fine for windows application. But its behaviour in ActiveX control is unexpected, sometimes initializes and sometime not. In both, Windows application and ActiveXcontrol, I included the code to initialize and uninitialize the GDI+ library in Application class's ("App" class derived from CWinApp) InitInstance() and ExitInstance() member functions respectively. Hoping to get a reply soon, TIA, Jahfer V P