![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
Programmer
Join Date: May 2005
Posts: 41
Rep Power: 0
![]() |
I could never justify purchasing that. But then again, isn't that the difference of choice of compiler/OS/&c...
|
|
|
|
|
|
#22 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
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 |
|
|
|
|
|
#23 |
|
Hobbyist Programmer
Join Date: Mar 2005
Location: United States
Posts: 124
Rep Power: 4
![]() |
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. |
|
|
|
|
|
#24 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
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 |
|
|
|
|
|
#25 |
|
Programmer
Join Date: Apr 2005
Posts: 96
Rep Power: 4
![]() |
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. |
|
|
|
|
|
#26 |
|
Programmer
Join Date: May 2005
Posts: 41
Rep Power: 0
![]() |
<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. |
|
|
|
|
|
#27 |
|
Hobbyist Programmer
Join Date: Mar 2005
Location: United States
Posts: 124
Rep Power: 4
![]() |
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. |
|
|
|
|
|
#28 |
|
Hobbyist Programmer
Join Date: Mar 2005
Location: United States
Posts: 124
Rep Power: 4
![]() |
<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. |
|
|
|
|
|
#29 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
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); 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 |
|
|
|
|
|
#30 |
|
Hobbyist Programmer
Join Date: Mar 2005
Location: United States
Posts: 124
Rep Power: 4
![]() |
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);
}
/********************************************************/
}
}Thanks, -BB98
__________________
Learning to use C++ and loving every minute of it. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|