Gmus's Posts
Nairaland Forum › Gmus's Profile › Gmus's Posts
seunthomas:I understand what u are saying perfectly well now. I actually wrote a similar implementation dt did not work. I use CppSQLite3 C++ wrapper for sqlite. Apart from d fact dt i used a mutex to ensure read lock and d fact that i used another file with a name formed usung the name of d actual db file, my implentation and yours are identical. However each time i attempt to copy d (now) re-encrypted file back to d database file, an exception is thrown. |
seunthomas:I suppose dt this what you mean https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx#caching_behavior |
seunthomas:I suppose dt this what you mean |
seunthomas:It is not locking files that is strange to me, it is opening it in the temporary mode using the extension you gave that is strange to me. |
gimakon:Actually, because I couldn't encrypt that database it self or password it, I am at the moment, encrypting the strings as I learnt through google search, but any body who knows what to do can see view the schema of my database, now that is a large security hole that I have been worried about. I wish to encrypt the entire database. |
seunthomas:Now this is funny, I have been programming in C++ for years but do not think I know how to open a file in read lock mode as temporary file as u indicated here. Is the highlighted operation an SQLite operation or a normal c++ file operation or a Win32/MFC operation? By the way I am using MFC for this app and it means I am programming for windows. If it is an SQLite3 operation I could quickly check the manual online and get the details, but if it a c++ file operation, I am afraid I don't know it and I will really appreciate it if you can give me a brief explantion on that. I assure that I will quickly get the gist if you give me a brief explanation. Even though I am progrmming with MFC, I can use any C/C++ construct that I desire. The lesson, I am learning today is never to underrate nairaland. Many popular glabally acclaimed forum that I belong to have failed me. So also has google on this. Talk of something being in the pocket of your sokoto.... Please, friend kindly help me with more detailed info as requested. After thought: Since you used the word "handle" I am assuming it a win32/MFC file open operation. I am checking that up now. This doesn't however mean you should no longer give the requested additional detail. |