12 Mar 21:24
corrupted data
From: EdK <e_d_k <at> yahoo.com>
Subject: corrupted data
Newsgroups: gmane.comp.db.metakit
Date: 2008-03-12 20:28:12 GMT
Subject: corrupted data
Newsgroups: gmane.comp.db.metakit
Date: 2008-03-12 20:28:12 GMT
I'm trying to use metakit with mingw C++ under windows XP, but my data
seems to be getting curupted. this is my code:
#include "mk4.h"
#include "mk4str.h"
#include <iostream>
#include <string>
const std::string test_table_name("tst");
const std::string ID_field_name("ID");
const std::string result_field_name("result");
const std::string test_number_field_name("testnum");
c4_StringProp pID (ID_field_name.c_str());
c4_DoubleProp pResult (result_field_name.c_str());
c4_LongProp pTestNum (test_number_field_name.c_str());
int main()
{
std::cout << "testing MetaKit" << std::endl;
c4_Storage storage ("testmetakit.dat", true);
std::cout << storage.Description() << std::endl;
// Start with an empty view of the proper structure.
c4_View record = storage.GetAs((test_table_name + "["
+ ID_field_name + ":S,"
(Continue reading)
RSS Feed