Search:

Type: Posts; User: chilibean

Page 1 of 2 1 2

Search: Search took 0.11 seconds.

  1. Replies
    0
    Views
    610

    Personal Software Process

    Has anyone read (or heard about) "Introduction to the Personal Software Process" by Watts S. Humphrey? I was wondering how worthwhile the book was to read. The book is supposed to help any...
  2. Replies
    3
    Views
    864

    Hi Steve! I decided to be really nice and solve...

    Hi Steve! I decided to be really nice and solve both the keyboard and mouse problems. Here you go:




    #include <iostream.h>
    #include <windows.h>

    int main()
    {
  3. Replies
    8
    Views
    1,123

    Corrected Code

    I commented your two errors below. What you did was used ghWnd_Main before it was initialized by CreateWindow's return value. You also forgot to destroy the timer to avoid an infinite number of...
  4. Hmmm, I thought someone would have answered this...

    Hmmm, I thought someone would have answered this by now. The answer's actually pretty simple:


    SendMessage(GetDlgItem(hWnd, IDC_TEXT), EM_SETLIMITTEXT, (WPARAM) size, 0);

    Simply replace...
  5. Replies
    15
    Views
    1,461

    Well, believe it or not - My school ordered the...

    Well, believe it or not - My school ordered the wrong test for me too! I was in the middle of the test before I realized it though.
  6. Replies
    15
    Views
    1,461

    I took the CompSci AB test for this year. Be...

    I took the CompSci AB test for this year. Be sure you know all about linked lists and binary trees because they continually show up in both the multiple choice and free response.
  7. Replies
    4
    Views
    711

    Sorry, but I seem to be having some trouble with...

    Sorry, but I seem to be having some trouble with creating code that actually works correctly. I have code that works correctly in VB but not in VC++. Here's the VB code that works:



    Private...
  8. Thread: Help?

    by chilibean
    Replies
    6
    Views
    358

    Here is the fixed version of your code. You must...

    Here is the fixed version of your code. You must use single quotes rather than double quotes to indicate characters.



    #include <iostream.h>
    #include <conio.h>

    int main()
    {
    double radius;
  9. Replies
    4
    Views
    711

    Simple. Use GetKeyboardState and...

    Simple. Use GetKeyboardState and SetKeyboardState from the Win32 API to manipulate these two keys. Pass an array with your character states to these two functions.
  10. Replies
    10
    Views
    8,781

    Try this code. I think it does what you want. ...

    Try this code. I think it does what you want. The only problem is that the backspace routine works really slow. Anyone have a better idea than using system("cls")?



    char password[256] = ""; ...
  11. Do you understand how they're stretching the...

    Do you understand how they're stretching the 'pixels' (numbers) in the array? It works just like a simple image manipulator. You have to interpolate for pixels that don't really exist. This will...
  12. I am also going to take the AP CS test on...

    I am also going to take the AP CS test on Thursday and am willing to explain the Enlarge function. But first I need to know what it is that you don't understand. Do you want an actual sourcecode...
  13. Replies
    3
    Views
    1,307

    Try this... #include int...

    Try this...


    #include <windows.h>

    int fwSizeType=0;
    int nWidth=0;
    int nHeight=0;

    LRESULT CALLBACK WndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
  14. Replies
    2
    Views
    386

    Maybe I'm missing something, but this works in...

    Maybe I'm missing something, but this works in C++.


    FILE* file_in;
    char test[256];
    file_in = stdin;
    fgets(test,256,file_in);
    printf("%s",test);
    file_in = fopen("file.txt","r");...
  15. Replies
    3
    Views
    1,307

    I think the best way would be to catch all the...

    I think the best way would be to catch all the WM_SIZE messages that are sent to your main window. Then have a procedure that can make the proper sizing calculations based on the current size of the...
  16. Replies
    1
    Views
    295

    HTML Help Workshop is actually pretty simple to...

    HTML Help Workshop is actually pretty simple to use. Assuming that you have pre-made html files and an index file, just load up the program and goto File->New. Then just create a project file and...
  17. Do you know if the C++ program is made using MFC?...

    Do you know if the C++ program is made using MFC? Given the sourcecode it sounds like a relatively simple task. The only problem is that I have little experience with using MFC...
  18. Thread: Help!!!

    by chilibean
    Replies
    4
    Views
    452

    POINTS p; is defined locally. You use this...

    POINTS p; is defined locally. You use this variable in MoveToEx(GetDC(hWnd),p.x,p.y,NULL);. The variable p must be either static or global for it to retain its value. In other words, you are...
  19. Replies
    1
    Views
    397

    Okay, I did a little research on MSDN and found...

    Okay, I did a little research on MSDN and found that the LoadResouce() and FindResource() function will probably do what you need. I don't have an example of using these functions though. Read what...
  20. Replies
    2
    Views
    422

    Try searching this forum for 'tray icon' or...

    Try searching this forum for 'tray icon' or something similar. I'm pretty sure there is some example code in one of the threads for creating a tray icon with a tooltip.

    Also look at...
  21. Replies
    2
    Views
    386

    Post your project as an attachment, and I will...

    Post your project as an attachment, and I will fix it for you. I'm not sure what the problem is, but I can look to see what is wrong.
  22. Replies
    2
    Views
    1,555

    There may be a better solution, but it would be...

    There may be a better solution, but it would be easy to just place all the arguments into one big array and transfer them to the other function that way. As far as different types are concerned,...
  23. Replies
    1
    Views
    340

    Do you mean using the CreateWindow function or...

    Do you mean using the CreateWindow function or using a dialog?

    For the CreateWindow function, I don't know what the definite answer is - but I know how you can find out. Just create a textbox,...
  24. Thread: using a DLL

    by chilibean
    Replies
    13
    Views
    1,668

    This is a sample from MSDN and may be what you're...

    This is a sample from MSDN and may be what you're looking for...

    Note that the code is not complete and will not run, but you can adapt it into your program. Look at the documentation for...
  25. Replies
    2
    Views
    375

    It's no huge problem, but next time just post a...

    It's no huge problem, but next time just post a reply to the first thread that you started - don't create a new thread for the same problem.

    The error is where the first

    ...
  26. Replies
    16
    Views
    690

    The API is the same in C++ as in VB, except that...

    The API is the same in C++ as in VB, except that the variables look a little different (there's pointers and structs) and you never need to declare the function ahead of time - you just include...
  27. Replies
    2
    Views
    474

    How about this...

    I made a few changes and this should now display the files and folders in C:\. You will need to play around with the code to get the recursion effect that you want however.




    #include...
  28. Replies
    16
    Views
    690

    MFC stands for Microsoft Foundation Classes. ...

    MFC stands for Microsoft Foundation Classes. They are used to make it easier to work with windows, and controls - much like Visual Basic. If you are a beginner with C++ you should probably not use...
  29. Replies
    2
    Views
    336

    I don't know why your code does not work, but if...

    I don't know why your code does not work, but if you change RegisterClassEx to RegisterClass then it works for some reason. Perhaps someone else knows exactly why.





    #include <windows.h>...
  30. Replies
    16
    Views
    690

    Visual C++ is a programming environment and...

    Visual C++ is a programming environment and compiler, but C++ is a language. You can use C++ in other compliers besides Microsoft's (Borland's, Dev-Cpp, etc.). You pay for (or steal) Visual C++,...
  31. Replies
    15
    Views
    759

    Just an idea...

    Okay, this may not be what you're looking for but it's all I could think of. You could make the function that you described that accepts the three arguments and then immediately check to see if the...
  32. Replies
    1
    Views
    425

    OK - this will compile, but I don't think the code works...

    I reformatted your code and fixed the errors, but I don't think it does what you intended to do.

    The problem was that you needed to initialize your variables and one of your loop counters was...
  33. Thread: DrawText

    by chilibean
    Replies
    3
    Views
    374

    Just use CreateFont to make the font. This...

    Just use CreateFont to make the font. This function will return the font which you then select into a DC.

    Example:

    HFONT hFont = CreateFont(30, 15, 0, 0, FW_BOLD, 0, 0, 0, ANSI_CHARSET,
    ...
  34. Replies
    6
    Views
    619

    You could use this...

    http://upx.sourceforge.net/


    chilibean
  35. Replies
    20
    Views
    1,704

    What about Clever Content?

    I have no idea how it works, but Clever Content successfully protects images on web pages. There is absolutely no way to grab the image using normal methods (and I even tried a program using APIs). ...
  36. Replies
    10
    Views
    837

    Refreshing...

    Is there a way to get the views # updated without refreshing the whole page? Like if you loaded just the first 1KB and then aborted and started another load. Maybe this is possible in VB?

    ...
  37. Replies
    10
    Views
    837

    Old Views Race......

    Old Views Race...
  38. Replies
    1
    Views
    637

    So, this will not work?????

    DWORD dwNotUsedForAnything;

    // Clap On
    SystemParametersInfo(SPI_SCREENSAVERRUNNING, TRUE, &dwNotUsedForAnything, 0);

    // Clap Off
    SystemParametersInfo(SPI_SCREENSAVERRUNNING,...
  39. Replies
    4
    Views
    488

    Sorry Wynd!

    That's the type of code I was thinking of and you beat me to it.;)
  40. Replies
    4
    Views
    488

    There better ways to do this but this will...

    There better ways to do this but this will work...

    #include <iostream.h>
    int main()
    {
    char nothing=0;
    cout << "Hello World \n";
    cin >> nothing;
    return 0;
    }
Results 1 to 40 of 68
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width