Jump to content

pZy

Member
  • Posts

    11
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

Everything posted by pZy

  1. To convert a std::string to an const char* (which most C-functions need) you have to use the c_str() member function. string s0 = "testfile"; string s1 = "testfile2"; rename(s0.c_str(), s1.c_str()); keep it up.
  2. 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
  3. ****, 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. 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...
  4. Nope.Because main is returns an integer, it´s not optional. ...but VC++ is know for its OWN standards This really makes me laugh...there is NO C++ developer who didn´t do this mistake at least one time gd
  5. 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.
  6. Hm, why not. I haven´t something better to do atm anyway @sixpack Btw. please no more pms in dutch But after reading the pm about 10x i think i knew what you wanted ContextMenuExt.rar
  7. Yeah, THAT make sense. The App will need the Framework to be installed anyway...
  8. Usually strings are stored in a string table to make localization easy. And all this Problems would not exist. ...but why not code hard what can be hardcoded ContextMenuExt.rar
  9. 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.
  10. 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...