Re: DMD + Dynamic Library.

2017-03-15 Thread Cassio Butrico via Digitalmars-d-learn
On Wednesday, 15 March 2017 at 07:03:19 UTC, Damien Gibson wrote: If it helps to know i also get in the other little window that tells me the activate compiler commands and stuff that the symbols for the functions i called undefined while the other side just said library reference not found.

Acruvex dll in D

2017-03-14 Thread Cassio Butrico via Digitalmars-d-learn
I have this activex dll in vb6 and would like to be able to use it in D CClasexp.cls Public Function Add (X As Integer, and As Integer) Add = (X + y) End Function How do i instantiate activex dll in D?

Re: DMD + Dynamic Library.

2017-03-10 Thread Cassio Butrico via Digitalmars-d-learn
On Wednesday, 8 March 2017 at 18:21:35 UTC, Damien Gibson wrote: On Wednesday, 8 March 2017 at 06:28:47 UTC, Jerry wrote: You have to use "export" for any symbol to be visible from a dll. On Windows by default nothing is exported. Would "export" and "export extern(D):" not be the same? Im con

Re: winsamp.d dont compiler.

2016-07-31 Thread Cassio Butrico via Digitalmars-d-learn
On Monday, 1 August 2016 at 00:27:27 UTC, Sean Campbell wrote: On Sunday, 31 July 2016 at 23:36:54 UTC, Cassio Butrico wrote: [...] There was changes made to core.sys.windows so it defaults to unicode. Try dmd winsamp gdi32.lib winsamp.def -version=ANSI or change all of the xxxA functions to

winsamp.d dont compiler.

2016-07-31 Thread Cassio Butrico via Digitalmars-d-learn
in C:\d\dmd2\samples\d winsamp.d dont compiler. dmd winsamp gdi32.lib winsamp.def winsamp.d(53): Error: function core.sys.windows.winuser.LoadIconA (void*, const(char)*) is not callable using argument types (typeof(null), wchar*) winsamp.d(54): Error: function core.sys.windows.winuser.LoadCur

Re: Json

2015-06-11 Thread Cassio Butrico via Digitalmars-d-learn
On Friday, 12 June 2015 at 00:56:45 UTC, Ali Çehreli wrote: On 06/11/2015 04:58 PM, Cassio Butrico wrote: What does the .json file and how to use it? There is also the .json file that is produced by dmd's -X command line switch: dmd -X foo.d That outputs the members of the source code

Re: Json

2015-06-11 Thread Cassio Butrico via Digitalmars-d-learn
Thank you for answering me so fast , where do I get the DUB for windows ?

Json

2015-06-11 Thread Cassio Butrico via Digitalmars-d-learn
What does the .json file and how to use it?

Re: mouse pointer

2015-06-06 Thread Cassio Butrico via Digitalmars-d-learn
On Saturday, 6 June 2015 at 09:35:20 UTC, Kagamin wrote: On Saturday, 6 June 2015 at 02:45:55 UTC, Cassio Butrico wrote: in a console application can get the mouse position read if there was click etc .. but do not know if I can change the mouse pointer . Thanks for answering. You mean you w

Re: mouse pointer

