Skeleton_V@T

Members
  • Content count

    545
  • Joined

  • Last visited

Community Reputation

512 Good

About Skeleton_V@T

  • Rank
    Advanced Member
  1. If you feel lazy, you may malloc bunches of memory, create several windows and threads then leave them while relying on the OS to do the cleaning up for you. It doesn't guarantee everything will be properly cleaned up, especially if your app is messing with other apps though. So, it is a good practice to properly alloc/free things as documented.
  2. You can pack user input data then transfer through local network. There're two instances: You let your game handles outer input. It may bring more complexity to the game if it is originally not intended for network playing. Write an application that accepts these input data then replay them by SendInput () API function. In either cases you'll have to know about transfering data between entities in an network. MSDN has some nice articles on "Networking" topic.
  3. Quote:Original post by Shamino XML would prove to be slow Actually it is not a problem as you'll normally scan the data once when loading, it goes smoothly with other elements. In any cases I believe it is still faster than parsing a script by the same amount of data. Quote:Original post by Shamino and entirely too large amount of work. An XML Editor - which is freely available on the Internet - can solve this problem.
  4. More than one window

    Can you show me the relevant code ?.
  5. Changing size of 2D controls

    Did you reset the viewport/projection matrix when processing WM_SIZE message (assuming you're using plain Win32 window processing code) ?.
  6. Template recursion.

    Write a file encryptor which allows the creation of seft-executables and multiple-file packages ?. It is not the actual algorithm is important, you'll learn how to deal with resources, adding/extracting data from an executable and other little stuff. For C++ features, I couldn't think of one that doesn't implement GUI but also not a text game [rolleyes].
  7. Find path to a Folder (C++)

    You may use shell's SHGetSpecialFolderPath () / SHGetFolderPath () functions. The most important parameter is the folder ID, which you can look up at MSDN. [Edit]: I don't think I typed that slow [smile].
  8. How to run one dialog from another (WinAPI)?

    Omega147 has already answered your question, the fact is DialogBox () invoke a modal dialog that (in general) take over control of the main window and doesn't return until you call EndDialog (). What you want is probably a modeless dialog by CreateDialog (). An example for this is you can only interact with a message box one at a time, which is a modal dialog.
  9. To me it is rather intuitive, although if you're going to store a lot of data, consider these ways: Use XML and build a 'XML Editor' - Fast and easy. Use scripting languages (Lua is a good candidate), you'll probably need it later anyway. Use a database - a bit overkill in this moment I think.
  10. OpenGL Drawing Part of a Bitmap Image

    Is there any reason you want to manually draw them that way ?. Also note that glTexSubImage2D () returns a pointer to the internal texture data, you can read individual pixels then draw them to the screen at will.
  11. OpenGL Drawing Part of a Bitmap Image

    You may try these two methods: Set the appropriate texture coordinates when drawing. Render to a new texture using glTexSubImage2D () then draw the object using that new texture, this method is generally not as elegant as the #1, but suitable for adding effects.
  12. Why doesn't this work? (templates)

    I think I saw the a.template foo<42> () problem at C++ Standard Library Active Issues List but haven't crushed one before, your code compiles fine on VS 2003.
  13. switch(stringA == stringB){ case 1: cout<<"They are the same" } In case you really want to use switch without a temporary variable, but that switch doesn't make sense anyway.
  14. what is considered AI?

    Quote:Original post by Sneftel Quote:Original post by Skeleton_V@T But do you really think that goal has little places in AI development ?Nope. When did I say that? Quote:There are more attainable and useful things to be done, many of which have practically nothing to do with such an "ultimate goal". I probably have misinterpreted that line. We can discuss all day about this but none of this make sense until one of us propose a solution - a life time project really.
  15. what is considered AI?

    Quote:one of the primary usefulnesses of AI is that algorithms can be really good at doing things that humans are really bad at. Fair enough, I don't deny their effectiveness either. But do you really think that goal has little places in AI development ?. Questions have been answered, algorithms have been developed by human only. Wouldn't it even better/be the right time to let computers raise and solve them, or support us discover things which aren't accounted ?. People can not be duplicated, but computers can be. Time, money and effort have been put into imitating parts of human intelligent, some have evolved fairly good indeed. Don't they really need these advanced/complex/imperfect algorithms, however ?, or just something really simple that we couldn't find out ?. I'd like to note that man in general (not to mention disability or unsuitable environments) can be taught to do everything that others can. Why do we have to transform every single algorithms to computers, instead of building a real learning algorithms ?. We could't find it yet, I think. Sorry to be (if any) off topic.