webfreak001 / dwinprogramming Goto Github PK
View Code? Open in Web Editor NEWFork because original project doesn't exist anymore
Home Page: https://github.com/AndrejMitrovic/DWinProgramming
Fork because original project doesn't exist anymore
Home Page: https://github.com/AndrejMitrovic/DWinProgramming
Hi @WebFreak001, @AndrejMitrovic,
This project is mentioned by https://wiki.dlang.org/D_for_Win32 but doesn't build for me. I would like to do some changes to the build setup (i.e: use dub
instead of a custom build script) and also some cleanup/update of the implementation and file structure, but I'm not sure what's the license situation and if that's better to do in my own repository or in this one.
I don't know exactly what changes I would like to do as I'm using this as a way to learn D build system and have some fun with Win32 API, but in any case it would stay a translation of Charles Petzold's code to D (and I really don't expect that much change regarding the actual logic and structure).
What do you think?
Hi,
I tried a lot to display a messagebox in D.
module main;
import std.stdio;
import core.sys.windows.windows;
import core.runtime ;
import std.utf ;
//import win32.windef ;
extern (Windows)
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
string amsg = "Hi, I am a message" ;
string att = "MsgBox D" ;
MessageBox(null, amsg.toUTF16z , att.toUTF16z, null) ; //
return 0;
}
Bu this is not working. Please all your messagebox examples are in try catch block and the message is the exception message. But i just want to see how to declare a string and use it in win api functions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.