I think this can be possible to use your allocated space, As Mike was saying in another message, I am also not finding this much useful. As If you have some use of this in your mine, please let us know. some points I found are : ** it'll never release memory, whenever you need memory you are just allocating(if not available then new page). If it started using same memory then it would become long task. ** If one have to use any dynamic variable like CArray, CMap etc. as used in MFC. Regards, Sumit K.:) Never consider anything impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
Sumit Kapoor
Posts
-
VirtualAlloc question ? -
Intelligent bitmap depth conversion 1,4,8,16,24 bitsfor 24 to 16 no idea come to mind... For 24 to 8 bit.. ya..you are right I have to iterate and find out about color usage, that's already going in my mind, For 256 colors we can make 216 colors by combinations of(0,51,102,153,204, 255)and other 40 colors I have not found yet..how to find these.. But I don't think, it's a good idea. I m working in this direction..but mind is still trying to avoide this method. Regards, Sumit K sumit_kapoor1980@hotmail.com
-
Intelligent bitmap depth conversion 1,4,8,16,24 bitsHi All, I want to do Intelligent bitmap depth conversion. Convert XXX to XXX (without color lose): 24 bits --> 16 bits (If few color used that can fit in 16 bits) 24 bits --> 8 bits (If few color used that can fit in 8 bits) 24 bits --> 4 bits (If few color used that can fit in 4 bits) 24 bits --> 1 bits (If few color used that can fit in 1 bit) Do u know, How I can find this bitmap has exact color(with no color lose) to fit in lower depth? For example : If I have a 24bits baitmap, but that is using only two colors. These two colors can be shown by 4 bits bitmap without any lose of color, then I should use 4 bits bitmap WHY 24 bits. Thanks:) Sumit K.:) ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
How to get the sectors/clusters of a particular file?I don't know it is fully possible or not with another API.. DeviceIOControl(). This API is used for similar type of work, even file related. Check MSDN for more detail. I think it would be only help that I can do. Let me know if you get any direct method(by e-mail). Regards, Sumit Kapoor +91-98-990-59818(M) Delhi >> INDIA sumit_kapoor1980@rediffmail.com Never consider anything impossible before trying to solve that..---Sumit Kapoor---
-
How to get the sectors/clusters of a particular file?Hi Jahfer, I think you just need to reach to cluster, then following function would let you know how many sectors are there in one cluster & bye info of sector. BOOL GetDiskFreeSpace( LPCTSTR lpRootPathName, // pointer to root path LPDWORD lpSectorsPerCluster, // pointer to sectors per cluster LPDWORD lpBytesPerSector, // pointer to bytes per sector LPDWORD lpNumberOfFreeClusters, // pointer to number of free clusters LPDWORD lpTotalNumberOfClusters // pointer to total number of clusters ); Then you need to iterate for sectors. Regards, Sumit Kapoor +91-98-990-59818(M) Delhi >> INDIA sumit_kapoor1980@rediffmail.com Never consider anything impossible before trying to solve that..---Sumit Kapoor---
-
Find changed Control on Dialog.Sir Ji, That's what I'm asking, When to set this variable TRUE, as your suggestion showing that I need to track all controls for changes..that I don't want to do. I just want to find out, User changed any control's value or Not? if changed then I have to save otherwise Ignore on OK Button. Just Think & let mw know if any idea? Thanks Sumit Kapoor Never consider anything impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
Find changed Control on Dialog.Hi.. How to find any control on dialog has changed without tracking setfocus() lostFocus() of each control. As there are too many screens & too many controls on those screens. I just find out, if need for Save on OK Button or not needed. I'm saving data when user press OK.. I want to check that if user changed something then only I run sql to update otherwise nothing should be done... Can anybody help me? Regards Sumit Kapoor Never consider anything impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
Retain MFC Controls values for Next Open VC++6.0Hi, Thanks for suggesting me solution, I used following article for saving data, http://www.codeproject.com/dialog/dlgset.asp This article use trick & save all control's data in registry.Nice one. Thanks again Have a Nice Life. Sumit Kapoor Never consider anything impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
Retain MFC Controls values for Next Open VC++6.0Hi… How r u? What’s going on? Hope every thing is well. I need any idea in VC++. Background: There is a form or dialog which is picking too many values from database & taking time to manipulate those values. Problem: Now I want to retain or save all values in all controls on dialog when second time user open that dialog instead of reload from database. Question: Is there any class can be used to retain all values of all controls on dialog & can be retain on next opening of dialog. If you have any idea, please let me know. I’m waiting… OK! Have a nice day. With Best Regards Sumit Kapoor Never consider anything impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
How to Remove ActiveX from project VC++6Hi Dear, I've added MS Chart Control ActiveX by Project=>Add to Project=>Companent & selected register control. That added lot of classes in my project. Now I want to remove that ActiveX & their classes. How to do this? Thanks ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
Create Thumbnail of MS WORD filehi.. Can u give me idea of Create Thumbnail of MS WORD file first Page. I'm using vc++ & asking used to select file from my list box. then there is a preview box there which sud show image preview of Word file selected in listbox. I hope u must have an idea.. Thanks ---Sumit Kapoor---sumit_kapoor1980@hotmail.com
-
How Get Cookie from serverHI.. Can u tell me How to get Cookies from sever, I'm sending request via Internet Explorer then it set Cookies, but when I send Request via my program then It Don't send Cookie. Do u know How to get cookies from server using mfc or win32 api. i hope u help me. Thanks ---Sumit Kapoor---
-
HttpEndRequest Freeze on Windows XP why ?Hi.. I'm sending http request in which i'm passing userID/password, then it got struck on HttpEndRequest() in case of windows XP..even on fresh Windows 98 PC. What do you think it's reason..Is it any reason of security in WinInet or some OS file missing. In My PC with Windows 98 it's working fine. but as I transfer it stop working, I've checked Dependency with "Depends" & provided all files, but system Hang (Freeze) when execute function HttpEndRequest(). Plz Suggest any Solution.. Thanks.. ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
Global Variable..(Simple but difficult....)Ya..Dear, Ya Dear your are right, I'm facing problem in release version,not in Debug. But can you give more clear idea..how to do? // Take these as Global CCriticalSection _bStopRightDownThread; bool bStopRightDownThread; ..... ..... ..... // In particular function use as follow _bStopRightDownThread.Lock(); bStopRightDownThread = true; _bStopRightDownThread.Unlock(); Do Your means this? If yes..then I'm using this in many files, DO u means I've to share Critical section vaiable to all using: extern CCriticalSection _bStopRightDownThread; or induvaully declare in all files.. PLz Gide a One step more.. Thanks for reply.. ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
Global Variable..(Simple but difficult....)Hi.. I'm using Global variable in VC++ MFC by declaring variable in .cpp file. then I've to use "extern" to acces that variable from other file..that's OK!..if I'm working normal..But when I use to access that Variable from thread..then It gives Error in Relase varsion(NOTE: not giving error in DEBUG version).. 1. Whenever I need to write new value I use CCriticalSection variable & Lock & unlock while operation of writing.. e.g: CCriticalSection a1; a1.Lock(); bStopRightDownThread=true; a1.Unlock(); 2. This value is Continue used by thread & checked by thread..if this value change then thread take action as per value... Problem : It is giving Illigal Operation error & close application in case of RELEASE version, but working fine in case of DEBUG version. WHAT DO YOU THINK REASON OF THIS? THanks..I'm waiting for your reply...:) ---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
how to call SQL BLOB in MFCHi..Check out..codeproject site.. A aritcle is there for saving BLOB data..use that method..that is applicable to all database... Bye..Have fun.. Never consider anything Impossible before trying to solve that..---Sumit Kapoor---
-
How to call MFC DLL in installShield 6.xHow to call MFC DLL in installShield 6.x --------------------------------------------- hi..Dear Plz tell me How to call Dll in installshield. there me be proble of DLL type so can you send me Sample DLL prject + Calling method ... just one function in dll...any any any ...void abc()... PLease Please....Please...anybody help me please... i'm posting again & again..but no body ready to help me...Can U..please... i hope u help me.. my e-mail is: sumit_kapoor1980@hotmail.com Thanks ---Sumit Kapoor---
-
what dll expected by Installsheild UseDLL()hi... Can anybody give me any sample dll & script file of install shield... I'm trying to use DLL in installsheild but it is not accepting DLL.. even UseDLL() function fail to load.. I'll be thankful... Sumit Kapoor sumit_kapoor1980@hotmail.com ---Sumit Kapoor---
-
AWS Report for OpenListingAWS Report for OpenListing --------------------------------- Hi.. Can any one help me Generate & Get Open Listing report in Amazon Web Services (AWS) Just need steps.. Thanks Never consider anything Impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
-
AWS Report for OpenListingAWS Report for OpenListing --------------------------------- Hi.. Can any one help me Generate & Get Open Listing report in Amazon Web Services (AWS) Just need steps.. Thanks Never consider anything Impossible before trying to solve that..---Sumit Kapoor--- sumit_kapoor1980@hotmail.com