X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 885E5D8EC5 for ; Wed, 14 Sep 2005 11:56:03 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05182-10 for ; Wed, 14 Sep 2005 14:55:43 +0000 (GMT) Received: from smtp6.wanadoo.fr (smtp6.wanadoo.fr [193.252.22.25]) by svr1.postgresql.org (Postfix) with ESMTP id 6EDFAD8E95 for ; Wed, 14 Sep 2005 11:55:44 -0300 (ADT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0609.wanadoo.fr (SMTP Server) with ESMTP id 2F74924000DE for ; Wed, 14 Sep 2005 16:55:46 +0200 (CEST) Received: from hortus.fr (AMontpellier-206-1-2-136.w80-11.abo.wanadoo.fr [80.11.37.136]) by mwinf0609.wanadoo.fr (SMTP Server) with ESMTP id C4E3B2400128; Wed, 14 Sep 2005 16:55:45 +0200 (CEST) X-ME-UUID: 20050914145545806.C4E3B2400128@mwinf0609.wanadoo.fr Message-ID: <43283965.8020800@hortus.fr> Date: Wed, 14 Sep 2005 16:53:25 +0200 From: Andre THEVENIN Reply-To: andre.thevenin@hortus.fr User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: fr-fr, fr MIME-Version: 1.0 Cc: PostgreSQL-ODBC Subject: ODBC : problem with bookmark References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/127 X-Sequence-Number: 6025 Hi, I just begin to use PostGRE with ODBC on Win2000/VC++6 I arrive to this kind of things void CODBCDlg::OnOpen() { CString sql; CComptes cpt(&m_fBase); m_fBase.Open("ODBC;DSN=KEOPS"); sql.Format("SELECT * FROM [Comptes] WHERE [Type]=1", cpt.GetDefaultSQL()); cpt.Open(cpt.snapshot,sql,CRecordset::useBookmarks); cpt.AddNew(); cpt.m_Type=4; cpt.m_Etat=2; cpt.m_Nom="DD"; cpt.m_Date_ouverture=COleDateTime::GetCurrentTime(); cpt.Update(); CDBVariant mark; cpt.GetBookmark(mark); cpt.Close(); m_fBase.Close(); } The Update works, but i have an error on GetBookmark Error 24000 : Invalid cursor state What can I do ? -- André THEVENIN Hortus Technologies 04 99 61 47 80 06 19 01 48 20 J'ai mis toute ma vie ŕ savoir dessiner comme un enfant. (Pablo Picasso)