Giter Site home page Giter Site logo

dwinprogramming's Issues

Cleanup and fixes

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?

Please post a simple messagbox example

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.