Re: D / GtkD for SQL Server

2013-11-07 Thread Jacob Carlborg
On 2013-11-06 09:03, John J wrote: Sorry, I meant to say FreeTDS doesn't seem to support 64-bit Windows. Aha, that might be the case. Somehow I missed that you needed to run the application on Windows. FreeTDS is mainly to be able to connect to SQL Server on non-Windows platforms. Can't you

Re: D / GtkD for SQL Server

2013-11-06 Thread John J
On 11/06/2013 02:36 AM, Jacob Carlborg wrote: On 2013-11-06 08:28, John J wrote: Thanks Jacob, I guess I have to compile and distribute a FreeTDS.dll, and it only works for win32 FreeTDS works on Posix platforms. I wrote that code on Mac OS X. We use FreeTDS in production, running servers

Re: D / GtkD for SQL Server

2013-11-05 Thread John J
On 10/31/2013 04:36 PM, Jacob Carlborg wrote: On 2013-10-31 14:47, ilya-stromberg wrote: John, It's interesting if you can connect to the MS SQL. Just use FreeTDS, nothing special about it. See:

Re: D / GtkD for SQL Server

2013-11-05 Thread Jacob Carlborg
On 2013-11-06 08:28, John J wrote: Thanks Jacob, I guess I have to compile and distribute a FreeTDS.dll, and it only works for win32 FreeTDS works on Posix platforms. I wrote that code on Mac OS X. We use FreeTDS in production, running servers on Linux, every day. -- /Jacob Carlborg

Re: D / GtkD for SQL Server

2013-11-05 Thread John J
On 11/06/2013 02:36 AM, Jacob Carlborg wrote: On 2013-11-06 08:28, John J wrote: Thanks Jacob, I guess I have to compile and distribute a FreeTDS.dll, and it only works for win32 FreeTDS works on Posix platforms. I wrote that code on Mac OS X. We use FreeTDS in production, running servers

Re: D / GtkD for SQL Server

2013-10-31 Thread ilya-stromberg
On Sunday, 27 October 2013 at 00:06:35 UTC, John Joyus wrote: On 10/25/2013 04:04 AM, Gary Willoughby wrote: 1). Does D has any support for MSSQL? See here: http://forum.dlang.org/thread/qcxoafwuachwnnwqk...@forum.dlang.org Thanks for the link, but what I meant by MSSQL is Microsoft SQL

Re: D / GtkD for SQL Server

2013-10-31 Thread Jacob Carlborg
On 2013-10-31 14:47, ilya-stromberg wrote: John, It's interesting if you can connect to the MS SQL. Just use FreeTDS, nothing special about it. See: http://forum.dlang.org/thread/l403bf$139g$1...@digitalmars.com#post-l4089g:241723:241:40digitalmars.com -- /Jacob Carlborg

Re: D / GtkD for SQL Server

2013-10-27 Thread Gary Willoughby
On Sunday, 27 October 2013 at 00:06:35 UTC, John Joyus wrote: On 10/25/2013 04:04 AM, Gary Willoughby wrote: 1). Does D has any support for MSSQL? See here: http://forum.dlang.org/thread/qcxoafwuachwnnwqk...@forum.dlang.org Thanks for the link, but what I meant by MSSQL is Microsoft SQL

Re: D / GtkD for SQL Server

2013-10-26 Thread John Joyus
On 10/25/2013 04:04 AM, Gary Willoughby wrote: 1). Does D has any support for MSSQL? See here: http://forum.dlang.org/thread/qcxoafwuachwnnwqk...@forum.dlang.org Thanks for the link, but what I meant by MSSQL is Microsoft SQL Server. Not MySQL.

Re: D / GtkD for SQL Server

2013-10-25 Thread John Joyus
On 10/24/2013 10:28 PM, Adam D. Ruppe wrote: On Tuesday, 22 October 2013 at 06:33:04 UTC, John Joyus wrote: That works! Thanks. cool. If you need anything more in this, let me know (feel free to email me directly too destructiona...@gmail.com ) and i'll see what I can do. That is great!

Re: D / GtkD for SQL Server

2013-10-25 Thread Gary Willoughby
On Sunday, 20 October 2013 at 08:13:35 UTC, John Joyus wrote: I am learning D and itching to create some small tools (basically Windows executables) for our internal use, but any tool I think of creating also needs some support for SQL Server! So my question is: 1). Does D has any support

Re: D / GtkD for SQL Server

2013-10-24 Thread Adam D. Ruppe
On Tuesday, 22 October 2013 at 06:33:04 UTC, John Joyus wrote: That works! Thanks. cool. If you need anything more in this, let me know (feel free to email me directly too destructiona...@gmail.com ) and i'll see what I can do. The 99% of my programs demand a basic GUI. And I personally

Re: D / GtkD for SQL Server

2013-10-22 Thread John Joyus
On 10/21/2013 07:27 PM, Adam D. Ruppe wrote: On Monday, 21 October 2013 at 22:23:16 UTC, John Joyus wrote: 1. When I click the OK button, the message dialog pops-up *after* the main window is closed, though the window.close(); line is after the call to the MessageBox.. that's because the

Re: D / GtkD for SQL Server

