Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 25th, 2005, 12:44 AM   #21
MrSmiley
Programmer
 
MrSmiley's Avatar
 
Join Date: May 2005
Posts: 41
Rep Power: 0 MrSmiley is on a distinguished road
I could never justify purchasing that. But then again, isn't that the difference of choice of compiler/OS/&c...
MrSmiley is offline   Reply With Quote
Old Oct 25th, 2005, 5:14 AM   #22
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Go to some college or university, ask them if they have can get really cheap copies of programs, ask him if he can get one for you, and bam! You have yourself a copy of a legal VC++ 2003 cd for just 20 bucks
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Oct 25th, 2005, 7:23 AM   #23
badbasser98
Hobbyist Programmer
 
Join Date: Mar 2005
Location: United States
Posts: 124
Rep Power: 4 badbasser98 is on a distinguished road
I got my copy for $109 USD (including shipping) from www.pcconnection.com

Its not the Visual Suite. Its just the Visual C++ .NET Standard. Yes, one of them is over $600.
__________________
Learning to use C++ and loving every minute of it.
badbasser98 is offline   Reply With Quote
Old Oct 25th, 2005, 12:48 PM   #24
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
I have the Visual Studio Enterprise Architect Edition 2003 which costs: $2459.99, but I really did not pay that price.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Oct 25th, 2005, 1:06 PM   #25
crazykid48x
Programmer
 
crazykid48x's Avatar
 
Join Date: Apr 2005
Posts: 96
Rep Power: 4 crazykid48x is on a distinguished road
I find all my tools for free. You can find anything for free using kazaa, limewire, and torrentspy.com
__________________
I had my portable CD player, and took it in the bathroom with me while I went to pee. And the second I whipped my penis out, the theme song to 'Rocky' started playing. I've never felt more manly than in that moment.
crazykid48x is offline   Reply With Quote
Old Oct 25th, 2005, 8:17 PM   #26
MrSmiley
Programmer
 
MrSmiley's Avatar
 
Join Date: May 2005
Posts: 41
Rep Power: 0 MrSmiley is on a distinguished road
<Continuing the Thread Hijack>
Why not pay the programmers what they deserve? If you cannot do that, then don't use there product.

The end.
MrSmiley is offline   Reply With Quote
Old Oct 26th, 2005, 7:31 AM   #27
badbasser98
Hobbyist Programmer
 
Join Date: Mar 2005
Location: United States
Posts: 124
Rep Power: 4 badbasser98 is on a distinguished road
I wouldn't like people pirating my work.... (if I can get that good to actually have published work)

I like doing everything the legal way, then you don't have to worry about it.

-BB98
__________________
Learning to use C++ and loving every minute of it.
badbasser98 is offline   Reply With Quote
Old Oct 26th, 2005, 10:45 AM   #28
badbasser98
Hobbyist Programmer
 
Join Date: Mar 2005
Location: United States
Posts: 124
Rep Power: 4 badbasser98 is on a distinguished road
<Thread recovery attempt>

The program works the way I want it to, except it does not draw the progress bar, or the related text when the individual files are being removed. Is there a specific command I must give in the...

 case WM_PAINT:

area of the code? I thought I read that somewhere, but I do not know the command if that is what has to be done.

Sorry, I am such a NEWB at this... Haven't had much time to play with Visual .NET yet.

Thanks for any help,
-BB98
__________________
Learning to use C++ and loving every minute of it.
badbasser98 is offline   Reply With Quote
Old Oct 26th, 2005, 4:41 PM   #29
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Uhmm you are supposed to have a loop somewhere, where you do the work, as that progresses, you want it to do:
SendMessage(hwndPB, PBM_STEPIT, 0, 0);
You only do this once in your code, you should do it many times to let it increment the value on the bar.
Show us your new code so we can help again. You don't have to give a special command in the WM_PAINT case.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Oct 27th, 2005, 7:33 AM   #30
badbasser98
Hobbyist Programmer
 
Join Date: Mar 2005
Location: United States
Posts: 124
Rep Power: 4 badbasser98 is on a distinguished road
I am actually using SendMessage(hwndPB, PBM_DELTAPOS, 20, 0); which is supposed to add to where the last step left off, which I thought would work better than doing it as a percentage. I have it set to a 0-100 range with 5 steps of 20.

This is the code for the stepping segment.
 
case WM_COMMAND:
/* Check the control ID, notification code and
 * control handle to see if this is a button click
 * message from our child button. */
