Click here to Skip to main content
15,899,474 members
Home / Discussions / C#
   

C#

 
QuestionC Pointers in C# Pin
Teuz29-Dec-08 4:19
Teuz29-Dec-08 4:19 
AnswerRe: C Pointers in C# Pin
Steve Hansen29-Dec-08 4:37
Steve Hansen29-Dec-08 4:37 
GeneralRe: C Pointers in C# Pin
Teuz29-Dec-08 4:51
Teuz29-Dec-08 4:51 
GeneralRe: C Pointers in C# Pin
Giorgi Dalakishvili29-Dec-08 5:06
mentorGiorgi Dalakishvili29-Dec-08 5:06 
AnswerRe: C Pointers in C# Pin
Ravadre29-Dec-08 4:53
Ravadre29-Dec-08 4:53 
GeneralRe: C Pointers in C# Pin
Teuz29-Dec-08 5:35
Teuz29-Dec-08 5:35 
GeneralRe: C Pointers in C# Pin
Ravadre29-Dec-08 6:07
Ravadre29-Dec-08 6:07 
GeneralRe: C Pointers in C# Pin
Teuz29-Dec-08 6:46
Teuz29-Dec-08 6:46 
I tryed to sort out the problem so I made this

public partial class Form1 : Form
{
[DllImport("sqlite3.dll", EntryPoint = "sqlite3_libversion",CharSet=CharSet.Ansi)]
private static extern string sqlite3_libversion();
[return: MarshalAs(UnmanagedType.LPStr)]

public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
sqlite3_libversion();
}
}

Kept it simplier as possible.
This should return a string with the version of sqlite. But this always gives the Accession Violation Exception. You can easily try this downloading the sqlite3.dll from the official site.
Thank for you help Smile | :) I really appreciate.
GeneralRe: C Pointers in C# Pin
Ravadre29-Dec-08 6:58
Ravadre29-Dec-08 6:58 
GeneralRe: C Pointers in C# Pin
Teuz29-Dec-08 8:02
Teuz29-Dec-08 8:02 
GeneralRe: C Pointers in C# Pin
Ravadre29-Dec-08 8:10
Ravadre29-Dec-08 8:10 
Question'using' directive/assembly reference Pin
queries36529-Dec-08 3:55
queries36529-Dec-08 3:55 
AnswerRe: 'using' directive/assembly reference Pin
Dave Kreskowiak29-Dec-08 5:14
mveDave Kreskowiak29-Dec-08 5:14 
GeneralRe: 'using' directive/assembly reference Pin
Mark Salsbery29-Dec-08 5:23
Mark Salsbery29-Dec-08 5:23 
AnswerRe: 'using' directive/assembly reference Pin
Mark Salsbery29-Dec-08 5:22
Mark Salsbery29-Dec-08 5:22 
QuestionUSER CONTROL Pin
kirandilip29-Dec-08 3:20
kirandilip29-Dec-08 3:20 
AnswerRe: USER CONTROL Pin
Christian Graus29-Dec-08 3:40
protectorChristian Graus29-Dec-08 3:40 
AnswerRe: USER CONTROL Pin
EliottA29-Dec-08 4:20
EliottA29-Dec-08 4:20 
AnswerRe: USER CONTROL Pin
Member 447035429-Dec-08 8:23
Member 447035429-Dec-08 8:23 
AnswerRe: USER CONTROL Pin
#realJSOP29-Dec-08 9:07
professional#realJSOP29-Dec-08 9:07 
Questionsend Attachment Pin
Abdul Rahman Hamidy29-Dec-08 2:17
Abdul Rahman Hamidy29-Dec-08 2:17 
AnswerRe: send Attachment Pin
Giorgi Dalakishvili29-Dec-08 2:40
mentorGiorgi Dalakishvili29-Dec-08 2:40 
AnswerRe: send Attachment Pin
Brij29-Dec-08 2:41
mentorBrij29-Dec-08 2:41 
GeneralRe: send Attachment Pin
Abdul Rahman Hamidy29-Dec-08 6:18
Abdul Rahman Hamidy29-Dec-08 6:18 
AnswerRe: send Attachment Pin
Scott Dorman29-Dec-08 6:01
professionalScott Dorman29-Dec-08 6:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.