Forum: C++
Feb 4th, 2008, 4:47 PM
|
|
Replies: 2
Views: 238
Cameras -
Sup guys,
How would you control a web cam?
Thanks.
|
Forum: C++
Feb 4th, 2008, 4:36 PM
|
|
Replies: 7
Views: 207
|
Forum: C++
Feb 4th, 2008, 4:10 PM
|
|
Replies: 7
Views: 207
Re: Font -
Oh lol :) You mis-understood, what I was asking was "How do I set a font for a dialog box? And not use a default system font?".
Thanks.
|
Forum: C++
Feb 4th, 2008, 3:23 PM
|
|
Replies: 7
Views: 207
Re: Font -
I don't understand, please elaborate.
Thanks.
|
Forum: C++
Feb 4th, 2008, 2:17 PM
|
|
Replies: 7
Views: 207
Font -
Sup guys,
How would I forcefully set a font size in my program and not allow to change(so default font has no effect)?
Thanks.
|
Forum: C++
Feb 2nd, 2008, 8:52 AM
|
|
Replies: 26
Views: 780
Re: Timers and hooks -
Actually I forgot to mension the follwoing -
I noticed something wierd in my program... The timer does not destroy the hook! BUT, if I do not select a window before 5 seconds are up(which is how...
|
Forum: C++
Feb 2nd, 2008, 8:40 AM
|
|
Replies: 26
Views: 780
Re: Timers and hooks -
Well as you would know for some reason the timer is messing up my hook and I just can't figure out why... So I thought if it ran in another thread it should be alright...
|
Forum: C++
Feb 1st, 2008, 5:09 PM
|
|
Replies: 17
Views: 686
Re: Game Programming
I recommend you go straight into some version of DirectX because its obvious you have time and you migh as well use this time to work with something better then to waste it...
|
Forum: C++
Feb 1st, 2008, 3:21 PM
|
|
Replies: 3
Views: 167
Re: some help
Quote: case 4: break;
The code will never evaluate to that, due to - "if(choice>=1 && choice<=3)" - only the cases 1, 2 and 3 will...
Quote: else if (x!=4)
What is x?
Quote: #include <iomanip>
What...
|
Forum: C++
Feb 1st, 2008, 12:53 PM
|
|
Replies: 26
Views: 780
Re: Timers and hooks -
You mis-understand :) I was trying to say that I don't see one :) But I do have other problems too which I'm tryig to work with...
|
Forum: C++
Jan 31st, 2008, 10:28 AM
|
|
Replies: 26
Views: 780
|
Forum: C++
Jan 30th, 2008, 11:14 PM
|
|
Replies: 26
Views: 780
|
Forum: C++
Jan 30th, 2008, 5:59 PM
|
|
Replies: 26
Views: 780
|
Forum: C++
Jan 29th, 2008, 3:42 PM
|
|
Replies: 9
Views: 399
|
Forum: C++
Jan 29th, 2008, 2:06 PM
|
|
Replies: 9
Views: 399
Re: Thinking of learning C++
Quote By Ancient Dragon: All programming languages have similarities.
There is one main sort of logic that I keep on seeing between languages, and that is... The If/Else statement...
|
Forum: C++
Jan 27th, 2008, 5:27 PM
|
|
Replies: 26
Views: 780
Re: Timers and hooks -
I was expressing, I meant that you basically just checked it for me :) But now I'm just heart broken that I have no lead to what went wrong :(
|
Forum: C++
Jan 27th, 2008, 2:45 PM
|
|
Replies: 26
Views: 780
Re: Timers and hooks -
Don't worry this happens to the best of us :)
Hmm, this is VERY bad. You basically just debugged that and came up with no problems. Then why do you think it stops my mouse hook?
|
Forum: C++
Jan 27th, 2008, 1:33 PM
|
|
Replies: 7
Views: 197
Re: A menu issue -
Well I guess I'll look for information in the time... Maybe its worth mensioning that the menu is not used using SetMenu() because my program is a tray icon and instead I use TrackMenuPopup()...
Any...
|
Forum: C++
Jan 27th, 2008, 1:24 PM
|
|
Replies: 26
Views: 780
Re: Timers and hooks -
Sure it does. What my loop does is delete all the menu items in the menu... It does this by checking why the recorded number of windows was and then deletes the same position every time. You might...
|
Forum: Coder's Corner Lounge
Jan 27th, 2008, 7:14 AM
|
|
Replies: 6
Views: 283
Re: Major Programming Language
Can you use web languages? If so talk about HTML and JavaScript and maybe even about the dangers of ActiveX controls...
|
Forum: C++
Jan 27th, 2008, 7:11 AM
|
|
Replies: 7
Views: 197
Re: A menu issue -
Well, first of all I use Borland C++ Builder 6 ;) secondly I don't know how to use a debugger :( And finally I am not sure it can help, because the code has runtime ISSUES and not problems(a debugger...
|
Forum: C++
Jan 27th, 2008, 7:06 AM
|
|
Replies: 5
Views: 216
Re: Animation Issue -
But I just can't seem to understand that :( Actually I have an idea; could someone please create an example in which they use WM_TIMER for animations in a dialog? Just increase the dialog by 10...
|
Forum: C++
Jan 27th, 2008, 7:02 AM
|
|
Replies: 26
Views: 780
Re: Timers and hooks -
But WndList is being changed in EnumWindows(), I think I should mension that WndList is a vector<HWND> and in EnumWindows() I am appending handles to windows...
Any ideas?
Thanks.
|
Forum: C++
Jan 26th, 2008, 8:50 PM
|
|
Replies: 26
Views: 780
Re: Timers and hooks -
Well actually this is how I get all the open windows into a menu...
Quote: remove the & from in front of WinProc. Functions are always passed by reference so the & symbol is not needed.
R. I didn't...
|
Forum: C++
Jan 26th, 2008, 8:25 PM
|
|
Replies: 7
Views: 197
Re: A menu issue -
Well actually its like this -
case WM_COMMAND :
if(HIWORD(wParam) == BN_CLICKED)
{
switch(LOWORD(wParam)
{
|
Forum: C++
Jan 26th, 2008, 4:08 PM
|
|
Replies: 22
Views: 769
Re: c++ vs. java
That's what frameworks are for ;) wxWidgets is also cross-platform :)
|
Forum: C++
Jan 26th, 2008, 2:35 PM
|
|
Replies: 7
Views: 197
A menu issue -
Sup guys,
A part of my menu is supposed to capture all open windows and list them, the problem is; since the number of windows could be random I have no way of knowing what's open so I need to know...
|
Forum: C++
Jan 26th, 2008, 1:15 PM
|
|
Replies: 26
Views: 780
Re: Timers and hooks -
It took me some time but here is the offending code(the following code is what is causing problems) -
case 202 :
if(CurWndNo != 0)
{
for(CurWndNo = WndList.size(); CurWndNo >...
|
Forum: C++
Jan 26th, 2008, 12:09 PM
|
|
Replies: 26
Views: 780
Re: Timers and hooks -
Quote: Crappy
:suprised: Harsh... :(
Hmm, according to the replies I think that timers don't remove hooks. Well I guess I'll revise my code and see what went wrong... It may be crappy...
|
Forum: C++
Jan 26th, 2008, 12:05 PM
|
|
Replies: 6
Views: 174
|
Forum: C++
Jan 26th, 2008, 8:47 AM
|
|
Replies: 6
Views: 174
Re: Timers outside of main proc -
Here's the code -
#include <windows.h>
const char *ClsName = "BasicApp";
const char *WndName = "Timer Test";
LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
VOID...
|
Forum: C++
Jan 25th, 2008, 8:26 PM
|
|
Replies: 6
Views: 174
Timers outside of main proc -
Sup guys,
For some reason when I call SetTimer(...) from outside my main window procedure it doesn't do anything. Why is that? How can I get through this?
Thanks.
|
Forum: C++
Jan 25th, 2008, 8:24 PM
|
|
Replies: 26
Views: 780
Timers and hooks -
Sup guys,
Why is it that timers remove your hooks(in my case a mouse hook(WH_MOUSE_LL))?
Thanks.
|
Forum: C++
Jan 25th, 2008, 7:15 PM
|
|
Replies: 5
Views: 216
Re: Animation Issue -
Now that I think about it, is there a way to keep the font the same no matter what the default is?
|
Forum: C++
Jan 25th, 2008, 7:13 PM
|
|
Replies: 5
Views: 216
|
Forum: C++
Jan 25th, 2008, 4:48 PM
|
|
Replies: 5
Views: 216
Animation Issue -
Sup guys,
Recently I found out how to handle/work with dialog boxes and have run into a snag. As most of you should know; when you're setting the size of the dialog in the resource it is NOT in...
|
Forum: C++
Jan 25th, 2008, 9:05 AM
|
|
Replies: 13
Views: 352
Re: Multiple windows -
Lol, I just went back to that site and it says that the reason is because of the font selected by the user... :)
So I guess the are no questions for now.
Thanks.
|
Forum: C++
Jan 25th, 2008, 9:02 AM
|
|
Replies: 13
Views: 352
Re: Multiple windows -
Never mind the second question, I figured out that the problem was my own fault. I kept on testing the CTEXT macro(its a macro right?) by inputing "TestTestTestTestTestTestTestTestTest" then I...
|
Forum: C++
Jan 24th, 2008, 5:51 PM
|
|
Replies: 2
Views: 171
Re: MD Issue -
"I only saw one occurence", well thats the problem :) I want my program to only capture the main window and not any childs, but for some reason my app captures MDI windows too. I guess the new...
|
Forum: C++
Jan 24th, 2008, 5:33 PM
|
|
Replies: 13
Views: 352
Re: Multiple windows -
Well I've been following the tutorial and am doing great! Lol, it isn't really that complicated ;)
But alas I have a question :P Why is the positioning in a dialog so different compared to normal...
|