|
oh... thanks mike!
Don't try it, just do it!
|
|
|
|
|
I have a listview in large icon mode. I need to control the image displayed when item is selected. That is, instead of the default fogging the list view provides, I want to display special "selected" image (known at creation time). Is it possible?
Also, is owner draw mode supported for not report mode?
|
|
|
|
|
I want to know if there is a way to figure out
a perticular dialog is enabe/disable. I use enable
/disable this dialog by the function "EnableWindow(FALSE/TRUE)"
,but before calling EnableWindow, I want to know if this dialog
is disable or enable to hide a bug.
Thanks in advance.
Shin
|
|
|
|
|
IsWindowEnabled() should do the trick!
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
|
Any particular problems you want to discuss ?
have you tried coding some part of it ?
do you understand the problem at hand ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
in fact i'd like to know how to formulate the main algorithm:function main
|
|
|
|
|
Homework, eh? If you were to ask specific questions, rather than "Will you do my assignment for me?", you're bound to receive tons more help.
antoinette33 wrote:
if the plane is full and more passengers arrive specify that they can be put on a waiting list and will be assigned the next available seat in case of cancellation...
Sounds like the producer-consumer problem.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
ah ah ah that is really funny anyway i just wanted the main algorithm thx
|
|
|
|
|
humm, I dont think you will ever get the solution to this problem unless you try solving it.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
why don't u statr help me then? that will be nice what do u think?
|
|
|
|
|
Listen funny man you are taking the forum the wrong way.. PPl will not write the whole code for you. Thats ur job. If you get stuck implimenting a logic sowewhere down the line then some one may help you, its not garanteed that you will get help. But a question like this, there is little chance for you to get help, Instead ask your friend who has got the similar assignment and has done solving it.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
thanx for ur advice but u sound like death itself to mean wiht ur quote
|
|
|
|
|
antoinette33 wrote:
u sound like death itself
so smile.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
|
I am using strtol to catch bad entries:
looping on i
{
fgets(line, MAX_SIZE -1, fp);
pc = line;
for ( unsigned int j = 0; j < cols ; ++j, ++col)
{
num = strtol( pc, &pc, 10);
cout << i << " " << j << " " <<num<< " pc " << (*pc==' '?'.':*pc) << endl;
line comes from a file that looks like:
9 a5 3 9 1 3 9 5 5 7
10 9 4 6 10 10 8 5 1 7
10 12 1 3 10 10 10 11 12 3
/// an 'a' snuck in...strtol should arrest it, but it never does.
(however with a9 5 3 9 3 9 3 8 5 3, I see the letter 'a' in the cout.....)
Here is the output for the first case (when a doesnt show...)
0 0 9 pc .
0 1 0 pc .//pc should have been 'a', num is 0 is okay since it didnt get read
0 2 0 pc .//'num' should have been 5
0 3 0 pc .
0 4 0 pc .
0 5 0 pc .
0 6 0 pc .
0 7 0 pc .
0 8 0 pc .
0 9 0 pc .
Any ideas why strtol isnt performing as I understand it should?
thanks,
ns
|
|
|
|
|
nss wrote:
Any ideas why strtol isnt performing as I understand it should?
What are you expecting it to do? When calling strtol("9 a5 3 9 1 3 9 5 5 7", ...) , processing stops at the space following the first 9 because that is the first character that it did not recognize as part of the number. The same is true for calling strtol("a9 5 3 9 3 9 3 8 5 3", ...) , in that processing stops at the 'a' because that is the first character that it did not recognize as part of the number. Had you used base 16 instead, processing would have stopped at the space following 'a9' . Make sense?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
right, the first arrest is at ' ', but right afterit should choke on 'a' as well......
23 12 a4 56.....
It never prints out *pc = 'a'
|
|
|
|
|
I m stuck at complement of two sets in DeMorgan's law
any having solution plz contact me
thankx
|
|
|
|
|
Do you have some sample code that's troubling you?
http://lc.brooklyn.cuny.edu/LeftBarFiles/FromAboutLC/Core5Files/Logic/demorg.html
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I m stuck at complement of two sets in DeMorgan's law
any having solution plz contact me
thankx
|
|
|
|
|
i have a links for you cuz i have a discrete structure class go to www.whfreeman.com/gersting and the password is logic
|
|
|
|
|
I'm wanting to write a TCP/IP program that will spawn off client connections to a server applications. So far I have three sites that I want to connect to, and each site is listening for a connection.
So if I spawn these connections is it possible to be able to pass data to these spawned tasks? Can you setup a memory variable to pass data from the application that's spawning the tasks to the tasks themselves?
Does this sound like the best way to set this up.
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Hi, I don't understand COleVAriant type, can anone explin it to me, tanks?
For example, in this expression:
oSel = oRange.Move(vtI, vtII);
vtI must be an object of type Variant* Unit
vtII must be an object of type Variant* Count
I need this to do automation with MSWord (to select a range in a cell for example).
Thanks
|
|
|
|
|
I have a little problem in MFC...
a have a CString variable that has carriage return inside.
i want to extract that portion so i could replace it with a new part.
example:
CString cSample;
cSample = "This \n";
cSample+= " is \n";
cSample+= " my toy";
replace with
cSample = "This \n";
cSample+= " are \n";
cSample+= " my toy";
"is" was replaced by "are"... how can i do this in MFC?
|
|
|
|