I would just do binary or plaintext file, put in resource, when needed load to memory and do something like Price=MemArray[index]. Igor Green http://www.grigsoft.com/ Compare It! + Synchronize It! - files and folders comparison never was easier!
User 307386
Posts
-
Visual C++.Net - Alternative to Large Switch Case -
It crashes !Doesn't matter, how big your memory is. Your data is allocated on stack, and there is a limit for stack size. I'm not sure about default stack (1Mb?), you can check docs for it, you can also adjust its size in compiler settings. But allocation of big memory blocks on stack is very bad practice. Igor Green http://www.grigsoft.com/ Compare It! + Synchronize It! - files and folders comparison never was easier!
-
Extract text from Ms -office documentsIf requiring Office to be installed on target PC is OK, check COM. Otherwise there are 3rd party suppliers for libraries reading various formats. Search for "xls text conversion" etc. I can recommend wordcnv.com[^] for Word conversion, I have used it without problems. Igor Green http://www.grigsoft.com Compare It! + Synchronize It! : Files and folders comparison never was easier!
-
Where is the problem ? please help...Obviously you are missing the PSheet point - it is not to be used in Dialog (at least normally). PSheet was designed to be used on itself only, providing general dialog with pages - I guess this is the reason you have problems. If you want to have dialog with pages among other controls, you will have to add it manually by adding tab control and managing tab switches yourself. I do have a class for this, if someone would be interested I could try to make an article on CP on with it. Igor Green http://www.grigsoft.com Compare It! + Synchronize It! : Files and folders comparison never was easier!
-
How to compare two files quickly?No, this is the fastest way. The speed will depend on realization. while (*p1++==*p2++); will be slower than memcmp, fully loaded files are a bit faster then mapped files, etc. The only alternative is some crc generation, but it will be faster only when comparing one file to many. Igor Green http://www.grigsoft.com Compare It! + Synchronize It! : Files and folders comparison never was easier!
-
Help!!! How to write single Event Handler for 100 buttons...Or check ON_COMMAND_RANGE, just make sure your buttons have subsequent IDs. Your handler will look like: void MyApp::OnButton(UINT nID) { int nIdx = nID-IDC_BUTTON1; // handle button by order index } Igor Green http://www.grigsoft.com Compare It! + Synchronize It! : Files and folders comparison never was easier!
-
Help with menusHave you checked WTL? It is generally considered a good alternative to MFC. Much less crap, smaller binaries. There are also a lot of ready-to-use classes, including menu (check CP's wtl part) Igor Green http://www.grigsoft.com Compare It! + Synchronize It! : Files and folders comparison never was easier!
-
Advice RequiredI would just add some settings file, if you don't have one yet. There you could add smth like this: [Custom] DoSomething=... DoSomethingElse=... Given the possibilities you have, you will have to think over what to write in keys to be simple enough for end user to edit it. Alternatively, you could add some settings dialog which you will adjust to it.
-
Writting data to CDI don't know - I'm VC developer myself. But it should not matter - any Win32 development platform will have same limitation - well, maybe you will find free Delphi library for this. Another choice could be .Net - but it will limit your target platform anyway. Igor Green http://www.grigsoft.com[^] Compare It! + Synchronize It! : Files and folders comparison never was easier!
-
Writting data to CDIf it is required under XP only, you may check ASPI interface. Otherwise quickest solution will be using 3rd party libraries, like that of binarymagics.com Igor Green http://www.grigsoft.com[^] Compare It! + Synchronize It! : Files and folders comparison never was easier!
-
Finding CRLF or other Characters in charJust use
case 13: // code
char is numerical type in C++ Igor Green http://www.grigsoft.com Compare It! + Synchronize It! : Files and folders comparison never was easier!