|
save the drawing in the scrollview to a bitmap!
|
|
|
|
|
sorry!you are wrong!
not copy screen to bitmap!
save the drawing in the scrollview to bitmap!
the size of the screen is smaller than the size of the view!
|
|
|
|
|
sorry!you are wrong!
not copy screen to bitmap!
save the drawing in the scrollview to bitmap!
the size of the screen is smaller than the size of the view!
|
|
|
|
|
I am currently developing a feature for one of our products using the Microsoft Task Scheduler
Platform API (using Visual C++/MFC 6.x and the Platform SDK on NT 4.0). I have implemented
all requirements using the Task Scheduler API, but cannot find a way of determining whether or
not a Scheduled Task was missed (via the API).
The Microsoft Task Scheduler itself reports a missed Task in the Status column of the UI
as "Missed", but the API does not seem to expose a way to determine/report this.
Anyone know how would one go about determining that a scheduled Task was missed using the Microsoft Task Scheduler Platform API?
I'd greatly appreciate a code snippet detailing how this would be done?
Thanks, in advance.
David Birtwell
Software Engineer
Kronos, Inc.
dbirtwell@kronos.com
|
|
|
|
|
I have thought of several ways to send an XML object between two clients. What do you guys think would be the most efficient way?
|
|
|
|
|
WHERE CAN I FIND SOUCE CODE ON A SAMPLE ATM MACHINE FOR
BEGINNER C++ PROGRAMMERS
USING .H AND .CPP FILES
SAVINGS AND CHECKING
|
|
|
|
|
You want someone here to do your homework for you ? Using .h AND .cpp files ? Are we allowed to use lower case letters ( hint: all caps is VERY annoying to read ) ?
The problem you have before you is kind of easy, and the main reason no-one will reply is that most every one can do it and so in the least assume someone else will answer. If you take this approach for the rest of your education, do you propose also to post here when your employer sets a problem ? What if no-one replies ?
Might I suggest you crack those texts open, and ask questions when you get stuck on a detail, rather than hoping someone will do all the work for you ? I for one read this column often hoping to help people trying to learn C++ as I once did, or who are my peers and happen not to know a particular detail that is part of my experience. The point is shared knowledge, and everyone learning.
Let us know how you get on...
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
*lol* [no comment]
--------------------
www.klangwerker.de
rocknix@lycos.de
--------------------
|
|
|
|
|
the comments christian made are true ... the way to become a good programmer is to slog through the details and learn by yourself ... questions about specific points are cool as someone will prolly know the answer but not to teach you
as for atm machines ... go study finite state machines ... then get a c++ for beginners book and in 6 months re-study finite state machines ... then u might know where to start
ps: which bank is hiring you? just so i know to use a different one
mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them
|
|
|
|
|
I doubt he's being *hired*, it seems to me like a 1st year programming assignment - you know, keep two member variables and some get/set methods. It's a good example of why you should make a classes data private or at least protected - imagine if your bank account was like a public variable and you could subtract from it without any bounds checking !!! You'd WANT to go to THAT bank....
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Ok i got a big problem, i want to get a random number between 1-6
m_Random = rand() % 6;
ok, this makes a random number, but it makes the same random number evry time
the seed(i think it is called seed) is the same, how do i fix this.
Thanks a thousend times
|
|
|
|
|
From MSDN, Use srand() to seed the random-number generator
/* RAND.C: This program seeds the random-number generator
* with the time, then displays 10 random integers.
*/
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
void main( void )
{
int i;
/* Seed the random-number generator with current time so that
* the numbers will be different every time we run.
*/
srand( (unsigned)time( NULL ) );
/* Display 10 numbers. */
for( i = 0; i < 10;i++ )
printf( " %6d\n", rand() );
}
Output
6929
8026
21987
30734
20587
6699
22034
25051
7988
10104
|
|
|
|
|
|
Does anyone know how to create a progress bar in the cell of a ListView? I have a list of tasks that i have in a listview, and would like to give each of them a progress bar as they are completed. Any ideas? Thanks much!
Cheers!
|
|
|
|
|
Call ListView_GetSubItemRect() to get the RECT for the cell you want. Create the progress bar in that RECT, with the list control as the parent.
--Mike--
http://home.inreach.com/mdunn/
This must be Thursday. I never could get the hang of Thursdays...
|
|
|
|
|
Dear experts,
I have create a usual listbox in Visual C ++, the problem is how to change the size and type of the word in every line.
Could you please give an idea ?
best regards,
|
|
|
|
|
Use the "owner draw variable" style for the list box. Using that, you can have each item be a different height, and draw with whatever fonts you need.
--Mike--
http://home.inreach.com/mdunn/
This must be Thursday. I never could get the hang of Thursdays...
|
|
|
|
|
Dear friends:
I am a student in Beijing Polytechnology University.
I am learning computer application.This year I will graduate,so I
am preparing my project-- The image identification of the number plate
uesed VC or C,but I find few data in China.I want you help me.
My email: zx8@sina.com
Thanks a lot lot lot lot lot lot lot lot lot lot lot lot lot lot lot
lot lot lot lot lot lot lot lot lot lot ...
Yours sincerely zx
|
|
|
|
|
I presume you want to extract letters or numbers from images of number plates?
Start with:
http://www.efg2.com/Lab/Library/ImageProcessing/SoftwarePackages.htm
and
http://www.cs.cmu.edu/~cil/v-source.html
for some packages that might give you some ideas...
|
|
|
|
|
I have created a class derived from CTreeView to display some pieces of information about files. Among these pieces of information, I want to display code lines, and unfortunately tab characters ('\t') are replaced by invalid characters whereas I'd like them to be replaced by a fixed number of white spaces.
What should I do to modify my class and to display tab characters as a fixed number of spaces ?
Thanks.
|
|
|
|
|
i afraid with system tree ctrl you have to change them to spaces before you set item's text
t!
|
|
|
|
|
RTF has codes for drawing a line, but the RichEditCtrl in MFC doesn't support this. Does anyone know of a control that supports this ? Or has anyone an example on how to do this with the MFC-control ?
|
|
|
|
|
RTF has codes for drawing a line, but the RichEditCtrl in MFC doesn't support this. Does anyone know of a control that supports this ? Or has anyone an example on how to do this with the MFC-control ?
|
|
|
|
|
ummm ... this may be a dumb one but how do you get a notification that the state of a checkbox in a checklistbox has changed? have looked far and wide (as far as i know) but got no clue how to ... help appreciated
mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them
|
|
|
|
|
Don't feel bad, CCheckListBox has quite a few shortcommings that tend to get a little annoying.
look up CLBN_CHKCHANGE in MSDN - it's a good start.
I got so frustrated with CCheckListBox that I ended up coding up my own version just to get around it's issues. (Hmm, maybe I should post it...)
Good Luck & Happy Coding
|
|
|
|