Search:
Type: Posts; User: chilibean
Search:
Search took 0.11 seconds.
-
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...
-
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()
{
-
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...
-
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...
-
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.
-
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.
-
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...
-
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;
-
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.
-
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] = ""; ...
-
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...
-
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...
-
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 )
-
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");...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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.
-
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,...
-
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,...
-
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...
-
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
...
-
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...
-
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...
-
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...
-
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>...
-
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++,...
-
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...
-
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...
-
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,
...
-
http://upx.sourceforge.net/
chilibean
-
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). ...
-
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?
...
-
-
DWORD dwNotUsedForAnything;
// Clap On
SystemParametersInfo(SPI_SCREENSAVERRUNNING, TRUE, &dwNotUsedForAnything, 0);
// Clap Off
SystemParametersInfo(SPI_SCREENSAVERRUNNING,...
-
That's the type of code I was thinking of and you beat me to it.;)
-
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;
}
|
Click Here to Expand Forum to Full Width
|