|
wot does this program do?
There is no spoon.
mail
|
|
|
|
|
can u come online at MSN Messenger so that it will be easy for me to explain and if possible it would be much better if we come on netmeeting so that i can show you what exactly the output should nad where it might be screwing up.
I am on MSN as : youngashish@hotmail.com
please do reply.
|
|
|
|
|
I want to send data to device.
What I use function?
|
|
|
|
|
|
|
Hi All
Can anyone say how can i convert a fisheye image to noraml image ? any algorithams ?..
If anyone knows anything about this , pls give me that information.
Thanking U
Krishnan
If u can Dream... U can do it
|
|
|
|
|
Hi there,
I am learning C and I am stumped by this question about for loops. I know how to make a loop but not sure how to get the 1*1*1 etc into total.
Given int variables k and total that have already been declared , use a for loop to compute the sum of the squares of the first 50 whole numbers, and store this value in total . Thus your code should put 1*1 + 2*2 + 3*3 +... + 49*49 + 50*50 into total . Use no variables other than k and total .
Thanks in advance,
Jennifer
|
|
|
|
|
How about this? [edit]Got the wrong number in the for statement [/edit]
total = 0;
for(k=0; k<50; k++)
{
total = total + (k * k);
}
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Thanks so much. I just had the total equation wrong!! YEAH!! Thanks so much.
|
|
|
|
|
Hi,
k=1;
total=0;
while(k<=50)
{
total=total+(k*K);
K=k+1;
}
Regards.
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Given an int variable k that has already been declared , use a while loop to print a single line consisting of 97 asterisks. Use no variables other than k .
or this....
Given an int variable n that has already been declared and initialized to a positive value , and another int variable j that has already been declared , use a while loop to print a single line consisting of n asterisks. Thus if n contains 5, five asterisks will be printed. Use no variables other than n and j .
Any ideas. I have lots of questions like this. I just need help with one of them so I can work with the rest!
Thanks in advance.
|
|
|
|
|
Hi
int k=0;
while(k<97)
{
printf("%c",'*');
k=K+1;
}
Regards
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Hi, I've used Visual C++ for a couple of years, but I'm just learning MFC for C++ .Net right now.
Anyway, I'd like to be able to click a button that gives me a new dialog box (or just hides everything on the current one and gives me a box that looks new). Say I click on a 'stats' button. I'd then like to select from a 'stats' menu which kind of stats I would like to display, etc.
What would be the easiest or best way to accomplish what I'm trying to do in a MFC app?
Thanks,
Mark
|
|
|
|
|
CMyDialog::OnClickBtn()
{
//replace CDialog with your own Dialog class.
CDialog dlg;
dlg.DoModal();
}
There is no spoon.
mail
|
|
|
|
|
Thanks.
|
|
|
|
|
I want to be able to take an unsigned int, and use the 32 bits that make up that int for some further calculations.
Is there a way of doing this, via some library, or some built-in function???
|
|
|
|
|
http://www.codeproject.com/cpp/bitbashing.asp[^]
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
Hi,
In the application I've created, I need to do the following:
1. Need the application to ask for the user to save the changes made when he exits without saving. I tried:
GetDocument()->SetModifiedFlag(true);
With this the string displayed in the message box becomes:
"Save changes to untitled?" I need to make this "Do you wish to save changes made to configuration?"
2. Change the application name that appears in all the message boxes (in the title bar). How do I do that? Currently all of them show "xyzProject" and I need "XYZ Application"
Thanks in advance!
|
|
|
|
|
help_wanted wrote:
I need to make this "Do you wish to save changes made to configuration?"
You'll need to provide your own SaveModified() method.
help_wanted wrote:
2. Change the application name that appears in all the message boxes (in the title bar). How do I do that?
This comes from the app's m_pszAppName member variable.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Thanks a lot! This was awesome. I appreciate the assistance you have provided me and the time you've spent answering questions from a beginner like me.
Are there any books that go into more detail about the communication model etc here? I see a lot of books with stuff on how to get started and build your first appln, but nothing more detailed.
|
|
|
|
|
Hai,
I'm new to vc++ win32...i am trying to read and write to serial port COM1.
I know we can do this by createfile and read and writefile fns..but i am not sure about the flags and how to set buffer values..and what other funcs i need to do..suppose i want to write say "hello" to com1 and get the acknowledge "hi" from it...can any one help me with the code exactly how to do it..
thanks a lot.
|
|
|
|
|
You can use
The DCB structure defines the control setting for a serial communications device.
after this you can comunicate as you sain with createfile and writefile..
Murali.
|
|
|
|
|
Hai,
I have created a file using createfile function. but when i executed it, it gives ERROR_ACCESS_DENIED error in Getlasterror function.
How should i overcome this.what shoulg i set the security attribute value.
thanks.
|
|
|
|
|
Make sure you close the file before you try to execute it.. Just a guess.
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Specify the file access flag as CFile::modeWrite in CreateFile Function.
I hop this will work.
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|