How to use sqlite with Borland C++ Builder - sqlite

I have sqlite3.dll but I'm assuming it's far more complex than simply including that file in a project and then using its functions. Even if it was I have literally no experience using pre-built DLLs with C++ Builder applications.
So my question is, How would I go about using sqlite in a Borland c++ builder application? As simple an explanation or step-by-step guide as possible is preferable as my ability to do anything beyond creating apps with C++ Builder is severely limited.
Failing that, is anyone aware of a web article that answers the same question? I'm aware that sqlite3 has its own documentation section but I found it hard to follow and some vital links are broken.
Failing that... Is there a better way to create small-scale easy to write for a beginner apps that make use of a sql database?
Just to be clear - I don't want to make use of a sql server. I want to write something that at its minimum is an executable file, a database file, and a library file in the same directory. In other words something I can distribute easily.
edit: I'm using Borland C++ builder 2009.

Did you try sqlite amalgamation? Basically it's just one source file to include in your project. If you compile through, you can use it.
See http://www.sqlite.org/download.html.

Related

How to implement java intellisense for monaco editor

We are doing online code editor using monaco editor.
One of the requirement is to provide intellisense, or code auto-complete for java/python language. I searched so many resources, and can not find any useful resource on introduction how to make auto-complete working. some said using language server, but it is really difficult to make it work.
May I ask what is the best way to make auto-complete working for java language? Are there any good material that I can refer? Or can we just use some json files to make auto-complete work as well?
I read LSP4J protocol and I understand the philosophy and solution for language server, but now, my question is how to get data file. In another word, how to create CompleteItem objects and return?
Some resource said we need to build java language AST or Source processor(string processor)? Are there any java library I can use directly?
I don't want to use eclipse here, we need to provide our own service.
Thanks
You can use the Language Server Protocol, as described here for python:
https://stackoverflow.com/a/71349842/10985072
For Java, you can use georgewfraser's java-language-server for example.

Getting started Alfresco development

I want to develop Document Manager application based on Alfresco. I am going to change there many things: user interface, language, may be some functions... But I don't know how to start, where I can get Alfresco source code, how can I rewrite codes with netBeans and how can I test my changes. This is my first serious project so I need any help. Where I can get Started ?!
A very popular way to get started is to work through my tutorials.
You don't need the source code, although it is available and helpful when you are troubleshooting or learning how something works. Instead of forking Alfresco you will write extensions that customize the platform. If you find yourself needing to compile Alfresco's source code, most likely you are doing something wrong.

Will using dblinq to SQLite in a Windows Store app pass store validation?

I've been trying to figure out how to get a decent LINQ to something working for ORM database access in a Windows Store app.
All I've found is SQLite and the sqlite-net NuGet package. The latter sucks a bit, as I don't get any .dbml like structure which resolves relationships and provides navigation properties for easy querying (no manual joins needed then).
I was wondering:
Does dblinq in comnbination with SQLite offer this?
Will using this pass Windows Store validation?
Thank you !
Update: Some links I used in my research:
The famous Tim Heuer post on SQLite and Windows 8: http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx
DBlinq: http://code.google.com/p/dblinq2007/
sqlite-net: http://code.google.com/p/sqlite-net/
Interesting discussion stating ADO.NET is not possible: http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/e9cdd75d-03e4-4577-988e-4c02a52e3f50
I'm not familiar with dblinq but by looking at the sqlite tests in the project, it seems the library is offering what you're looking for, i.e. navigation properties for relationships between different tables.
Since dblinq is a .NET library, using it shouldn't make the store validation fail. There is another problem though: you can't use such a .NET library in a Windows Store application, only Windows Store class libraries and portable class libraries are allowed. Since the source for the library is available, you can try compiling it as a Windows Store class library, but I'm afraid there are going to be some classes missing that dblinq is depending on which might make it difficult to port.

Integration of Python code with existing ASP.NET, C# Application

I am planning to integrate open source ERP with my application which I‘ve been developing in asp.net, c#. I am planning to integrate one module like Purchase Module from Open ERP .The source code for the module has been downloaded which is in Python language, the related DB table structure is also available.
Please suggest me which will be the easy way of integrating open source ERP module source code which is in Python language with my present application which is in asp.net, c#.
Thanks
In honesty, this isn't going to be clearcut, as you're not just going to be able to plump a Python website alongside an ASP.Net website and have them inter-operate without a bit of effort.
One possible line of research is that you can run Open ERP using IronPython, which is a version of Python that uses .Net instead of a C Runtime. If it's written well, you may be able to then use the objects in OpenERP from your C# code to access the data saved.
What might be more simple, is to have a look around for an open .Net project that provides the functionality you're looking for...
Integrating OpenERP with .Net isn't something that can be solved in a Stack Overflow question, it's something I'd tell my boss I'd want a couple of days to research to see if it's even viable.

Where can I find a clean API for Visual Basic development?

I am completely new to ASP.NET programming, and was asked to work on a small project involving ASP.NET, VB (which I am new to as well) and Microsoft SQL Server 2005.
Being used to php/java I was hoping to find some kind of similar API to php.net and the javadoc. It would be very useful to have as I would prefer to work with a text editor, instead of using DreamWeaver or Visual Web Developer.
In the project I basically only need to use ASP.NET to read from a SQL 2005 database and write to JSON files. Could anyone please give me some pointers on where to find a clean and decent API to work with? I would also appreciate any input and tips I could get to get started working on this.
I would prefer to work with a text editor, instead of using DreamWeaver or Visual Web Developer.
Imo this is a mistake in .Net. The platform was built with the IDE in mind. You really will be able to get a lot more done, and do it better, if you let yourself learn to use Visual Studio.
That said, the place to look for .Net documentation is, of course, the MSDN Library. Maybe start on this page:
http://msdn.microsoft.com/en-us/library/w0x726c2.aspx
only need to use ASP.NET to read from a SQL 2005 database and write to JSON files
You might want to take a look at ASP.NET MVC.
You controllers can return a JsonReasult which will automatically result in JSON being sent. No need to define any markup.
"Could anyone please give me some
pointers on where to find a clean and
decent API to work with?"
If you want to develop a VB.NET application, you have to use the VB.NET programming language; there are no other APIs available.
Where does javadoc fit into this? That's just markup you apply to your source code to create documentation. .NET has its own system which works in the same way but is built on XML.
As Joel says, Visual Studio has everything you need. It features a visual editor but also gives you access to all the source code.
you will need to have the IDE to develop ASP.Net application. It will be much easier using it. You can find docs and articles on developing on ASP.Net in this site. its a nice one.
https://web.archive.org/web/20211027112438/https://aspnet.4guysfromrolla.com/default.aspx#Tools2
https://web.archive.org/web/20210513213529/http://aspnet.4guysfromrolla.com/articles/042705-1.aspx
https://web.archive.org/web/20210802161558/https://aspnet.4guysfromrolla.com/articles/110905-1.aspx
work on a small project involving ASP.NET, VB (which I am new to as well) and Microsoft SQL Server 2005
It might not be VB, it might be VB.Net?

Resources