Re: [sqlite] WinCE sqlite version 3.0.7 source code with fixes available?

2004-10-10 Thread Nuno Lucas
Steve Frierdich, dando pulos de alegria, escreveu :
Does anyone have  WinCE sqlite version 3.0.7 source that has fixes and 
has been tested on WinCE and works available for download? I downloaded 
some WinCE source from a website but there were bugs in it when I 
compiled the source code. The bugs were minor and simple to fix, but 
they were bugs that one would never expect to appear such as:
Expected constants not defined, illegal zero size array.
If you did read the readme file you would have seen that you don't
include the shell.c file to build the sqlite lib/dll.
The shell.c file is for compiling the sqlite.exe command line program,
which you can't do in most WinCE platforms (you need a command line
application, like PocketConsole).
Regards,
~Nuno Lucas


Re: [sqlite] WinCE port

2004-10-10 Thread Nuno Lucas
John Oliva, dando pulos de alegria, escreveu :
Nuno,
Is this port freely available?  I presume you can use it to build the
textfixture for running on the PPC target.
Thanks,
John Oliva
You can try this link:
http://mamaich.kasone.com/
Regards,
~Nuno Lucas


Re: [sqlite] WinCE Sqlite 3.0.7 config file missing alot of stuff that is contained in 2.8.15

2004-10-10 Thread Nuno Lucas
Steve Frierdich, dando pulos de alegria, escreveu :
The config.h file for WinCE version sqlite 3.0.7 downloaded from 
sourceforge

http://sourceforge.net/project/showfiles.php?group_id=88393_id=125382_id=271513 

is very different from the config.h for version 2.8.15. The 3.0.7 
version does not contain structures, define statements, inline 
functions, and source forth as is contained in the config.h file for 
version 2.8.15.Is this an error? ...
Most of the WinCE hacks moved into os_win.h for 3.0.x.
... Version 2.8.15 for WinCE implements 
database locks, does this version 3.0.7 also implement datalocks? ...
As stated in the readme file, no.
... Is
there a newer version 3.0.7 of  WinCE  source code with fixes available 
for download?
The only error report I had for 3.0.7 is that some platforms also need
the "free" hack, nothing more.
The version 3.0.7 I downloaded from sourceforge does not compile fully 
either.
Please report what makes you say that, and maybe it would be better to
use the sqlite-wince forums or mailing list, as this can be a little OT
here.
Remember WinCE is available for many different platforms, each with it's
own include files, and has big differences between versions, so I can't
in any way guess the problems that will be right from start.
Another issue is different definitions when MFC is used (some C runtime
functions are implemented in the MFC DLL, but can't be used without it).
Regards,
~Nuno Lucas



RE: [sqlite] Saving bitmap image to SQLite3 record?

2004-10-10 Thread kervin

GetObject() returns a BITMAP struct which contains a 'LPVOID bmBits'
member.  I thought that would do it.

I have never tried it though.

GetDIBits() might also work...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_7gms.asp

-
Kervin


Quoting support <[EMAIL PROTECTED]>:

> The GetObject() call gets basic information about the bitmap (size, etc.)
> but doesn't provide anything else. I'd like to get the bytes contained in
> the HBITMAP handle and possibly bind that to a record field. If anyone has
> done this before, please let me know!
>
> Thanks,
>
> Dave
>
> > Hello,
> >
> > A bit on the offtopic side but would GDI function
> > 'GetObject()' do?
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-
> us/gdi/devcons_912s.asp
>
> Kervin
>
> Quoting support <[EMAIL PROTECTED]>:
>
> > I'd like to store bitmap images into an SQLite database, and I can't
> > seem to figure out how to do it. I'm programming for Windows using
> > Visual C++, and I have the bitmap image stored in a HBITMAP handle in
> > my C program.
> >
> > My question is, how can I get the data from the HBITMAP handle and
> > store it in a SQL record field?
> >
> > I understand how to bind blob data (which I think would apply in this
> > case), however, I don't know what data to bind using the HBITMAP
> > handle.
> >
> > Any advice would be appreciated!
> >
> > Thanks,
> >
> > Dave
> >
> >
>
>
>
>
>





RE: [sqlite] Saving bitmap image to SQLite3 record?

2004-10-10 Thread support
The GetObject() call gets basic information about the bitmap (size, etc.)
but doesn't provide anything else. I'd like to get the bytes contained in
the HBITMAP handle and possibly bind that to a record field. If anyone has
done this before, please let me know!

Thanks,

Dave
 
> Hello,
> 
> A bit on the offtopic side but would GDI function 
> 'GetObject()' do? 
> http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/gdi/devcons_912s.asp

Kervin

Quoting support <[EMAIL PROTECTED]>:

> I'd like to store bitmap images into an SQLite database, and I can't 
> seem to figure out how to do it. I'm programming for Windows using 
> Visual C++, and I have the bitmap image stored in a HBITMAP handle in 
> my C program.
>
> My question is, how can I get the data from the HBITMAP handle and 
> store it in a SQL record field?
>
> I understand how to bind blob data (which I think would apply in this 
> case), however, I don't know what data to bind using the HBITMAP 
> handle.
>
> Any advice would be appreciated!
>
> Thanks,
>
> Dave
>
>






Re: [sqlite] Saving bitmap image to SQLite3 record?

2004-10-10 Thread kervin

Hello,

A bit on the offtopic side but would GDI function 'GetObject()' do?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_912s.asp

Kervin

Quoting support <[EMAIL PROTECTED]>:

> I'd like to store bitmap images into an SQLite database, and I can't seem to
> figure out how to do it. I'm programming for Windows using Visual C++, and I
> have the bitmap image stored in a HBITMAP handle in my C program.
>
> My question is, how can I get the data from the HBITMAP handle and store it
> in a SQL record field?
>
> I understand how to bind blob data (which I think would apply in this case),
> however, I don't know what data to bind using the HBITMAP handle.
>
> Any advice would be appreciated!
>
> Thanks,
>
> Dave
>
>