|
Well I totaly agree with your opinion, I acted on ethical grounds too, I didn't gave him the whole code so he can just remember it and pass, I gave him clues about MOD so he can code it himself... But to do that I really needed to understand the solution myself.
he did solve it then, and also created another loop that counts the number of digits in an integer...
giving complete code is something I avoid too
Cheers
|
|
|
|
|
Mark Salsbery wrote: But still...don't students actually learn anymore?
They've obviously learned how to ask questions on public forums. What would the current generation do if the Internet suddenly ceased to exist?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi Mark, shouldn't you add 1 point for every error in the code assuming there are some?
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
thanks that takes care of the problem...
|
|
|
|
|
Hi,
I am creating a dialog based app in VS2005 and I am having an annoying problem: Visual Studio can't see some of my include files, even though they are in the same directory as others it can see.
Basically, I am using includes from three locations:
[1] System headers
[2] headers in the project directory
[3] headers in a seperate directory common to a family of projects.
I have listed [3] under Properties->General->Additional Include Directories"
What it seems like is if VS2005 is working on a header file in place [3] and the file specifies an include located in [2] it won't be able to find it -- unless I move it to [3].
Any help appreciated!
@LRG
|
|
|
|
|
Did you include your headers using double quotes instead of angle brackets?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Yes - all of my includes are as such:
In "Joint.h" --
#include "DOF.h"
If DOF.h and Joint.h are not in the same directory then VS will not find them...
Thanks - @LRG
|
|
|
|
|
VS can't find files without a path.
You can add paths for executables/headers/source/etc. in the VS
settings at Tools (menu)/Options/Projects and Solutions/VC++ Directories.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi Mark,
Thanks again for your help. My question would be why can't VS figure out that if I am creating a project in a certain directory, that particular directory should be included in the list of paths to search?
Eh!
Thanks - @LRG
|
|
|
|
|
hmm I don't know - that's never happened to me
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I am looking for a way to enable ICS in code rather than manually doing it in network settings. Does anyone have any idea how to do this or point me to some API that will let me do this. I can't seem to find anything on the subject.
|
|
|
|
|
Member 4277104 wrote: I am looking for a way to enable ICS...
Internet Caching System
Internet Connection Sharing
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Internet Connection Sharing. I am looking to enable it without user interaction on a device.
|
|
|
|
|
Nevermind I finally found what I needed.
|
|
|
|
|
|
|
Hello, I'm looking for a really simple implementation of text as a hyperlink. I've seen some examples where HTML was embedded into an MFC, but that far exceeds my needs.
I have a cstring variable and I want to append an html link to it. What would be the simplest way? Thanks.
|
|
|
|
|
Shameless Plug http://www.codeproject.com/KB/miscctrl/jrtslinkctrl.aspx[^]
Although there are a few (*cough*) other implementations available here as well.
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Thanks for all the fish wrote: I have a cstring variable and I want to append an html link to it. What would be the simplest way?
Do you mean something like:
CString str = "some text";
str += "plus a <a href=www.codeproject.com>link</a>";
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Yes something like that. But when append that to my cstring and output it, it outputs the entire string, not as an HTML link.
|
|
|
|
|
I was simply addressing your request for (HTML) text being appended to a CString object. James' suggestion is what you want.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The way my app is set up now is that, a fairly long CString variable is built and then its contents is dumped into a large edit box. Would it be possible to have an html link somewhere in the middle of the edit box?
The reason I ask is because the position of the hyperlink is not always the same. If I use one of the examples posted or one that I find, it is not of the CString class. It's a seperate control where the position is going to be static.
|
|
|
|
|
Thanks for all the fish wrote: Would it be possible to have an html link somewhere in the middle of the edit box?
Yes, if it was a rich edit control.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I was wondering if it was possible to step into operator+ and operator+= for ints and everything else other than strings?
Can't find out how or even if it's possible so was wondering if anyone knew?
cheers
|
|
|
|