if (LOWORD(wParam) == 1 &&
	HIWORD(wParam) == BN_CLICKED &&
	(HWND) lParam == hwndfinish)
{
/* Finish button was clicked. Close the window. */
DestroyWindow (hwnd);
}
else
{
if (LOWORD(wParam) == 2 &&
	HIWORD(wParam) == BN_CLICKED &&
	(HWND) lParam == hwndrcvr)
{
// Recover button was clicked. Delete files and step progress bar. 
	  SetTextColor(hdc, RGB(255,255,255)); SetBkColor(hdc, RGB(125,125,125));
	  GetClientRect (hwnd, &rc);
		 
/********************************************************/ 
	  if( remove( "C:\\AdWin\\scr1" ) == -1 )
		{
		rc.top = rc.top + 300;
		DrawText(hdc, "Screen 1 was not locked.", -1, &rc,
		DT_SINGLELINE | DT_CENTER | DT_TOP);
		SendMessage(hwndPB, PBM_DELTAPOS, 20, 0);
		}
	else
		{
		rc.top = rc.top + 300;
		DrawText(hdc, "Screen 1 was Successfully Recovered.", -1, &rc,
		DT_SINGLELINE | DT_CENTER | DT_TOP);
		// Advance the current position of the
		// progress bar by the increment. 
		SendMessage(hwndPB, PBM_DELTAPOS, 20, 0);
		}
/********************************************************/ 
	  if( remove( "C:\\AdWin\\scr2" ) == -1 )
		{
		rc.top = rc.top + 20;
		DrawText(hdc, "Screen 2 was not locked.", -1, &rc,
		DT_SINGLELINE | DT_CENTER | DT_TOP);
		SendMessage(hwndPB, PBM_DELTAPOS, 20, 0);
		}
	else
		{
		rc.top = rc.top + 20;
		DrawText(hdc, "Screen 2 was Successfully Recovered.", -1, &rc,
		DT_SINGLELINE | DT_CENTER | DT_TOP);
		// Advance the current position of the
		// progress bar by the increment. 
		SendMessage(hwndPB, PBM_DELTAPOS, 20, 0);
		}
/********************************************************/
	  if( remove( "C:\\AdWin\\scr3" ) == -1 )
		{
		rc.top = rc.top + 20;
		DrawText(hdc, "Screen 3 was not locked.", -1, &rc,
		DT_SINGLELINE | DT_CENTER | DT_TOP);
		SendMessage(hwndPB, PBM_DELTAPOS, 20, 0);
		}
	else
		{
		rc.top = rc.top + 20;
		DrawText(hdc, "Screen 3 was Successfully Recovered.", -1, &rc,
		DT_SINGLELINE | DT_CENTER | DT_TOP);
		// Advance the current position of the
		// progress bar by the increment. 
		SendMessage(hwndPB, PBM_DELTAPOS, 20, 0);
		}
/********************************************************/ 
	  if( remove( "C:\\AdWin\\scr4" ) == -1 )
		{
		rc.top = rc.top + 20;
		DrawText(hdc, "Screen 4 was not locked.", -1, &rc,
		DT_SINGLELINE | DT_CENTER | DT_TOP);
		SendMessage(hwndPB, PBM_DELTAPOS, 20, 0);
		}
	else
		{
		rc.top = rc.top + 20;
		DrawText(hdc, "Screen 4 was Successfully Recovered.", -1, &rc,
		DT_SINGLELINE | DT_CENTER | DT_TOP);
		// Advance the current position of the
		// progress bar by the increment. 
		SendMessage(hwndPB, PBM_DELTAPOS, 20, 0);
		}
/********************************************************/
	  if( remove( "C:\\AdWin\\scr5" ) == -1 )
		{
		rc.top = rc.top + 20;
		DrawText(hdc, "Screen 5 was not locked.", -1, &rc,
		DT_SINGLELINE | DT_CENTER | DT_TOP);
		SendMessage(hwndPB, PBM_DELTAPOS, 20, 0);
		}
	else
		{
		rc.top = rc.top + 20;
		DrawText(hdc, "Screen 5 was Successfully Recovered.", -1, &rc,
		DT_SINGLELINE | DT_CENTER | DT_TOP);
		// Advance the current position of the
		// progress bar by the increment. 
		SendMessage(hwndPB, PBM_DELTAPOS, 20, 0);
	   }
/********************************************************/															
}
}
Also, I would like that text to be displayed in the main window after the remove(); command takes place so that the end user knows if any, and what were recovered.

Thanks,
-BB98
__________________
Learning to use C++ and loving every minute of it.
badbasser98 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:34 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC