Reply to comment

martin's picture

Sounds like a lot of trouble

Sounds like a lot of trouble ;)

I just tested your method #2, and the following code worked fine for me:

#include <stdio.h>
#include <wchar.h>

int main(int argc, char** argv)
{
        wchar_t test[32];
        swprintf(test, 32, L"%d", 42);
        wprintf(test);
        return 0;
}

However... as I don't have Windows I cannot test it with the WinAPI. Maybe it's rather a problem with character encoding? [This is just what I guess, however it's unlikely, as UNICODE should take away the need for different encodings...]

Another point: Why don't you just use something like Python+Tkinter? Dunno, but developing directly with the WinAPI seems a bit painful...

Take all of me
The desires that keep burning deep inside
Cast them all away
And help to give me strength to face another day
I am ready
Help me be what I can be

Reply

  • Use [toc list: ol; title: Table of Contents; minlevel: 2; maxlevel: 3; attachments: yes;] to insert a mediawiki style collapsible table of contents. All the arguments are optional.
  • Allowed HTML tags: <del> <a> <em> <strong> <strike> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <span> <pre> <h1> <h2> <h3> <h4> <h5> <h6> <!--tableofcontents--> <sub> <sup> <table> <tr> <td> <th> <blockquote> <br> <p> <object> <embed> <param>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.
  • Pairs of<blockquote> tags will be styled as a block that indicates a quotation.
  • This is an example format which provides a wikimedia-style input format.
  • Use [fn]...[/fn] (or <fn>...</fn>) to insert automatically numbered footnotes.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo], [[foo]].
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.
Copyright (c) RPdev 2008 - 2011