Gaming/Animation Tutorials for c++ and Windows Forms! - c++-cli

I'm having trouble finding some gaming/animation tutorial for c++ and windows form.
I've been told (online) by many people to use gamedev.net, which i did, but unfortunately i could not find the information that i need :(
Does anyone know of any good tutorials for either a simple games (like snake or pong) or of simple animation in Windows Forms using C++ ( not C# )? If so, please let me know!
Looking forward to a reply,
Thanks!

You can use Allegro in C++ or mixed C++\CLI.
see here.

Related

Acces backend classes of lotus notes in vb.net

I need to access the backend classes of Lotus Notes from a vb.net Application. Actualy I want to get the COM interface. I could easely do it in c++:
...
NOTESSESSIONPtr itfNotesP;
NOTESDATABASEPtr itfDatabaseP;
...
try
{
hrNotesSession = itfNotesP.CreateInstance(__uuidof(NOTESSESSION));
hrNotesUiWorkspace = ptrUIWP.CreateInstance(__uuidof(NOTESUIWORKSPACE));
}
...
but in vb.net I'm running out of solutions to acheive the samething with lotus.NOTESSESSION and lotus.NOTESUIWORKSPACE from Notes32.tlb
Does someone know what I am missing?
Thanks!
Have you read this? It's a bit old, and there's at least one important thing it doesn't mention, but I think it shows you enough to get started.
The thing it doesn't mention, which might be important for you or not, is that the Domino COM classes are not supported on Win64. (See this IBM technote.) You will find a few questions here on StackOverflow from people who have had difficulties, and there are answers to get you past the specifi issue in that technote. And in fact, most of the classes can be made to work, but a few methods in some of the classes simply do not work. And apart from community help, you're on your own because IBM won't answer questions about stuff that isn't supported.

Writing a shell extension (IContextMenu) in VB.Net?

I'd like to add a group in Windows Explorer's context menu that works like 7Zip's:
I know there's the shortcut of using eg. FastExplorer, but I'd like to avoid depending on a third-party tool (besides, FE happens to be deadware).
Google seems to say that this is done through a COM DLL that implements the IContextMenu interface, but the examples I found were all done in C# or VC++.
Before I investigate further, can VB.Net gurus tell me if this can be done in VB.Net, or only C#/VC++ will do?
Thank you.
Edit : Does someone know of a third-party solution so that this can be done without requiring an upgrade to .Net 4?
Yes: if it is doable in C#, then it is doable in VB.Net.

Can VB.NET be used as a game engine?

I know VB.NET, and I've been planning on creating a simple 2d game engine. I got no problems with creating such engine and running the actual game. However, I've been told that VB.NET might not be the best choice for "working too much with graphics". I'd like to know if that's true. Can VB.NET truly not manage efficiently loads of graphics simultaneously on the screen? If no, what kind of software am I supposed to use for creating this engine?
I have found that people generally view VB.NET as a subpar language, and mostly associate it with Visual Basic 6.0 (or earlier).
In the .NET world, VB.NET is a first class citizen that simply has a verbose syntax. It's particularly because of the verbosity that I would probably choose C#, if not going with C++.
Still, you can use VB.NET to work with whatever drawing libraries that you want, and you can even use it with XNA and Managed DirectX. It can even be linked against unmanaged libraries as long as you are willing to do to the required interop.
As for managing the graphics on the screen efficiently, it really depends on how well you do it, and how much you want done. If someone can do it well in C#, then you can do it well in VB.NET with the exception of unsafe code. It's too general to say either way given the vague "simple 2D game engine" description, but chances are it is more than possible.
These days, managed code is quickly catching up to unmanaged code, and while it's not quite perfect, it is really impressively good.
It's not the language you need to consider as much as the Framework.
Suggest you look at XNA:
Your First Game - XNA Game Studio in 2D (step-by-step tutorial)
Also, DirectX:
DirectX Developer Center
Learn DirectX
VB.NET Already supports XNA including on Windows Phone 7. So if you are looking to develop games and if you language of choice is VB + XNA you are all set to go.
Take a look at the official announcement: http://blogs.msdn.com/b/lisa/archive/2011/03/28/xna-is-coming-to-visual-basic.aspx
Visual Basic's primary use is for Win 32 Apps with a standard GUI. If you are planning on building a game I definitely recommend C++. It has faster execution speed and better libraries for game development. Visual Basic will not deliver as good of performance of C++ would give you. IMO It would be better for you and the user.
I don't know much of the graphics issues in vb but as far as i have heard you can't create games for xbox using vb.net, it only supports PC.
XNA game studio can be used for game development. Although it is supposed for c#, you can find how to use it with vb in here...
http://www.alanphipps.com/VisualBasicdotNET-XNA.html
If you are still relatively new to programming then C++ is more than likely to make you quit early.
Don't aim at C++ until you have at learned C#.
C++ is a great and diverse language but definitely not friendly grounds for anyone who hasn't been programming for a long time. This is ESPECIALLY considering if your first language is one such a VB.
To Answer the Topic?
Yes vb.net can make a game, arcade,FPS,RPG,MMO or what ever you what within your ability to code. if you wanna learn some find playing with open source engines to get the feel helps. so try looking up some and give that a go.
my comment is at the person above's comment,
Visual Basic can do alot, and we find out new stuff all the time.
i seen vb6 game engines work well, graphical and feature wise.
wile visual basic is more down to earth for writing, C++ isnt ik its not, ive tried it.
but VB i can pick up easyr.
my experience ?? 2007 to present day, ive work with vb6 mmo game engine source codes,
Mirage,Elysium,Eclipse,EA,EFF
ive also tried using irrlect engine years back.
for a beginner should learn VB.net or C# .
C++ is to complex.

What is sadscript? Can I use it in vb.net? Why hasn't anyone I have asked heard of it?

The title is my question.
Basically, I have heard people speak of it before, I understand it to have something to do with vb6, and I know it lets the user code for the application, but I am unable to determine if it is a separate library or built into vb, and I cannot find documentation for it anywhere.
Thanks for the help!
Sadscript appears to be a scripting language for a mmorg engine called Eclipse (not the IDE called Eclipse). As far as I can tell, the only connection to Visual Basic is that sadscript has a very similar syntax to VB6, so it will be easy to learn if you know VB (and vice versa).
Introduction
Sadscript is a variant of VB6 used for scripting. It isn't natively part of VB6. I've seen it used as part of VB6, rumors of it's use with python, and heard that it can be used for VB.NET.
Acceptance
It's been used in MMORPG engines like Elysium Diamond, PlayerWorlds, and more. It's most prominent livliness is through the MMORPG engine known as Eclipse. It's said to be an easy scripting language and there are rumors that some colleges teach this scripting language. Because of how VB6 is, scripting alternatives for VB6 are few and far between (Also see VB6 & Lua ).
Obtain
The "SadScript Engine" (for lack of better words) itself is quite difficult to find. There appears to be no central repository, and only remants of links to it's engine. I managed to find a link to the SadScript 3 Engine & tutorial for MirageSource MMORPG engine.
More Resources
Eclipse SadScript Script repositories, tutorials, and discussion
SadScript tutorial blog
(Google for more)

Lightweight, cross-platform input library

I'm trying to write a game with support for Joypads as well as mouse/keyboard. I've tried finding information about that, but it's either outdated or not portable enough.
Does anybody know of any good, lightweight libraries that can abstract Joypad reading? I want to use the 360 controller, but I would like support for more than that.
I'm primarily going to be writing on Windows, but I really don't want to use DirectInput/XInput, in case I ever wish to port my code.
Have you ever tryied OIS (Object Oriented Input System)? An efficient and light weight library.
I am very satisfied with it.
I have never tried with the 360 controller, but it should work fine.
This maybe an older question and is already answered but..
Someone on tigsource made a lightweight cross-platform gamepad library
that you might find useful.
You can view the post on it here.
What about SDL?
Maybe it's not what you mean by lightweight (it has the graphic and audio subsystems too), but it's very portable.
I know this thread is very old and by now you might have gotten what you need, but im answering this just in case someone stumbles on it and needs help as well.
I stumbled upon this library gainput and it seems like it makes alot of sense. You can try it out, if it helps.
Gainput is a lightweight c++ library, that enables you use the same interface for Joypads, macs, pc, linux as well as mobiles, and it is very easy to integrate to your project.
A link to gainput can be found here (http://gainput.johanneskuhlmann.de/)
Have you looked at XNA game framework?
There is also
Allero
http://www.talula.demon.co.uk/allegro/
GarageGames
http://www.garagegames.com/
Try that out