|
PS : that's the second time in a row I get an "undeliverable mail" message in my mailbox.
Back to real work : D-26.
|
|
|
|
|
At first glance I think this is a good idea. But I dont think that these people will limit their posts to just the homework forum. I mean they ignore the No programming questions please request in the forum.
And like someone else stated, I dont think that many people here are all that interested in doing someone elses homework. I think the best thing that can be done is to ignore these posts.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
If they had to show the effort they had put into the question/problem and explained where their stuck, then I think its OK to help them. Its when they show they have done nothing on the problem themselves that you don't help them.
Roger Allen
Sonork 100.10016
I have a terminal disease. Its called life!
|
|
|
|
|
I agree - we all had to start somewhere, but that does include trying to work things out for ourselves. When someone gets to the limit of their current expertise there is no harm in pushing them along in the right direction a little.
Deploying a web application without understanding security is roughly equivalent to driving a car without seatbelts - down a slippery road, over a monstrous chasm, with no brakes, and the throttle jammed on full. Hacking Exposed - Web Applications. Joel Scambray & Mike Shema
|
|
|
|
|
Recently I've found a very cool feature on www.gotdotnet.com[^] - workspaces.
Workspace is an Internet development environment where developers can create host and manage their projects. CPians will be able to develop their apps in teams.
I thought it would be great to have something similar here on CP.
Is it possible?
43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
|
|
|
|
|
Michael Mac wrote:
I thought it would be great to have something similar here on CP
Yeah it would be, got a free server to give to CP for this?
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Paul Watson wrote:
Yeah it would be, got a free server to give to CP for this?
well if we all donate £1 - with 50,000+ that will be no problem
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
I agree.
43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
|
|
|
|
|
Paul Watson wrote:
got a free server to give to CP for this?
Unfortunately, I don't have.
43 68 65 65 72 73 2c
4d 69 63 68 61 65 6c
|
|
|
|
|
Or in otherwords, it's a sourceforge[^] ripoff. No, I didn't mean that. Um. It's an example of Microsoft's innovation. Yes, that's right.
(SF isn't limited to writing GNU licensed Linux apps, btw, although they do have to be open source of some description)
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
If you look at it[^], no smilarity with the "real" Workspaces. Heck, Git wasn't even invented back then
Damn. I wanted to reply to the Thread[^] which brought me here
The console is a black place
|
|
|
|
|
Just a reminder of the fact that people installing VC7 will not be able to run executable demos from most CP articles. Indeed, most of the CP articles in the repository contain MFC6-aware compiled executables, which may not be installed on the user's machine.
Also of note : a lot of people claim VC6 and VC7 compatibility in their articles. This is most of the time untrue. They just distribute .dsw and .dsp files, which indeed can be automatically converted to VC7, but compiling the code is a totally different matter. The code wil often fail miserably because of ATL changes or CString changes. Here is an exemple :
Now the VC7 compiler enforces the C++ standard and does not allow a const CString be used as a CString & reference param in a method call. This does not bring a warning, that's a full fledge error. There is not even a warning when compiling this under VC6. And this is very often used in source code.
I believe there are enough troubles in here when you actually unzip the files and TRY them to start adding "VCx-compliant" logos.
May be this reveals how little people actually use the source code. Or those people just handle it without complaining at all, and providing no feedback as well. I am not sure either way this is the way we should go.
Of course, as a reminder, when you have a VC++7 project, you can convert it back automatically using this free tool[^].
Back to real work : D-27.
|
|
|
|
|
void F( CString& s ) { s.MakeLower(); }
const CString x("BOB");
F(x);
error C2664: 'F' : cannot convert parameter 1 from 'const class CString' to 'class CString &' VC catches that error just fine.
You can also get the MFC 6 redistributables from http://activex.microsoft.com/controls/vc/mfc42.cab[^]
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Try this :
void F( CString& s ) { s.MakeLower(); }
CStringArray arrS;
arrS.Add( CString("bob") );
F( arrS.GetAt(0) );
This compiles fine with VC6, and produces a C2664 error with VC7.
The answer is in the actual source code. Blame MS (as usual for being morons, ie changing code guidelines without notice).
In MFC6, the GetAt() accessor is defined as : CString GetAt(int nIndex) const;
In MFC7, the same accessor is defined as : const CString& GetAt(INT_PTR nIndex) const;
I am not interested in the Graus'ian debate of whether const is good or not. I am just saying THE CODE DOES NOT COMPILE WITH VC7. I think it's simple enough to understand.
And if you enforce const stuff with VC7 code, people willing to downgrade it to VC6 code will have the equivalent issues. Again, this will not compile without changing the implementation, or even worse : the API.
Michael Dunn wrote:
You can also get the MFC 6 redistributables from http://activex.microsoft.com/controls/vc/mfc42.cab
Thanks for the link. Do you assume that everyone knows this link ? Do you assume anyone is willing to get beyond the simple "missing MFC42.dll" error when testing precompiled stuff ? This takes time, and it's annoying. Facing that with .NET (you probably know the "missing mscoree.dll") in the past, my point was to never go back to anything related to .NET.
The fact is I got VS.NET to play with, and things began to get better. But the average Joe user will spit on you for providing him with such things.
The answers are obvious to me. If we don't find a better way to share these kind of resources from now on, this will may be turn out to be the death of CodeProject. For a lot of people, an executable demo from an article failing to execute is showing how unreliable it can be.
Of course, that's only my point. Now you know.
Back to real work : D-27.
|
|
|
|
|
a) why would you pass a temporary object as a non-const ref anyway?
I agree, though, that people sholud try there code before checking for compatibility
b)A developers system that does not have VC6 runtime? I catch that beast almost before I install windows... And if the runtime is not present, a quick question in the forums will help. I don't consider this as an "incompatibility", and Nish would certainly not want people to include the MFC runtime in their project downloads. Should C# projects include the .NET runtime as well?
peterchen - a bit puzzled
Auch den Schatten will ich lieben weil ich manchmal lieber frier' Rosenstolz [sighist]
|
|
|
|
|
peterchen wrote:
a) why would you pass a temporary object as a non-const ref anyway?
You can't question it. That's the way it is. For instance, I do it all the time for performance reasons.
peterchen wrote:
I agree, though, that people sholud try there code before checking for compatibility
Yes, but people DON'T do it, in much the same way nobody tests an html code for compatibility with Opera 5, Opera, 6, Netscape 4.x, Netscape 6, Mozilla, IE 4, IE5, IE.5, IE6, MSN Explorer.
If I run an .exe, and it fails, I may simply give up. That's too bad. But I belive many people would do so, and CodeProject as a whole suffers a lot.
peterchen wrote:
And if the runtime is not present, a quick question in the forums will help
You can't be serious. Nobody will wait for an answer before moving on.
peterchen wrote:
Should C# projects include the .NET runtime as well?
That's the main issue I am fighting against for a quarter already. Especially I have told many times MS people it was a shame that not only when an incompatible .NET run-time is installed, the user gets a nasty and weird messagebox, and that's all. A modern framework should have handled it better and managed to show a nice wizard, go to the web, download, etc...
Honestly, I don't have to care about it, and could assume that every developer has the same working environment as I do. That's foolish, and lazy at the very least.
That's why VCx compliant logos must be introduced before CodeProject has changed to be a simple sh*tty site.
That's simple, people check the VC7 box only if they actually compiled it and tested it in that environment. Today they don't do it, simply assume that the .dsw/.dsp project will nicely upgrade.
Back to real work : D-26.
|
|
|
|
|
The numbers are rather small and hard to click on. Some extra space around them would be nice to make the target area larger. Something like:
<a> 1 </a>-<a> 2 </a>-<a> 3 </a>-
and so on.
1 - 2 - 3 - 4 - 5
Also, instead of that evil popup window to confirm a vote, why not use DHTML and change the voting area into the "your vote was recorded" message. The user is already looking there so they will see the message, and it avoids a popup.
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I think the pop-up is there to send the data back to the server, and not just to inform the user.
What could be done, in my opinion, is to have a pop-under instead of a pop-up to send the data (the pop-under can auto close itself after it sends the data --> is that even possible?), and DHTML to change the voting area as you said.
Or a small IFRAME.
We also need to update the FAQ and include stuff about this new feature. But let things settle down a bit.
Regards,
Rohit Sinha
|
|
|
|
|
A pop-under is no different to a pop-up. Auto-closing is possibly. An IFRAME is also possible but will only work for IE or NS6 or above. It'll happen in message rating v1.2
cheers,
Chris Maunder
|
|
|
|
|
Chris Maunder wrote:
An IFRAME is also possible but will only work for IE or NS6 or above.
Compliance, compliance, compliance. Don't you wish that you didn't have to be compliant for once.
Chris Maunder wrote:
It'll happen in message rating v1.2
I love versioning...
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
Nick Parker wrote:
Compliance, compliance, compliance. Don't you wish that you didn't have to be compliant for once
All he has to do is be stadards compliant and he can use IFRAMEs up to the ying yang.
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Unhappily, the Standard is not world compliant.
Auch den Schatten will ich lieben weil ich manchmal lieber frier' Rosenstolz [sighist]
|
|
|
|
|
is it possible to get the link to amazon on toolbox to be country specific - so for me it would be .co.uk rather than .com
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
Philip Fitzsimons wrote:
is it possible to get the link to amazon on toolbox to be country specific - so for me it would be .co.uk rather than .com
thats a good idea. i didnt even realise that was there - you learn something new every day
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
PDA/Palm development
Jason Henderson start page articles "If you are going through hell, keep going." - Sir Winston Churchill
|
|
|
|