Visual Studio ALT code symbols - visual-studio-2010

I'm looking for a list of ALT code symbols within Visual Studio 2010.
Specifically, I was looking for the PI symbol. I did a little search and found that it should be ALT+227 or ALT+960. I've tried both in VS but the symbols provided are different, hence why I'm asking this question here.
Help greatly appreciated. Thanks in advance!

at least in visual studio 2013, pi is at alt+995. I don't know why it is different than in the rest of windows, and I typed it out of luck while randomly stabbing around for lambda

ALT+227, based on IBM Code Page 437 / MS-DOS, is correct for Greek Small Letter Pi π. See here: Windows Alt Code Symbols
ALT+960, which is the Unicode Decimal Codepoint for Greek Small Letter Pi π is also correct. See here: Unicode Table - Greek Small Letter Pi

Related

Windows MFC controls get randomly wrong characters

This is an interesting one. I'm in the process of going from satellite DLLs to GNU gettext for translation and encountered this interesting problem. I have tried with hard coded string so gettext isn't the cause of it.
Here the strings are trated differently in the same menu. "Välj test" and "Stäng test" both contain the same character (ä), but one is displayed correctly while one isn't. When lookin in debugger both strings look fine, but Spy++ confirms that one is wrong. No idea what's going n here.
I'm using MFC in C++ and use Visual Studio 2010 (it's an old project). It's set to Unicode.

Forth editor/customizable editor

I'm looking for an OS X editor (preferably a dedicated Forth editor, but I doubt it exists) that has/can be customized to change the font color of Forth variables, programs, etc. If not, is there any sort of workaround?
I know it's an old question, but: atom with the forth-language package. See http://atom.io/
Longer answer:
I have tried both emacs and atom on Mac OS X and both are more than adequate for editing Forth. Atom is lighter and easier to learn while maintaining many emacs-ish capabilities (cmd-shift-p in place of meta-x).
I don't have automatic indenting working in atom yet, the syntax package I found needs a little work, but this hasn't been a real problem as yet.
atom also plays well with git.
I'm using the following packages: emacs-plus, language-forth, clipboard-plus, disable-arrow-keys. The key and clipboard are for a more emacs like experience. There are more themes and color schemes than I need available, I'm using the 4-color-dark and minimal-syntax themes.
UltraEdit has a Forth syntax highlight mode. MicroProcessor Engineering have an up to date copy in there downloads page.
Look no further !!
I'm currently programming in FORTH using the 'Visual Studio Code; editor.
Has (installable) syntax-highlighting for many languages, including FORTH.
Have a try:
https://code.visualstudio.com/download
It has even automatic indenting, AND code folding!!
...and let me know if you like it like I do.
Robbert / PA3BKL
I would suggest Gedit and if you change the forth.lang in the app you can change the syntax highlighting

How will I convert characters? Or other solutions

I found out (though my other question) that my IME outputs Hangul Compatibility Jamo (U+3130 – U+318F) instead of regular Hangul Jamo(U+1100 – U+11FF).
So I tried asking a question in superuser about other IMEs, no replies yet.
Should I just convert it myself? What exactly does that entail? Is it too complicated? Any ideas on how to? Any help would be appreciated.
Language: Delphi
OS: WinXP
IME: Korean Input System (IME 2002)
There is no reason you could not write an interesting experimental editor control with its own built in Unicode Compose feature. However, before you did that, you might look for a way to change the configuration of the IME. This seems to be a really interesting corner-case you have to work with. I was already surprised about your other question - that Windows has the ability to handle Raw Input from keyboards.
I found that source code for something that says it is the Korean IME is available for Windows CE. You might learn something by studying it, even though it is for Windows CE rather than XP.
http://msdn.microsoft.com/en-us/library/ee491900.aspx

Mac Excel 2008: Macros?

I know this isn't directly programming related, but at the same time...
Mac Excel 2008 doesn't support VBA or Macros... which I need for a class...
Does anybody know of a solution? I need a way to write simple macros on Mac in Excel-- if it's possible.
Please don't give vague answers if you don't know for sure. This is a serious question. :)
If you really need to write proper macros, you're SOL with 2008 and would be better off finding a copy of 2004 or Office for Windows. If you just need to write code to control the app, Microsoft's suggested replacement for macros in Mac Office is the native Applescript.
If you're into archeology, Mac Excel 2008 supports XLM macros (a.k.a Excel 4.0 macros). You'll have a hard time finding relevant documentation about XLM, as it appears to have gone out of fashion many years ago.
You can create a sheet macro through the "insert sheet" wizard (there's a Excel 4.0 Macro Sheet option).
Then you can download the docs from Microsoft: link.
Here's a simple one:
IsFormula<br>
=ARGUMENT("aCell",8)<br>
=RETURN(GET.CELL(48, aCell))<br>
You can then use the macro in a formula, e.g. =IsFormula(A1)

Windows equivalent of /dev/random

Is there a way to generate random number on Windows by reading from a file or pseudo file or character special file, the way that can be done on Linux by reading from /dev/random? Not asking about various crypto API, but whether there is in Windows something akin to the Linux way.
Yes, it's called Microsoft CryptoAPI.
This link from StingyJack's answer is good: http://en.wikipedia.org/wiki/CryptGenRandom
Microsoft C++ Visual Studio since 2005 offers rand_s() which works on Windows XP and up. It is based on RtlGenRandom (as are CryptoAPI's PRNG functions), whose inner workings are not made public. It seems in XP there were some weaknesses that have since been fixed.
Personally, I use rand_s() as an additional source of randomness to seed a PRNG of my choice.
If you're doing .NET development you can use the RandomNumberGenerator class.

Resources