From: D P <djp...@gm...> - 2013-04-11 02:31:39
|
Hi Gary, Thanks. The code looked OK and both xbconfig.h and xbwincfg.h have #define XB_MEMO_FIELDS 1. I un-tarred a fresh copy and brought it into codeblocks again, globally replaced all the #ifdef XB_MEMO_FIELDS with //#ifdef and then compiled again with MINGW to let the compiler point out the orphan #endif 's. Maybe I fat fingered (or fat brained lol) something when I originally did it. I recompiled again, and memo fields now work. I have no clue why they wouldn't with the #ifdef's there, everything should have worked. Maybe it's a codeblocks/MINGW thing, but I'll have to look after I get my code back on track. Will keep everyone posted if I find out the why. Thanks again...this is a great library! I'm really loving having my simple but powerful .DBF's back for stand alone apps. I've already re-invented a ton of old Clipper commands and functions into my own lib to use with it lol. Just a quick question. I remember reading somewhere (maybe in the old docs, can't find the reference again) that there was a problem with locking in Windows. Is that old news that's been fixed or still an issue? Thanks again. On 4/10/13, Gary Kunkel <gbo...@ya...> wrote: > Make sure the code isn't commented out in the file. > > There should be an actual piece of code for this in one of the .cpp files - > you might want to check to make sure it is there. > > Gary > > > ________________________________ > From: D P <djp...@gm...> > To: xdb...@li... > Sent: Friday, April 5, 2013 4:42 PM > Subject: [XDB-users] UpdateMemoData problem > > A while ago, I downloaded xbase and attempted to compile it using > MinGW/msys with no luck (see my earlier post). I took the .cpp files > and the .h files and created a new code::blocks project and after some > minor cosmetic changes, was able to compile the library successfully > and have been happily creating structures, databases, indexes and even > memo files! > > So now, I'm writing a project in which I would like to USE those > wonderful structures, databases and index files and everything works > fine until I try to write a memo field to the database: > > if ( rc = (CustMFile.UpdateMemoData(CUSTCMT,MemoLen, &C_Memo, XB_LOCK > )) != XB_NO_ERROR ) > > I try to compile and I get : > > C:\Dev\xxxx\new_cust.cpp|725|error: no matching function for call to > 'xbDbf::UpdateMemoData(xbShort&, xbLong&, char (*)[1025], int)' > > I go back to the library source and check things.... > > XB_MEMO_FIELDS is defined to 1, everything else looks good. I even go > as far as to comment every #ifdef XB_MEMO_FIELDS #endif pair in the > entire library, recompile and still the same result. I've spent 3 days > trying to figure this out, to no avail. Can anyone PLEASE point me in > the right direction? > > ------------------------------------------------------------------------------ > Minimize network downtime and maximize team effectiveness. > Reduce network management and security costs.Learn how to hire > the most talented Cisco Certified professionals. Visit the > Employer Resources Portal > http://www.cisco.com/web/learning/employer_resources/index.html > _______________________________________________ > XDB-users mailing list > XDB...@li... > https://lists.sourceforge.net/lists/listinfo/xdb-users |