2015-06-05 Thread Cassio Butrico via Digitalmars-d-learn
import std.stdio; import core.sys.windows.windows; int main(string[] args) { HANDLE hIn; HANDLE hOut; auto MouseWhere = COORD (18, 0); auto DClickWhere = COORD (18, 1); auto clickwher = COORD (18, 2); bool Continue = TRUE; DWORD EventCount; int LoopCoun

Re: mouse pointer

2015-06-05 Thread Cassio Butrico via Digitalmars-d-learn
On Saturday, 6 June 2015 at 02:04:44 UTC, Adam D. Ruppe wrote: On Saturday, 6 June 2015 at 00:00:07 UTC, Cassio Butrico wrote: I have tried many from the internet but that are not working well. Link to one.. I'm not sure what you mean and seeing one of the possible solutions will help. in a

mouse pointer

2015-06-05 Thread Cassio Butrico via Digitalmars-d-learn
can anyone tell me that how to change mouse pointer in D console. please tell me the code. I have tried many from the internet but that are not working well.

Re: Writing to two files at once

2015-05-21 Thread Cassio Butrico via Digitalmars-d-learn
On Thursday, 21 May 2015 at 21:16:59 UTC, wobbles wrote: On Thursday, 21 May 2015 at 21:00:15 UTC, Cassio Butrico wrote: If I understand right you want to redirect the output to a file by a flag , another file type , video printer is it? I think by video printer you mean the console? If so, ye

Re: Writing to two files at once

2015-05-21 Thread Cassio Butrico via Digitalmars-d-learn
If I understand right you want to redirect the output to a file by a flag , another file type , video printer is it?

Re: SysTime object from unixtime

2015-05-12 Thread Cassio Butrico via Digitalmars-d-learn
see import std.stdio; import std.datetime; import std.process; void main() { auto ct = Clock.currTime; write("\n\n\tData: ",ct.day," / ",ct.month," / ",ct.year,".\n"); auto tv = Clock.currTime; write("\tHour: ", tv.hour,":", tv.minute

Re: Binding to C

2015-05-12 Thread Cassio Butrico via Digitalmars-d-learn
On Tuesday, 12 May 2015 at 03:20:34 UTC, TJB wrote: I'm sure this question has been asked a thousand times. I've even asked similar questions in the past (I've been away for quite a while). But all of the tutorials that I have found assume quite a lot and leave a lot to be inferred. Is there a

Re: setjmp / longjmp

2015-04-26 Thread Cassio Butrico via Digitalmars-d-learn
I'm just building a small interpreter with a script and wanted to handle errors diverting the flow and returning . I am grateful for having responded my question , thank you.

Re: setjmp / longjmp

2015-04-26 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 26 April 2015 at 05:56:46 UTC, ketmar wrote: On Sat, 25 Apr 2015 23:25:13 +, Cassio Butrico wrote: Hello everyone , first congratulations for the wonderful forum , I wish someone could help me , I am writing a small basic interpreter in D and I am with some difficulties. estou

setjmp / longjmp

2015-04-25 Thread Cassio Butrico via Digitalmars-d-learn
Hello everyone , first congratulations for the wonderful forum , I wish someone could help me , I am writing a small basic interpreter in D and I am with some difficulties. estoutentando manupular the setjmp / longjmp buffers , but the error , I use windows 7 and the dmd 2067 , will be whose

Re: How to output ascii character using terminal.d

2015-04-24 Thread Cassio Butrico via Digitalmars-d-learn
On Friday, 24 April 2015 at 22:21:16 UTC, Adam D. Ruppe wrote: Also try cast(dchar) instead of cast(char), that might do what you need. a look at this https://github.com/cassio2014/DIC

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Monday, 22 September 2014 at 00:12:11 UTC, Cassio Butrico wrote: On Sunday, 21 September 2014 at 23:53:34 UTC, ketmar via Digitalmars-d-learn wrote: On Sun, 21 Sep 2014 23:46:05 + Cassio Butrico via Digitalmars-d-learn wrote: The problem is how to convert COFF r.res in r.res OMF

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 21 September 2014 at 23:53:34 UTC, ketmar via Digitalmars-d-learn wrote: On Sun, 21 Sep 2014 23:46:05 + Cassio Butrico via Digitalmars-d-learn wrote: The problem is how to convert COFF r.res in r.res OMF. resulting '.res' is not COFF, it's "windows resource

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 21 September 2014 at 22:07:47 UTC, Cassio Butrico wrote: On Sunday, 21 September 2014 at 21:41:41 UTC, ketmar via Digitalmars-d-learn wrote: On Sun, 21 Sep 2014 20:13:41 + Cassio Butrico via Digitalmars-d-learn wrote: how to compile in mingw-w64 resource compiler? it tooks the

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 21 September 2014 at 21:41:41 UTC, ketmar via Digitalmars-d-learn wrote: On Sun, 21 Sep 2014 20:13:41 + Cassio Butrico via Digitalmars-d-learn wrote: how to compile in mingw-w64 resource compiler? it tooks the standard text .rc files and produces .res of COFF. smth like

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 21 September 2014 at 19:45:58 UTC, Kagamin wrote: MinGW resource compiler can compile to both res and coff. For ms AFAIK (didn't use) the compiled resource should be additionally converted to coff. how to compile in mingw-w64 resource compiler? never used mingw :( instalai the minw6

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 21 September 2014 at 10:56:38 UTC, Kagamin wrote: Can depend on how you compile resources. true, but I do not know what should I do to compile the resource so that it is accepted.

Re: how to create and compile reesources for dmd 64

2014-09-20 Thread Cassio Butrico via Digitalmars-d-learn
On Saturday, 20 September 2014 at 20:33:36 UTC, Cassio Butrico wrote: On Saturday, 20 September 2014 at 15:24:23 UTC, K.K. wrote: On Friday, 19 September 2014 at 22:20:59 UTC, Cassio Butrico wrote: Hello everyone, When I create and compile resouces to 32 works perfect, but when I try to compil

Re: how to create and compile reesources for dmd 64

2014-09-20 Thread Cassio Butrico via Digitalmars-d-learn
On Saturday, 20 September 2014 at 15:24:23 UTC, K.K. wrote: On Friday, 19 September 2014 at 22:20:59 UTC, Cassio Butrico wrote: Hello everyone, When I create and compile resouces to 32 works perfect, but when I try to compilat of 64 error LNK1136: invalid or corrupt file. I do not know if it h

how to create and compile reesources for dmd 64

2014-09-19 Thread Cassio Butrico via Digitalmars-d-learn
Hello everyone, When I create and compile resouces to 32 works perfect, but when I try to compilat of 64 error LNK1136: invalid or corrupt file. I do not know if it has to do with comverter COFF to OMF. can someone give me a light? Thank you for your attention.

Re: how to transform decial point "3.15" to "3,15" comma?

2014-09-15 Thread Cassio Butrico via Digitalmars-d-learn
On Monday, 15 September 2014 at 23:24:13 UTC, AsmMan wrote: On Monday, 15 September 2014 at 23:17:51 UTC, AsmMan wrote: On Monday, 15 September 2014 at 22:45:50 UTC, Cassio Butrico wrote: how to transform decial point "3.15" to "3,15" comma? Hello everyone, I am making a registry of real amoun

Re: how to transform decial point "3.15" to "3,15" comma?

2014-09-15 Thread Cassio Butrico via Digitalmars-d-learn
how to transform decial point "3.15" to "3,15" comma? Hello everyone, I am making a registry of real amounts, and need trasformar fractional numbers, so print correctly. there is some routine that do this?

how to transform decial point "3.15" to "3,15" comma?

2014-09-15 Thread Cassio Butrico via Digitalmars-d-learn
how to transform decial point "3.15" to "3,15" comma? Hello everyone, I am making a registry of real amounts, and need trasformar fractional numbers, so print coretamente. there is some routine that do this?

Re: Building a string from n chars

2014-09-03 Thread Cassio Butrico via Digitalmars-d-learn
On Wednesday, 3 September 2014 at 20:46:40 UTC, monarch_dodra wrote: On Wednesday, 3 September 2014 at 19:43:26 UTC, Nordlöw wrote: Is there a simpler way to way to s ~= repeat('*', n).array.to!string; if s has to be of type string? s ~= repeat('*', n).array(); Should be enough. Why the "to

Re: I can ask questions about dmd on windows here in this forum?

2014-09-02 Thread Cassio Butrico via Digitalmars-d-learn
On Tuesday, 2 September 2014 at 20:12:12 UTC, Cassio Butrico wrote: On Tuesday, 2 September 2014 at 16:49:15 UTC, Kagamin wrote: On Sunday, 31 August 2014 at 08:37:40 UTC, Jonathan M Davis via Digitalmars-d-learn wrote: D program should just use string unless it needs random-access, in which ca

Re: I can ask questions about dmd on windows here in this forum?

2014-09-02 Thread Cassio Butrico via Digitalmars-d-learn
On Tuesday, 2 September 2014 at 16:49:15 UTC, Kagamin wrote: On Sunday, 31 August 2014 at 08:37:40 UTC, Jonathan M Davis via Digitalmars-d-learn wrote: D program should just use string unless it needs random-access, in which case, it should use dstring. Except that dstring is not fool-proof e

Re: I can ask questions about dmd on windows here in this forum?

2014-08-30 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 31 August 2014 at 06:08:46 UTC, Ali Çehreli wrote: On 08/30/2014 10:37 PM, Cassio Butrico wrote: I was having trouble setting on my terminal in windows, I'm still trying to solve. In addition to what Vladimir Panteleev said, you should also select a Unicode font for your terminal

Re: I can ask questions about dmd on windows here in this forum?

2014-08-30 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 31 August 2014 at 05:27:15 UTC, Ali Çehreli wrote: On 08/30/2014 08:37 PM, Cassio Butrico wrote: > My question is about wstring and dstring, > which and the best way to input data, converting and which should I use Unless there is a specific reason not to, use 'string'. When you rea

Re: tried to use wstring in my terminal and see what happened.

2014-08-30 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 31 August 2014 at 03:18:57 UTC, Vladimir Panteleev wrote: On Friday, 29 August 2014 at 22:01:58 UTC, Cassio Butrico wrote: Anyone help me... I am using the version for the windows dmd v 2.066 to last I believe. tried to use wstring in my terminal and see what happened. name = c

Re: I can ask questions about dmd on windows here in this forum?

2014-08-30 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 31 August 2014 at 03:20:00 UTC, Vladimir Panteleev wrote: On Sunday, 31 August 2014 at 03:16:38 UTC, Cassio Butrico wrote: I'm new to this language, and I wonder if I will have some support simple questions. Thank you for your attention. Yes. My question is about wstring and dstr

I can ask questions about dmd on windows here in this forum?

2014-08-30 Thread Cassio Butrico via Digitalmars-d-learn
I'm new to this language, and I wonder if I will have some support simple questions. Thank you for your attention.

tried to use wstring in my terminal and see what happened.

2014-08-29 Thread Cassio Butrico via Digitalmars-d-learn
Anyone help me... I am using the version for the windows dmd v 2.066 to last I believe. tried to use wstring in my terminal and see what happened. wstring name; write("wstring - write a name: "); //readf("%s\n", &name); name = cast(wstring)chomp(readln()); //name = to!wstr

Re: Building library

2014-08-28 Thread Cassio Butrico via Digitalmars-d-learn
On Thursday, 28 August 2014 at 19:29:40 UTC, papaboo wrote: Hey I've just started getting into D and so far I'm just messing around with it in a small math library. However I've run into an issue while trying to build a library and linking it with my main file. My current file and module layout