Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
Done, it works :-) DEF file was the one that had been missing for a long time :( Thank you Mike. Ti Ny > From: [EMAIL PROTECTED] > To: sqlite-users@sqlite.org > Date: Fri, 28 Nov 2008 11:28:34 +0100 > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > Use the one included in this archive: > http://www.sqlite.org/sqlitedll-3_6_6_2.zip > > Mike > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > Gesendet: Freitag, 28. November 2008 11:26 > > An: sqlite-users@sqlite.org > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > I don't have DEF file :( > > > > Ti Ny > > > > > From: [EMAIL PROTECTED] > > > To: sqlite-users@sqlite.org > > > Date: Fri, 28 Nov 2008 11:17:54 +0100 > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > Have you given the DEF file to the linker? Are the exports > > visible in > > > dependency walker? Is your DLL and the executable process type > > > compatible (e.g. both 32 or 64-bits?) > > > > > > Mike > > > > > > > -Ursprüngliche Nachricht- > > > > Von: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > > > Gesendet: Freitag, 28. November 2008 10:57 > > > > An: sqlite-users@sqlite.org > > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > > > > > >Are you sure that your sqlite.dll exports its API? > > > > I downloaded sources available on the sqlite.org, is > > there anything > > > > special that is required to do to export API? > > > > > > > > > Like I said in my previous mail, I'd suggest using one of > > > > the already > > > > > available and well-tested .NET wrappers. > > > > Unfortunately that's not possible for objective reasons. > > > > > > > > Ti Ny > > > > > > > > > From: [EMAIL PROTECTED] > > > > > To: sqlite-users@sqlite.org > > > > > Date: Fri, 28 Nov 2008 10:54:10 +0100 > > > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > > > Have you set ExactSpelling? EntryPointNotFound doesn't have > > > > to do with > > > > > CallingConvention. Are you sure that your sqlite.dll > > > > exports its API? > > > > > > > > > > Like I said in my previous mail, I'd suggest using one of > > > > the already > > > > > available and well-tested .NET wrappers. > > > > > > > > > > Mike > > > > > > > > > > > -Ursprüngliche Nachricht- > > > > > > Von: [EMAIL PROTECTED] > > > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > > > > > Gesendet: Freitag, 28. November 2008 09:54 > > > > > > An: sqlite-users@sqlite.org > > > > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows > > Vista 64b > > > > > > > > > > > > > > > > > > It doesn't work even if I set CallingConvention. It fails on > > > > > > EntryPointNotFound exception. > > > > > > > > > > > > Ti Ny > > > > > > > > > > > > > From: [EMAIL PROTECTED] > > > > > > > To: sqlite-users@sqlite.org > > > > > > > Date: Thu, 27 Nov 2008 19:57:30 +0100 > > > > > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista > > > > > > > 64b > > > > > > > > > > > > > > The given code is correct. The lower-case string is a C# > > > > > > alias for the > > > > > > > System.String class. System.Int64 is an opaque 64-bit > > > > pointer value. > > > > > > > > > > > > > > The code so far is correct. What is missing though is > > > > the calling > > > > > > > convention, which by default is cdecl, but .NET doesn't use > > > > > > that one > > > > > > > by default for P/Invoke. It uses stdcall/winapi as the > > > > > > default calling > > > > > > > convention.
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
Use the one included in this archive: http://www.sqlite.org/sqlitedll-3_6_6_2.zip Mike > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > Gesendet: Freitag, 28. November 2008 11:26 > An: sqlite-users@sqlite.org > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > I don't have DEF file :( > > Ti Ny > > > From: [EMAIL PROTECTED] > > To: sqlite-users@sqlite.org > > Date: Fri, 28 Nov 2008 11:17:54 +0100 > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > Have you given the DEF file to the linker? Are the exports > visible in > > dependency walker? Is your DLL and the executable process type > > compatible (e.g. both 32 or 64-bits?) > > > > Mike > > > > > -Ursprüngliche Nachricht- > > > Von: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > > Gesendet: Freitag, 28. November 2008 10:57 > > > An: sqlite-users@sqlite.org > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > > >Are you sure that your sqlite.dll exports its API? > > > I downloaded sources available on the sqlite.org, is > there anything > > > special that is required to do to export API? > > > > > > > Like I said in my previous mail, I'd suggest using one of > > > the already > > > > available and well-tested .NET wrappers. > > > Unfortunately that's not possible for objective reasons. > > > > > > Ti Ny > > > > > > > From: [EMAIL PROTECTED] > > > > To: sqlite-users@sqlite.org > > > > Date: Fri, 28 Nov 2008 10:54:10 +0100 > > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > Have you set ExactSpelling? EntryPointNotFound doesn't have > > > to do with > > > > CallingConvention. Are you sure that your sqlite.dll > > > exports its API? > > > > > > > > Like I said in my previous mail, I'd suggest using one of > > > the already > > > > available and well-tested .NET wrappers. > > > > > > > > Mike > > > > > > > > > -Ursprüngliche Nachricht- > > > > > Von: [EMAIL PROTECTED] > > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > > > > Gesendet: Freitag, 28. November 2008 09:54 > > > > > An: sqlite-users@sqlite.org > > > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows > Vista 64b > > > > > > > > > > > > > > > It doesn't work even if I set CallingConvention. It fails on > > > > > EntryPointNotFound exception. > > > > > > > > > > Ti Ny > > > > > > > > > > > From: [EMAIL PROTECTED] > > > > > > To: sqlite-users@sqlite.org > > > > > > Date: Thu, 27 Nov 2008 19:57:30 +0100 > > > > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista > > > > > > 64b > > > > > > > > > > > > The given code is correct. The lower-case string is a C# > > > > > alias for the > > > > > > System.String class. System.Int64 is an opaque 64-bit > > > pointer value. > > > > > > > > > > > > The code so far is correct. What is missing though is > > > the calling > > > > > > convention, which by default is cdecl, but .NET doesn't use > > > > > that one > > > > > > by default for P/Invoke. It uses stdcall/winapi as the > > > > > default calling > > > > > > convention. Change the CallingConvention in the > DllImport line. > > > > > > > > > > > > Additionally using CharSet=CharSet.Unicode adds an > > > implicit W as > > > > > > per > > > > > > Win32 calling conventions to the function name. Since the > > > > > > sqlite3_open16 doesn't have that you need to use > > > ExactSpelling to > > > > > > prevent it from adding that W. > > > > > > > > > > > > Instead of rolling your own P/Invoke wrapper I'd suggest > > > > > using one of > > > > > > the available .NET wrappers for SQLite. > > > > > > > > > > > > Mike
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
I don't have DEF file :( Ti Ny > From: [EMAIL PROTECTED] > To: sqlite-users@sqlite.org > Date: Fri, 28 Nov 2008 11:17:54 +0100 > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > Have you given the DEF file to the linker? Are the exports visible in > dependency walker? Is your DLL and the executable process type compatible > (e.g. both 32 or 64-bits?) > > Mike > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > Gesendet: Freitag, 28. November 2008 10:57 > > An: sqlite-users@sqlite.org > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > >Are you sure that your sqlite.dll exports its API? > > I downloaded sources available on the sqlite.org, is there > > anything special that is required to do to export API? > > > > > Like I said in my previous mail, I'd suggest using one of > > the already > > > available and well-tested .NET wrappers. > > Unfortunately that's not possible for objective reasons. > > > > Ti Ny > > > > > From: [EMAIL PROTECTED] > > > To: sqlite-users@sqlite.org > > > Date: Fri, 28 Nov 2008 10:54:10 +0100 > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > Have you set ExactSpelling? EntryPointNotFound doesn't have > > to do with > > > CallingConvention. Are you sure that your sqlite.dll > > exports its API? > > > > > > Like I said in my previous mail, I'd suggest using one of > > the already > > > available and well-tested .NET wrappers. > > > > > > Mike > > > > > > > -Ursprüngliche Nachricht- > > > > Von: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > > > Gesendet: Freitag, 28. November 2008 09:54 > > > > An: sqlite-users@sqlite.org > > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > > > > > It doesn't work even if I set CallingConvention. It fails on > > > > EntryPointNotFound exception. > > > > > > > > Ti Ny > > > > > > > > > From: [EMAIL PROTECTED] > > > > > To: sqlite-users@sqlite.org > > > > > Date: Thu, 27 Nov 2008 19:57:30 +0100 > > > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > > > The given code is correct. The lower-case string is a C# > > > > alias for the > > > > > System.String class. System.Int64 is an opaque 64-bit > > pointer value. > > > > > > > > > > The code so far is correct. What is missing though is > > the calling > > > > > convention, which by default is cdecl, but .NET doesn't use > > > > that one > > > > > by default for P/Invoke. It uses stdcall/winapi as the > > > > default calling > > > > > convention. Change the CallingConvention in the DllImport line. > > > > > > > > > > Additionally using CharSet=CharSet.Unicode adds an > > implicit W as > > > > > per > > > > > Win32 calling conventions to the function name. Since the > > > > > sqlite3_open16 doesn't have that you need to use > > ExactSpelling to > > > > > prevent it from adding that W. > > > > > > > > > > Instead of rolling your own P/Invoke wrapper I'd suggest > > > > using one of > > > > > the available .NET wrappers for SQLite. > > > > > > > > > > Mike > > > > > > > > > > > -Ursprüngliche Nachricht- > > > > > > Von: [EMAIL PROTECTED] > > > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von > > > > Sherief N. > > > > > > Farouk > > > > > > Gesendet: Donnerstag, 27. November 2008 18:26 > > > > > > An: 'General Discussion of SQLite Database' > > > > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows > > Vista 64b > > > > > > > > > > > > > I am calling now this: > > > > > > > > > > > > > > [DllImport("sqlite3.dll", CharSet = > > CharSet.Unicode)] > > > > > > > internal static extern System.Int
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
If you haven't specified the DEF file during linking, no symbol is exported. There's no way for the .NET runtime to find the entry point without an export table. Mike > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > Gesendet: Freitag, 28. November 2008 11:23 > An: sqlite-users@sqlite.org > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > >Have you given the DEF file to the linker? Are the exports > visible in > >dependency walker? Is your DLL and the executable process type > >compatible (e.g. both 32 or 64-bits?)No I did not give DEF to linker > >(will try) > No, they are not > Executable and DLL are both 64b > > Ti Ny > > > From: [EMAIL PROTECTED] > > To: sqlite-users@sqlite.org > > Date: Fri, 28 Nov 2008 11:17:54 +0100 > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > Have you given the DEF file to the linker? Are the exports > visible in > > dependency walker? Is your DLL and the executable process type > > compatible (e.g. both 32 or 64-bits?) > > > > Mike > > > > > -Ursprüngliche Nachricht- > > > Von: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > > Gesendet: Freitag, 28. November 2008 10:57 > > > An: sqlite-users@sqlite.org > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > > >Are you sure that your sqlite.dll exports its API? > > > I downloaded sources available on the sqlite.org, is > there anything > > > special that is required to do to export API? > > > > > > > Like I said in my previous mail, I'd suggest using one of > > > the already > > > > available and well-tested .NET wrappers. > > > Unfortunately that's not possible for objective reasons. > > > > > > Ti Ny > > > > > > > From: [EMAIL PROTECTED] > > > > To: sqlite-users@sqlite.org > > > > Date: Fri, 28 Nov 2008 10:54:10 +0100 > > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > Have you set ExactSpelling? EntryPointNotFound doesn't have > > > to do with > > > > CallingConvention. Are you sure that your sqlite.dll > > > exports its API? > > > > > > > > Like I said in my previous mail, I'd suggest using one of > > > the already > > > > available and well-tested .NET wrappers. > > > > > > > > Mike > > > > > > > > > -Ursprüngliche Nachricht- > > > > > Von: [EMAIL PROTECTED] > > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > > > > Gesendet: Freitag, 28. November 2008 09:54 > > > > > An: sqlite-users@sqlite.org > > > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows > Vista 64b > > > > > > > > > > > > > > > It doesn't work even if I set CallingConvention. It fails on > > > > > EntryPointNotFound exception. > > > > > > > > > > Ti Ny > > > > > > > > > > > From: [EMAIL PROTECTED] > > > > > > To: sqlite-users@sqlite.org > > > > > > Date: Thu, 27 Nov 2008 19:57:30 +0100 > > > > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista > > > > > > 64b > > > > > > > > > > > > The given code is correct. The lower-case string is a C# > > > > > alias for the > > > > > > System.String class. System.Int64 is an opaque 64-bit > > > pointer value. > > > > > > > > > > > > The code so far is correct. What is missing though is > > > the calling > > > > > > convention, which by default is cdecl, but .NET doesn't use > > > > > that one > > > > > > by default for P/Invoke. It uses stdcall/winapi as the > > > > > default calling > > > > > > convention. Change the CallingConvention in the > DllImport line. > > > > > > > > > > > > Additionally using CharSet=CharSet.Unicode adds an > > > implicit W as > > > > > > per > > > > > > Win32 calling conventions to the function name. Since the > > > > > > sqlite3_open16 doesn't have t
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
>Have you given the DEF file to the linker? Are the exports visible in >dependency walker? Is your DLL and the executable process type compatible >(e.g. both 32 or 64-bits?)No I did not give DEF to linker (will try) No, they are not Executable and DLL are both 64b Ti Ny > From: [EMAIL PROTECTED] > To: sqlite-users@sqlite.org > Date: Fri, 28 Nov 2008 11:17:54 +0100 > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > Have you given the DEF file to the linker? Are the exports visible in > dependency walker? Is your DLL and the executable process type compatible > (e.g. both 32 or 64-bits?) > > Mike > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > Gesendet: Freitag, 28. November 2008 10:57 > > An: sqlite-users@sqlite.org > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > >Are you sure that your sqlite.dll exports its API? > > I downloaded sources available on the sqlite.org, is there > > anything special that is required to do to export API? > > > > > Like I said in my previous mail, I'd suggest using one of > > the already > > > available and well-tested .NET wrappers. > > Unfortunately that's not possible for objective reasons. > > > > Ti Ny > > > > > From: [EMAIL PROTECTED] > > > To: sqlite-users@sqlite.org > > > Date: Fri, 28 Nov 2008 10:54:10 +0100 > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > Have you set ExactSpelling? EntryPointNotFound doesn't have > > to do with > > > CallingConvention. Are you sure that your sqlite.dll > > exports its API? > > > > > > Like I said in my previous mail, I'd suggest using one of > > the already > > > available and well-tested .NET wrappers. > > > > > > Mike > > > > > > > -Ursprüngliche Nachricht- > > > > Von: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > > > Gesendet: Freitag, 28. November 2008 09:54 > > > > An: sqlite-users@sqlite.org > > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > > > > > It doesn't work even if I set CallingConvention. It fails on > > > > EntryPointNotFound exception. > > > > > > > > Ti Ny > > > > > > > > > From: [EMAIL PROTECTED] > > > > > To: sqlite-users@sqlite.org > > > > > Date: Thu, 27 Nov 2008 19:57:30 +0100 > > > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > > > The given code is correct. The lower-case string is a C# > > > > alias for the > > > > > System.String class. System.Int64 is an opaque 64-bit > > pointer value. > > > > > > > > > > The code so far is correct. What is missing though is > > the calling > > > > > convention, which by default is cdecl, but .NET doesn't use > > > > that one > > > > > by default for P/Invoke. It uses stdcall/winapi as the > > > > default calling > > > > > convention. Change the CallingConvention in the DllImport line. > > > > > > > > > > Additionally using CharSet=CharSet.Unicode adds an > > implicit W as > > > > > per > > > > > Win32 calling conventions to the function name. Since the > > > > > sqlite3_open16 doesn't have that you need to use > > ExactSpelling to > > > > > prevent it from adding that W. > > > > > > > > > > Instead of rolling your own P/Invoke wrapper I'd suggest > > > > using one of > > > > > the available .NET wrappers for SQLite. > > > > > > > > > > Mike > > > > > > > > > > > -Ursprüngliche Nachricht- > > > > > > Von: [EMAIL PROTECTED] > > > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von > > > > Sherief N. > > > > > > Farouk > > > > > > Gesendet: Donnerstag, 27. November 2008 18:26 > > > > > > An: 'General Discussion of SQLite Database' > > > > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows > > Vista 64b > > > > > > > > > > > >
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
Have you given the DEF file to the linker? Are the exports visible in dependency walker? Is your DLL and the executable process type compatible (e.g. both 32 or 64-bits?) Mike > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > Gesendet: Freitag, 28. November 2008 10:57 > An: sqlite-users@sqlite.org > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > >Are you sure that your sqlite.dll exports its API? > I downloaded sources available on the sqlite.org, is there > anything special that is required to do to export API? > > > Like I said in my previous mail, I'd suggest using one of > the already > > available and well-tested .NET wrappers. > Unfortunately that's not possible for objective reasons. > > Ti Ny > > > From: [EMAIL PROTECTED] > > To: sqlite-users@sqlite.org > > Date: Fri, 28 Nov 2008 10:54:10 +0100 > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > Have you set ExactSpelling? EntryPointNotFound doesn't have > to do with > > CallingConvention. Are you sure that your sqlite.dll > exports its API? > > > > Like I said in my previous mail, I'd suggest using one of > the already > > available and well-tested .NET wrappers. > > > > Mike > > > > > -Ursprüngliche Nachricht- > > > Von: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > > Gesendet: Freitag, 28. November 2008 09:54 > > > An: sqlite-users@sqlite.org > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > > It doesn't work even if I set CallingConvention. It fails on > > > EntryPointNotFound exception. > > > > > > Ti Ny > > > > > > > From: [EMAIL PROTECTED] > > > > To: sqlite-users@sqlite.org > > > > Date: Thu, 27 Nov 2008 19:57:30 +0100 > > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > The given code is correct. The lower-case string is a C# > > > alias for the > > > > System.String class. System.Int64 is an opaque 64-bit > pointer value. > > > > > > > > The code so far is correct. What is missing though is > the calling > > > > convention, which by default is cdecl, but .NET doesn't use > > > that one > > > > by default for P/Invoke. It uses stdcall/winapi as the > > > default calling > > > > convention. Change the CallingConvention in the DllImport line. > > > > > > > > Additionally using CharSet=CharSet.Unicode adds an > implicit W as > > > > per > > > > Win32 calling conventions to the function name. Since the > > > > sqlite3_open16 doesn't have that you need to use > ExactSpelling to > > > > prevent it from adding that W. > > > > > > > > Instead of rolling your own P/Invoke wrapper I'd suggest > > > using one of > > > > the available .NET wrappers for SQLite. > > > > > > > > Mike > > > > > > > > > -Ursprüngliche Nachricht- > > > > > Von: [EMAIL PROTECTED] > > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von > > > Sherief N. > > > > > Farouk > > > > > Gesendet: Donnerstag, 27. November 2008 18:26 > > > > > An: 'General Discussion of SQLite Database' > > > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows > Vista 64b > > > > > > > > > > > I am calling now this: > > > > > > > > > > > > [DllImport("sqlite3.dll", CharSet = > CharSet.Unicode)] > > > > > > internal static extern System.Int64 > > > sqlite3_open16(string > > > > > > filename, out IntPtr handle); > > > > > > > > > > > > I now finds an entry point, but i returned to the > > > previous error: > > > > > > An attempt was made to read program in invalid format. > > > > > > > > > > > > But now everything is 64bit. > > > > > > > > > > > > Ti Ny > > > > > > > > > > > > > > > > No offense, but I'm beginning to believe you don't fully > > > grasp what > > > > &g
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
>Are you sure that your sqlite.dll exports its API? I downloaded sources available on the sqlite.org, is there anything special that is required to do to export API? > Like I said in my previous mail, I'd suggest using one of the already > available and well-tested .NET wrappers. Unfortunately that's not possible for objective reasons. Ti Ny > From: [EMAIL PROTECTED] > To: sqlite-users@sqlite.org > Date: Fri, 28 Nov 2008 10:54:10 +0100 > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > Have you set ExactSpelling? EntryPointNotFound doesn't have to do with > CallingConvention. Are you sure that your sqlite.dll exports its API? > > Like I said in my previous mail, I'd suggest using one of the already > available and well-tested .NET wrappers. > > Mike > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > > Gesendet: Freitag, 28. November 2008 09:54 > > An: sqlite-users@sqlite.org > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > It doesn't work even if I set CallingConvention. It fails on > > EntryPointNotFound exception. > > > > Ti Ny > > > > > From: [EMAIL PROTECTED] > > > To: sqlite-users@sqlite.org > > > Date: Thu, 27 Nov 2008 19:57:30 +0100 > > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > The given code is correct. The lower-case string is a C# > > alias for the > > > System.String class. System.Int64 is an opaque 64-bit pointer value. > > > > > > The code so far is correct. What is missing though is the calling > > > convention, which by default is cdecl, but .NET doesn't use > > that one > > > by default for P/Invoke. It uses stdcall/winapi as the > > default calling > > > convention. Change the CallingConvention in the DllImport line. > > > > > > Additionally using CharSet=CharSet.Unicode adds an implicit W as per > > > Win32 calling conventions to the function name. Since the > > > sqlite3_open16 doesn't have that you need to use ExactSpelling to > > > prevent it from adding that W. > > > > > > Instead of rolling your own P/Invoke wrapper I'd suggest > > using one of > > > the available .NET wrappers for SQLite. > > > > > > Mike > > > > > > > -Ursprüngliche Nachricht- > > > > Von: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] Im Auftrag von > > Sherief N. > > > > Farouk > > > > Gesendet: Donnerstag, 27. November 2008 18:26 > > > > An: 'General Discussion of SQLite Database' > > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > > > I am calling now this: > > > > > > > > > > [DllImport("sqlite3.dll", CharSet = CharSet.Unicode)] > > > > > internal static extern System.Int64 > > sqlite3_open16(string > > > > > filename, out IntPtr handle); > > > > > > > > > > I now finds an entry point, but i returned to the > > previous error: > > > > > An attempt was made to read program in invalid format. > > > > > > > > > > But now everything is 64bit. > > > > > > > > > > Ti Ny > > > > > > > > > > > > > No offense, but I'm beginning to believe you don't fully > > grasp what > > > > you're trying to do. First of all, if DW can't find the > > entry point > > > > then it's not there. Second, I don't think the CLR type > > > > corresponding to the return value of > > > > sqlite3_open16 is System.Int64, and I'm not sure what string is > > > > (CLR's string type is String, capital S). How about you > > upload that > > > > DLL of your somewhere, send a link and I wouldn't mind > > checking it > > > > for you. > > > > > > > > - Sherief > > > > > > > > ___ > > > > sqlite-users mailing list > > > > sqlite-users@sqlite.org > > > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > > > > > > > > > ___ > > > sqlite-users mailing list > > > sqlite-users@sqlite.org > > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > > > _ > > Explore the seven wonders of the world > > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US > > &form=QBRE > > ___ > > sqlite-users mailing list > > sqlite-users@sqlite.org > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > > > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
Have you set ExactSpelling? EntryPointNotFound doesn't have to do with CallingConvention. Are you sure that your sqlite.dll exports its API? Like I said in my previous mail, I'd suggest using one of the already available and well-tested .NET wrappers. Mike > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von Ti Ny > Gesendet: Freitag, 28. November 2008 09:54 > An: sqlite-users@sqlite.org > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > It doesn't work even if I set CallingConvention. It fails on > EntryPointNotFound exception. > > Ti Ny > > > From: [EMAIL PROTECTED] > > To: sqlite-users@sqlite.org > > Date: Thu, 27 Nov 2008 19:57:30 +0100 > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > The given code is correct. The lower-case string is a C# > alias for the > > System.String class. System.Int64 is an opaque 64-bit pointer value. > > > > The code so far is correct. What is missing though is the calling > > convention, which by default is cdecl, but .NET doesn't use > that one > > by default for P/Invoke. It uses stdcall/winapi as the > default calling > > convention. Change the CallingConvention in the DllImport line. > > > > Additionally using CharSet=CharSet.Unicode adds an implicit W as per > > Win32 calling conventions to the function name. Since the > > sqlite3_open16 doesn't have that you need to use ExactSpelling to > > prevent it from adding that W. > > > > Instead of rolling your own P/Invoke wrapper I'd suggest > using one of > > the available .NET wrappers for SQLite. > > > > Mike > > > > > -Ursprüngliche Nachricht- > > > Von: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Im Auftrag von > Sherief N. > > > Farouk > > > Gesendet: Donnerstag, 27. November 2008 18:26 > > > An: 'General Discussion of SQLite Database' > > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > > I am calling now this: > > > > > > > > [DllImport("sqlite3.dll", CharSet = CharSet.Unicode)] > > > > internal static extern System.Int64 > sqlite3_open16(string > > > > filename, out IntPtr handle); > > > > > > > > I now finds an entry point, but i returned to the > previous error: > > > > An attempt was made to read program in invalid format. > > > > > > > > But now everything is 64bit. > > > > > > > > Ti Ny > > > > > > > > > > No offense, but I'm beginning to believe you don't fully > grasp what > > > you're trying to do. First of all, if DW can't find the > entry point > > > then it's not there. Second, I don't think the CLR type > > > corresponding to the return value of > > > sqlite3_open16 is System.Int64, and I'm not sure what string is > > > (CLR's string type is String, capital S). How about you > upload that > > > DLL of your somewhere, send a link and I wouldn't mind > checking it > > > for you. > > > > > > - Sherief > > > > > > ___ > > > sqlite-users mailing list > > > sqlite-users@sqlite.org > > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > > > > > > ___ > > sqlite-users mailing list > > sqlite-users@sqlite.org > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > _ > Explore the seven wonders of the world > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US > &form=QBRE > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
It doesn't work even if I set CallingConvention. It fails on EntryPointNotFound exception. Ti Ny > From: [EMAIL PROTECTED] > To: sqlite-users@sqlite.org > Date: Thu, 27 Nov 2008 19:57:30 +0100 > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > The given code is correct. The lower-case string is a C# alias for the > System.String class. System.Int64 is an opaque 64-bit pointer value. > > The code so far is correct. What is missing though is the calling > convention, which by default is cdecl, but .NET doesn't use that one > by default for P/Invoke. It uses stdcall/winapi as the default calling > convention. Change the CallingConvention in the DllImport line. > > Additionally using CharSet=CharSet.Unicode adds an implicit W as per > Win32 calling conventions to the function name. Since the sqlite3_open16 > doesn't have that you need to use ExactSpelling to prevent it from adding > that W. > > Instead of rolling your own P/Invoke wrapper I'd suggest using one of > the available .NET wrappers for SQLite. > > Mike > > > -Ursprüngliche Nachricht- > > Von: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Im Auftrag von > > Sherief N. Farouk > > Gesendet: Donnerstag, 27. November 2008 18:26 > > An: 'General Discussion of SQLite Database' > > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > I am calling now this: > > > > > > [DllImport("sqlite3.dll", CharSet = CharSet.Unicode)] > > > internal static extern System.Int64 sqlite3_open16(string > > > filename, out IntPtr handle); > > > > > > I now finds an entry point, but i returned to the previous error: > > > An attempt was made to read program in invalid format. > > > > > > But now everything is 64bit. > > > > > > Ti Ny > > > > > > > No offense, but I'm beginning to believe you don't fully > > grasp what you're trying to do. First of all, if DW can't > > find the entry point then it's not there. Second, I don't > > think the CLR type corresponding to the return value of > > sqlite3_open16 is System.Int64, and I'm not sure what string > > is (CLR's string type is String, capital S). How about you > > upload that DLL of your somewhere, send a link and I wouldn't > > mind checking it for you. > > > > - Sherief > > > > ___ > > sqlite-users mailing list > > sqlite-users@sqlite.org > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > > > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
> The given code is correct. The lower-case string is a C# alias for the > System.String class. System.Int64 is an opaque 64-bit pointer value. Seems like the grasping deficiencies are on my side :D. > The code so far is correct. What is missing though is the calling > convention, which by default is cdecl, but .NET doesn't use that one > by default for P/Invoke. It uses stdcall/winapi as the default calling > convention. Change the CallingConvention in the DllImport line. > > Additionally using CharSet=CharSet.Unicode adds an implicit W as per > Win32 calling conventions to the function name. Since the > sqlite3_open16 > doesn't have that you need to use ExactSpelling to prevent it from > adding > that W. Off topic: God, that's ugly. > Instead of rolling your own P/Invoke wrapper I'd suggest using one of > the available .NET wrappers for SQLite. Best idea so far! - Sherief ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
The given code is correct. The lower-case string is a C# alias for the System.String class. System.Int64 is an opaque 64-bit pointer value. The code so far is correct. What is missing though is the calling convention, which by default is cdecl, but .NET doesn't use that one by default for P/Invoke. It uses stdcall/winapi as the default calling convention. Change the CallingConvention in the DllImport line. Additionally using CharSet=CharSet.Unicode adds an implicit W as per Win32 calling conventions to the function name. Since the sqlite3_open16 doesn't have that you need to use ExactSpelling to prevent it from adding that W. Instead of rolling your own P/Invoke wrapper I'd suggest using one of the available .NET wrappers for SQLite. Mike > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im Auftrag von > Sherief N. Farouk > Gesendet: Donnerstag, 27. November 2008 18:26 > An: 'General Discussion of SQLite Database' > Betreff: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > I am calling now this: > > > > [DllImport("sqlite3.dll", CharSet = CharSet.Unicode)] > > internal static extern System.Int64 sqlite3_open16(string > > filename, out IntPtr handle); > > > > I now finds an entry point, but i returned to the previous error: > > An attempt was made to read program in invalid format. > > > > But now everything is 64bit. > > > > Ti Ny > > > > No offense, but I'm beginning to believe you don't fully > grasp what you're trying to do. First of all, if DW can't > find the entry point then it's not there. Second, I don't > think the CLR type corresponding to the return value of > sqlite3_open16 is System.Int64, and I'm not sure what string > is (CLR's string type is String, capital S). How about you > upload that DLL of your somewhere, send a link and I wouldn't > mind checking it for you. > > - Sherief > > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
> I am calling now this: > > [DllImport("sqlite3.dll", CharSet = CharSet.Unicode)] > internal static extern System.Int64 sqlite3_open16(string > filename, out IntPtr handle); > > I now finds an entry point, but i returned to the previous error: > An attempt was made to read program in invalid format. > > But now everything is 64bit. > > Ti Ny > No offense, but I'm beginning to believe you don't fully grasp what you're trying to do. First of all, if DW can't find the entry point then it's not there. Second, I don't think the CLR type corresponding to the return value of sqlite3_open16 is System.Int64, and I'm not sure what string is (CLR's string type is String, capital S). How about you upload that DLL of your somewhere, send a link and I wouldn't mind checking it for you. - Sherief ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
I am calling now this: [DllImport("sqlite3.dll", CharSet = CharSet.Unicode)] internal static extern System.Int64 sqlite3_open16(string filename, out IntPtr handle); I now finds an entry point, but i returned to the previous error: An attempt was made to read program in invalid format. But now everything is 64bit. Ti Ny > From: [EMAIL PROTECTED] > To: sqlite-users@sqlite.org > Date: Thu, 27 Nov 2008 16:37:13 +0100 > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > New version of DW fixed that. The entry point is not present. All is built in > 64bit but there seems to ne no entry point, no functions etc. Everything > fails to load. > I compile sqlite3.c > > Ti Ny > > > Date: Wed, 26 Nov 2008 16:54:56 -0500 > > From: [EMAIL PROTECTED] > > To: sqlite-users@sqlite.org > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > On Wed, Nov 26, 2008 at 11:23 AM, Ti Ny <[EMAIL PROTECTED]> wrote: > > > Dependency walker fails to load that DLL. Also it reports mess between > > > dependencies (x86 vs. x64), don't understand why when it > > > has been compiled as target x64. > > > > If it fails to load, where is this "mess" at? > > -- > > Joel Lucsy > > "The dinosaurs became extinct because they didn't have a space > > program." -- Larry Niven > > ___ > > sqlite-users mailing list > > sqlite-users@sqlite.org > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > _ > Explore the seven wonders of the world > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
New version of DW fixed that. The entry point is not present. All is built in 64bit but there seems to ne no entry point, no functions etc. Everything fails to load. I compile sqlite3.c Ti Ny > Date: Wed, 26 Nov 2008 16:54:56 -0500 > From: [EMAIL PROTECTED] > To: sqlite-users@sqlite.org > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > On Wed, Nov 26, 2008 at 11:23 AM, Ti Ny <[EMAIL PROTECTED]> wrote: > > Dependency walker fails to load that DLL. Also it reports mess between > > dependencies (x86 vs. x64), don't understand why when it > > has been compiled as target x64. > > If it fails to load, where is this "mess" at? > -- > Joel Lucsy > "The dinosaurs became extinct because they didn't have a space > program." -- Larry Niven > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
On Wed, Nov 26, 2008 at 11:23 AM, Ti Ny <[EMAIL PROTECTED]> wrote: > Dependency walker fails to load that DLL. Also it reports mess between > dependencies (x86 vs. x64), don't understand why when it > has been compiled as target x64. If it fails to load, where is this "mess" at? -- Joel Lucsy "The dinosaurs became extinct because they didn't have a space program." -- Larry Niven ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
Hello Ti, I build 32 and 64 bit versions in Windows but, don't use SQLite in a DLL. I compile the code into my program using a static library. In my experience, DLL's are really flaky under Vista. Flaky in the sense that you have to be very particular about where they go. Having them in the EXE folder is insufficient. I think the "really there" comment probably hit it on the head. To avoid all that, you could statically link SQLite into place. C Wednesday, November 26, 2008, 11:23:11 AM, you wrote: TN> Dependency walker fails to load that DLL. Also it reports mess TN> between dependencies (x86 vs. x64), don't understand why when it TN> has been compiled as target x64. TN> Ti Ny >> From: [EMAIL PROTECTED] >> To: sqlite-users@sqlite.org >> Date: Wed, 26 Nov 2008 09:57:46 -0500 >> Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b >> >> > >> > It throws an exception: unable to find entry point sqlite3_open16 >> >> Try opening the DLL with Dependency Walker, make sure the entry point *is* >> there? >> >> - Sherief >> >> ___ >> sqlite-users mailing list >> sqlite-users@sqlite.org >> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users TN> _ TN> Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! TN> http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us TN> ___ TN> sqlite-users mailing list TN> sqlite-users@sqlite.org TN> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users -- Best regards, Tegmailto:[EMAIL PROTECTED] ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
Dependency walker fails to load that DLL. Also it reports mess between dependencies (x86 vs. x64), don't understand why when it has been compiled as target x64. Ti Ny > From: [EMAIL PROTECTED] > To: sqlite-users@sqlite.org > Date: Wed, 26 Nov 2008 09:57:46 -0500 > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > It throws an exception: unable to find entry point sqlite3_open16 > > Try opening the DLL with Dependency Walker, make sure the entry point *is* > there? > > - Sherief > > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
> > It throws an exception: unable to find entry point sqlite3_open16 Try opening the DLL with Dependency Walker, make sure the entry point *is* there? - Sherief ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
For more information: I am using Visual Studio 2008 SP1 to compile 64bit SQLite3. Ti Ny > From: [EMAIL PROTECTED] > To: sqlite-users@sqlite.org > Date: Wed, 26 Nov 2008 14:26:03 +0100 > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > I am trying to build 64bit version of SQLite on Windows Vista, but I am > facing some severe troubles with it. > It seems I am unable to get it to work - I have 64bit build and if I try to > invoke some function it fails that > module cannot be found. I assume there are some missing dependencies, however > using dependency walker > it seems all of them are there. Even it shows x86 dependencies, but I assume > WOW64 should handle it. > > Is it even possible to compile 64bit version of SQLite with the current > source files? I do not want to try if > my head is stronger than a wall ;-) Thanks. > > Ti Ny. > > > Date: Wed, 26 Nov 2008 01:04:46 +0100 > > From: [EMAIL PROTECTED] > > To: sqlite-users@sqlite.org > > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > That'd happen if you use the 32bit DLL with 64bit application... F. > > > > On Tue, Nov 25, 2008 at 1:59 PM, Ti Ny <[EMAIL PROTECTED]> wrote: > > > > > > I am getting an exception: An attempt was made to load a program with a > > > incorrect format. (HRESULT: 0x8007000B) when I am trying to use > > > sqlite3_open16 on Windows Vista 64b. On 32b or XP 32bit it works > > > correctly. _ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
I am trying to build 64bit version of SQLite on Windows Vista, but I am facing some severe troubles with it. It seems I am unable to get it to work - I have 64bit build and if I try to invoke some function it fails that module cannot be found. I assume there are some missing dependencies, however using dependency walker it seems all of them are there. Even it shows x86 dependencies, but I assume WOW64 should handle it. Is it even possible to compile 64bit version of SQLite with the current source files? I do not want to try if my head is stronger than a wall ;-) Thanks. Ti Ny. > Date: Wed, 26 Nov 2008 01:04:46 +0100 > From: [EMAIL PROTECTED] > To: sqlite-users@sqlite.org > Subject: Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > That'd happen if you use the 32bit DLL with 64bit application... F. > > On Tue, Nov 25, 2008 at 1:59 PM, Ti Ny <[EMAIL PROTECTED]> wrote: > > > > I am getting an exception: An attempt was made to load a program with a > > incorrect format. (HRESULT: 0x8007000B) when I am trying to use > > sqlite3_open16 on Windows Vista 64b. On 32b or XP 32bit it works correctly. _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
That'd happen if you use the 32bit DLL with 64bit application... F. On Tue, Nov 25, 2008 at 1:59 PM, Ti Ny <[EMAIL PROTECTED]> wrote: > > I am getting an exception: An attempt was made to load a program with a > incorrect format. (HRESULT: 0x8007000B) when I am trying to use > sqlite3_open16 on Windows Vista 64b. On 32b or XP 32bit it works correctly. > > _ > Invite your mail contacts to join your friends list with Windows Live Spaces. > It's easy! > http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
It throws an exception: unable to find entry point sqlite3_open16 Ti Ny > From: [EMAIL PROTECTED] > To: sqlite-users@sqlite.org > Date: Wed, 26 Nov 2008 11:39:49 +0100 > Subject: Re: [sqlite] SPAM: sqlite3_open16 fails on Windows Vista 64b > > > I did the 64bit build of SQLite3, but I am still getting the same error on > 64bit system :( > > Ti Ny > > > From: [EMAIL PROTECTED] > > To: sqlite-users@sqlite.org > > Date: Tue, 25 Nov 2008 10:27:28 -0700 > > Subject: Re: [sqlite] SPAM: sqlite3_open16 fails on Windows Vista 64b > > > > This can happen if you're accessing the precompiled sqlite library from a > > 64-bit application. The binary provided by sqlite.org is 32-bit. A lot of > > .NET managed people get tripped by this, since .NET programs are (by > > default) compiled as "Any CPU" which means on a 64-bit machine, the .NET > > program runs in 64-bit. > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Ti Ny > > Sent: Tuesday, November 25, 2008 6:00 AM > > To: sqlite-users@sqlite.org > > Subject: SPAM: [sqlite] sqlite3_open16 fails on Windows Vista 64b > > > > > > I am getting an exception: An attempt was made to load a program with a > > incorrect format. (HRESULT: 0x8007000B) when I am trying to use > > sqlite3_open16 on Windows Vista 64b. On 32b or XP 32bit it works correctly. > > > > _ > > Invite your mail contacts to join your friends list with Windows Live > > Spaces. It's easy! > > http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&; > > mkt=en-us > > ___ > > sqlite-users mailing list > > sqlite-users@sqlite.org > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > > > > > ___ > > sqlite-users mailing list > > sqlite-users@sqlite.org > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > _ > Discover the new Windows Vista > http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] sqlite3_open16 fails on Windows Vista 64b
Does sqlite3_open fail too? - Sherief ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
[sqlite] sqlite3_open16 fails on Windows Vista 64b
I am getting an exception: An attempt was made to load a program with a incorrect format. (HRESULT: 0x8007000B) when I am trying to use sqlite3_open16 on Windows Vista 64b. On 32b or XP 32bit it works correctly. _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users