Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Firefox Sqlite
I am developing an app in VC++ which need to access Mozilla cookies. I know little bit that mozilla now stores the cookies in SQLite DB. what all header files or libraries I require and how to access the mozilla cookies?
Posted 8-Jan-12 21:11pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Well you should try to add the sqllite library to your app to retrieve the cookies from the db
 

you could try CppSQLite - C++ Wrapper for SQLite[^]
  Permalink  
Comments
Avinash Pachar at 10-Jan-12 2:01am
   
I tried that but during runtime i get the error "This application failed to start because sqlite3.dll was not found. Re-installing the application may fix this problem."
What can be done to solve this problem.
Avinash Pachar at 10-Jan-12 2:57am
   
Solved.
We have to copy sqlite.dll in the same prject folder which we are running.
Shakti Misra at 11-Jan-12 3:35am
   
You need to have sqlite.dll in the system path rather than same folder.
Avinash Pachar at 12-Jan-12 1:36am
   
thanks for that.
I have another question. using CppSQLite - C++ Wrapper for SQLite I am able to retrieve chrome cookies(where it is stored in file "cookies" without any extention), but when i try to access mozilla cookies which are stored in "cookies.sqlite", i get "UNKNOWN ERRORS". Any idea why this happens and how to solve it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 BillWoodruff 360
1 Mathew Soji 309
2 DamithSL 225
3 Afzaal Ahmad Zeeshan 202
4 Maciej Los 190
0 OriginalGriff 6,249
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 3,865


Advertise | Privacy | Mobile
Web03 | 2.8.1411019.1 | Last Updated 9 Jan 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100