Jump to content

pZy

Member
  • Posts

    11
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

Posts posted by pZy

  1. The MFC classes are shipped with Visual Studio, and they belong to Microsoft.

    So I cannot imagine other companies to ship them with their own IDE.

    Maybe MS sells the MFC itself without VS, but i never heard of that.

    But if you already have VS why caring about an cheater alternative. Most developers still use VS6. I prefer version 6, although I have the .NET 2003 installed :)

    WM_CHEERS :hello:

  2. int main need not return a value in Standard C++
    ****, i looked it up and you are right.

    Although main() must be declared as int it doesnßt make sense for me that its return value is optional.

    VC6 has worse standards support.

    Will always remember things like this:

    for (int i = 0; i < 5; i++)
         cout << i << endl;

    for (int i = 0; i < 10; i++)
         cout << "\t" << i << endl;

    VC++6 - ERROR.

    Hm, would like to try if VC++ 2003 compiles this...

  3. You talk about the winlogon.exe, right?

    This exe is responsible for login and registering Ctrl+Alt+Del, for example.

    It also loads the msgina.dll which manages your login process.

    If you only want to change logon dialog or bitmap, this is what you want. Open the msgina.dll as resource, e.g. with ResHacker, and play around.

    But be **** careful! Don´t f*** the thing up. Better make backups, try it out on VirtualPC or have sth. like ERD Commander next to you :)

    Otherwise you may not be able to login to your windows, yes i know what i am talking about ;).

    But if you really want to change login process, e.g. loggin in with fingerprints or sth. you better make yourself familiar with C++ and search the MSDN für GINA.

    I played around a little bit with gina programming, but it is really a pain, because i couldn´t debug the thing, and always had to reboot, when i did changes...

    so keep it up.

  4. Of course the things you describe are true. In Photoshop if you have a hand-cursoricon it does something else than with the zoomin cursor.

    BUT:

    Your Application (here Photoshop for example) does not ask the system (or whatever) what cursor the mouse has. The cursor is set by the application (Photoshop) when you klick a button. Under the hood the app also sets some other parameters.

    For example:

    You select the zoomin button.

    Application locks your Image.

    Application sets the document to zoomable state.

    Application changes your mousecursor for the coordinates of the document.

    So it does not ask what cursor you have, if you point over the image.

    Hope anyone understood what i wanted to say :)

    Btw. i don´t know, if it is possible to get the current cursor. I think it is, but i would be quite complicated.

  5. Wow, THIS really is code i will remember a long time :)

    There are so many mistakes, i don´t know where to start, so i won´t start ;)

    ...label, goto, void main()...

    Ok, so here comes a working one:

    #include <iostream>
    #include <string>

    using namespace std;

    int main()
    {
      string strInput;
      bool bValidInput = false;

      cout << "Type in yes or no:" << endl;

      while (!bValidInput)
      {
         cin >> strInput;
         
         if ( strInput == "yes" )
         {
            cout << "You typed \"yes\"" << endl;
            bValidInput = true;
         }
         else if( strInput == "no" )
         {
            cout << "You typed \"no\"" << endl;
            bValidInput = true;
         }
         else
         {
            cout << "No correct input" << endl;
         }
      }

      return 0;
    }

    I know, it´s also not the best looking, but it think it´s ok for learning purposes.

    The biggest advantage is, that it uses the "string" class to store and compare strings.

    If you have more explicit questions, just ask.

    so far.

×
×
  • Create New...