Posts Tagged ‘C’
In addition to the game, I read “Microsoft Visual C# 2008 Express Edition: Build a Program Now!“, and made this program (see above).
This book is for beginners, and I am a beginner on C#.
It is a good book. I recommend this book for anyone who wants to start C#. Not a lot of theories but lots of code. Quite fun to program. I have Visual Studio, but it was made for the Express edition to compile the example.
This is the final chapter “Weather Tracker”, and it can retrieve weather from MSN. It feels a bit buggy but it works!
I could not display the splash screen in the beginning. I read many times if I missed something, but did not. So I looked at included source code. And “Ha ha!”. It lacked something, of course.
splashScreen.Show();
Oh, yes! This is very important! You should set Main.cs design properties “ShowInTaskbar” – “False”.
Some “namespaces” also have to add yourself. In the last chapter you will suddenly pop up to higher ground – so I felt.
I did a little extra with that program.
If you have the book, and you want users to be able to use pop-up menu from the Main form, just change its properties “ContextMenuStrip” – “None” to “cmsNotify”.
Good luck!
I wanted to make a small game with C# because I got a book, and was looking for a program that could convert the font to BMP or something like that.
I found both shareware and freeware on the Internet, and I was not happy with them. Especially shareware. I did not want to pay for just that. I thought almost do it myself, but I happened to find a good one. Actually on Microsoft’s website. Even better, it’s free. Moreover, with source code in C#. Source is slightly older and you have to convert them but it went well for me.
The text below is from the included HTML file with the source code.
This utility converts Windows TrueType fonts into .bmp files that can be imported using the XNA Framework Content Pipeline, and converted into SpriteFont objects by BitmapFontProcessor.
OverviewWhen you add a new font description to an XNA Framework project, this creates an XML description file describing what font you want to use. The Content Pipeline reads this description, renders out the appropriate characters using the Windows Font API, and converts them into a format that can be efficiently rendered using the SpriteFont class.
You may find “ttf2bmp.exe” on the web, but I would say that it is only the source code. Anyway what I found on Microsoft’s website.
Sorry I forgot the address. Go to the http://www.microsoft.com/express/ and look for ttf2bmp.exe.
These pictures are from Windows 7. Look at “System Tray”.
I must say that it works “MyScreenCapture” in Windows 7 that you see.
Finally!
In short, a new version of MEMO has been released today (It was longer?).
Read the rest of this entry »
Memo is an advanced plain text editor for common programming languages. I made this program, because I want to modify some code in Delphi, Cpp or C (can be anything else). Using a program like CppBuilder is OK, but those programs are very heavy and not handy – of course it is working so slow. I do not want to launch a big program for modifying some part of the source code. I wanted a simple – and handy program for viewing, checking and modifying some codes. And now, you can compile your source file with MEMO.
Features
With Memo, the users are able to:
- load and modify common programing code
- syntax highlighting for common programming languages such as Pascal, Cpp, PHP, Perl, Python
- use spell checker
- pick up C++ templates (C++Builder like templates) and Object Pascal templates (Delphi like templates) – Press Ctrl + J to get these stuff
- Cut/Copy/Paste operations
- drag and drop
- unlimitted Undo / Redo (depends on your computer memory)
- convert characters (lowercase to uppercase or uppercase to lowercase)
- save selected block as a file
- insert a plain file into the chosen point
- select block (colum mode)
- read and save PC, Unix and Mac file formats (default is PC format)
- easy access prompt
- compile and see compiler output
and several more..