2013-10-21 Thread Adam D. Ruppe
On Monday, 21 October 2013 at 05:14:50 UTC, John Joyus wrote: Btw, I had to comment out the lines that contain TextLabel and the .content in the example code as it fails to compile with following errors: I just added that class yesterday and probably forgot to push to github grab new

Re: D / GtkD for SQL Server

2013-10-21 Thread John Joyus
The full example now compiles with those two new files, thanks. When I run the executable, the edit control shows no usable height. It reduced to 0.5 mm, and width goes beyond the window, leaving a scroll bar. Trying to set its Height and Width in the example program had no effect. Btw, I

Re: D / GtkD for SQL Server

2013-10-21 Thread Adam D. Ruppe
On Monday, 21 October 2013 at 19:01:11 UTC, John Joyus wrote: When I run the executable, the edit control shows no usable height. It reduced to 0.5 mm, and width goes beyond the window, leaving a scroll bar. oops, it was not supposed to have a scroll bar at all. Fixed, it was a one line

Re: D / GtkD for SQL Server

2013-10-21 Thread John Joyus
On 10/21/2013 03:29 PM, Adam D. Ruppe wrote: oops, it was not supposed to have a scroll bar at all. Fixed, it was a one line change, line 1823, remove the HSCROLL members. New version is on github too. That works! I've had some trouble with WinXP and background colors on checkboxes and

Re: D / GtkD for SQL Server

2013-10-21 Thread Adam D. Ruppe
On Monday, 21 October 2013 at 22:23:16 UTC, John Joyus wrote: 1. When I click the OK button, the message dialog pops-up *after* the main window is closed, though the window.close(); line is after the call to the MessageBox.. that's because the MessageBox class here is implemented as another

D / GtkD for SQL Server

2013-10-20 Thread John Joyus
I am learning D and itching to create some small tools (basically Windows executables) for our internal use, but any tool I think of creating also needs some support for SQL Server! So my question is: 1). Does D has any support for MSSQL? I need the ability to connect to a SQL Server and run

Re: D / GtkD for SQL Server

2013-10-20 Thread Jacob Carlborg
On 2013-10-20 10:13, John Joyus wrote: I am learning D and itching to create some small tools (basically Windows executables) for our internal use, but any tool I think of creating also needs some support for SQL Server! So my question is: 1). Does D has any support for MSSQL? I need the

Re: D / GtkD for SQL Server

2013-10-20 Thread Jacob Carlborg
On 2013-10-20 11:37, Jacob Carlborg wrote: You just need to fill in the constants at the top. Please let me know if you get the D version working. You need to change the actual SQL select statement as well. -- /Jacob Carlborg

Re: D / GtkD for SQL Server

2013-10-20 Thread Mike Wey
On 10/20/2013 10:13 AM, John Joyus wrote: 2). If I build with GtkD, it generates about 3.5 MB executable. Does this contain everything or do I still have to distribute anything with it to make it work on new Windows machines? Thanks in advance. You'll need to have the Gtk+ runtime installed

Re: D / GtkD for SQL Server

2013-10-20 Thread ilya-stromberg
On Sunday, 20 October 2013 at 08:13:35 UTC, John Joyus wrote: I am learning D and itching to create some small tools (basically Windows executables) for our internal use, but any tool I think of creating also needs some support for SQL Server! So my question is: 1). Does D has any support

Re: D / GtkD for SQL Server

2013-10-20 Thread John Joyus
On 10/20/2013 09:39 AM, Mike Wey wrote: On 10/20/2013 10:13 AM, John Joyus wrote: 2). If I build with GtkD, it generates about 3.5 MB executable. Does this contain everything or do I still have to distribute anything with it to make it work on new Windows machines? Thanks in advance. You'll

Re: D / GtkD for SQL Server

2013-10-20 Thread Jacob Carlborg
On 2013-10-20 19:24, John Joyus wrote: Thank you all for the responses. Regarding the GUI part, all I really need is a form and a bunch of buttons. Can I do that through pure Windows API in D to create a small stand-alone executable that does everything by itself? If that is possible, any

Re: D / GtkD for SQL Server

2013-10-20 Thread Adam D. Ruppe
On Sunday, 20 October 2013 at 17:24:30 UTC, John Joyus wrote: Regarding the GUI part, all I really need is a form and a bunch of buttons. Can I do that through pure Windows API in D to create a small stand-alone executable that does everything by itself? yup. I started a thing to do it, but

Re: D / GtkD for SQL Server

2013-10-20 Thread John Joyus
On 10/20/2013 01:56 PM, Jacob Carlborg wrote: You can use DWT: https://github.com/d-widget-toolkit/dwt For examples, just search for SWT. Thanks. Does it need Java runtime on end user's machine?

Re: D / GtkD for SQL Server

2013-10-20 Thread John Joyus
On 10/20/2013 02:15 PM, Adam D. Ruppe wrote: On Sunday, 20 October 2013 at 17:24:30 UTC, John Joyus wrote: Regarding the GUI part, all I really need is a form and a bunch of buttons. Can I do that through pure Windows API in D to create a small stand-alone executable that does everything by

Re: D / GtkD for SQL Server

2013-10-20 Thread Jacob Carlborg
On 2013-10-21 06:53, John Joyus wrote: Thanks. Does it need Java runtime on end user's machine? No, it's a complete D port. No libraries are necessary except for the system libraries (GTK+ on Linux). -- /Jacob Carlborg