|
thanks a bunch for the link!
First Programmer: "How many bits are in a bite?"
Second Programmer: "You spelled bytes wrong."
First Programmer: *stares* "It's a joke, moron."
Second Programmer: "Joke...?"
|
|
|
|
|
|
that was the same article, my friend
the article is very informative and professional
and i appreciate how kashif actually responds to the disagreements to his article, rather than just ignore them
First Programmer: "How many bits are in a bite?"
Second Programmer: "You spelled bytes wrong."
First Programmer: *stares* "It's a joke, moron."
Second Programmer: "Joke...?"
|
|
|
|
|
Hey gang,
Is there anyway to speed up the visual studio .net install?
It's INCREDIBLY long..
They should make it more interesting, like displaying the scripts for the first couple of "Buffy" seasons or something..sheesh!
|
|
|
|
|
I copied the DVD to my hard drive before I started the install
I only did that so i didn't have to put up with hearing the DVD spin up and down several times though.
James
Sonork ID: 100.11138 - Hasaki
"My words but a whisper -- your deafness a SHOUT.
I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
I'm not a genius on this topic , but I'm pretty sure if you add, oh, say 512 more megabytes of RAM and have at least a 2.0 gHz AMD Athlon Processor, the installation might go a pint faster
First Programmer: "How many bits are in a bite?"
Second Programmer: "You spelled bytes wrong."
First Programmer: *stares* "It's a joke, moron."
Second Programmer: "Joke...?"
|
|
|
|
|
Ok so the system requirements that MS publish for the .NET Framework are rather laughable. They are really scraping the bottom of the meaning of "minimum requirements".
So from your experience, what kind of hardware is suitable for a medium sized website running on the .NET Framework? RAM, CPU, HD etc.
thanks guys
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
Sonork ID: 100.9903 Stormfront
|
|
|
|
|
That depends on the code you write. A bad programmer can bring down the biggest server.
I have my own webserver that runs both ASP and ASP.NET, and I have a medium busy site on it, and some sites with almost no wisitors.
And now the suprise: It's running on an old IBM PC Server 320, with Dual Pentium 166MHz CPU's, 256MB Ram, and 4 SCSI Disks in a RAID 5, and it runs perfectly good
It also run's a SQL Server 7.0, and mail for 5 domains...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Huh? A bad programmer? You mean THE bad programmer, don't you?
First Programmer: "How many bits are in a bite?"
Second Programmer: "You spelled bytes wrong."
First Programmer: *stares* "It's a joke, moron."
Second Programmer: "Joke...?"
|
|
|
|
|
Hi,
I'm migrating from GDI to GDI+ under Visual C++ 6.0.
I was calling SetPixelV on a device context. Now with a HDC and a graphics object, how to do a SetPixel ?
Thanks for your help
Nicolas
|
|
|
|
|
|
I'm trying to make a popup window, that closes after it executes several functions but it doesn't work because the form stays open.
I tried 2 ways,
__gc class test1: public Form
{
public:
test1()
{
Close();
}
};//stays open
__gc class test: public Form
{
public:
__delegate void delegate();
void close(){Close();}
test()
{
delegate* pDelegate = new delegate(this, &test::close);
pDelegate->Invoke();
}
};//stays open
--------------------------
One problem with the programmer's mentality is insecurity. This goes deep. An insulting college litany says that failed mathematicians become computer programmers. They are also ridiculed for being nerdy losers, for being too fat or too skinny, and for having few social skills. Most programmers can be spotted easily in a crowd. Nobody really wants to hang out with them. Put thousands of these people in one company and if you can get them to work, you become a billiona
|
|
|
|
|
I'm just recovering from a fresh install so I don't have the framework installed yet; but what happens if you call Close on the test object outside of the constructor?
HTH,
James
Sonork ID: 100.11138 - Hasaki
"My words but a whisper -- your deafness a SHOUT.
I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
when I try calling it from outside the constructor, it won't close. What I'm going to try doing is A), create the window in a new background thread and have the foreground thread close it in 3 seconds or B)have the constructor of the new form take a variable.... incomplete thought as of now, will try A) 1st =)
------
The background worker thread method worked
__gc class heh: public Form
{
public:
heh()
{
Size = System::Drawing::Size(300,300);
Text = "I Should be gone soon";
}
};
__gc class test: public Form
{
heh* mm;
void popup(){ mm->ShowDialog(); }
public:
test()
{
Text = "Base Form";
mm = new heh();
Thread* worker = new Thread(new ThreadStart(this, &test::popup));
worker->IsBackground = true;
worker->Start();
Thread::Sleep(100);
mm->Close();
worker->Abort();
}
};
--------------------------
One problem with the programmer's mentality is insecurity. This goes deep. An insulting college litany says that failed mathematicians become computer programmers. They are also ridiculed for being nerdy losers, for being too fat or too skinny, and for having few social skills. Most programmers can be spotted easily in a crowd. Nobody really wants to hang out with them. Put thousands of these people in one company and if you can get them to work, you become a billiona
|
|
|
|
|
hi, I have a textbox on a form that gets updated by the users, it's sort of
like a log of events. The problem I'm having is, I don't know how to add a
newline.
I'm VB.NET, I got it to work by doing
txtLog.AppendText(Format(TimeOfDay, "hh:mm ") & stgEventName &
txtMessage.Text & vbNewLine)
which concated the current time, the event name, the event message with a
visualbasic_newline
and it would look like:
14:34 POP3 email received
18:24 FTP received connection request from IP 24.29.165.87
18:38 FTP received connection request from IP 24.29.165.87
18:28 FTP received connection request from IP 24.29.165.87
but in Managed C++, it's coming out like
14:34 POP3 email received 18:24 FTP received connection request from IP
24.29.165.87 18:38 FTP received connection request from IP 24.29.165.87
18:28 FTP received connection request from IP 24.29.165.87
I tried doing:
String* message = IncomingEvent;
message->Concat(message, "\r\n");
ChatBox->AppendText(message);
but to no avail =(
--------------------------
One problem with the programmer's mentality is insecurity. This goes deep. An insulting college litany says that failed mathematicians become computer programmers. They are also ridiculed for being nerdy losers, for being too fat or too skinny, and for having few social skills. Most programmers can be spotted easily in a crowd. Nobody really wants to hang out with them. Put thousands of these people in one company and if you can get them to work, you become a billiona
|
|
|
|
|
Hi folks,
Just joined up with this site and I must say... very nice!
Anyway... I created a bunch of classes in VB6 for working with playfields/sprites using a lot of GDI functions. Unfortunately my COM skills were a bit young and with the difficulties and lack of info for GDI it ended up a bit buggy. Now I want to convert the whole thing into VB.NET with GDI+, however I'm having a bit of trouble with the Graphics object. It seems that u can only get access to the Graphics objects from within the OnPaint event, whereas I really want to be working on it in a seperate thread.
If someone could help me out with a simple VB.NET example with a picture moving or animating on a form it would be greatly appreciated.
Otherwise I u think u might be able to help me but wanna know more details, just ask.
Thanx in advance...
cya,
Kermitt
|
|
|
|
|
Welcom to codeproject.
This site is mostly refer to VC++,so it's not easy to find it here,but you can see .Net and VB part in CP,maybe it can help you.(there are some articles about GDI+ but they are in VC)
http://www.codeproject.com/dotnet/
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
Thanx for the reply Mazdak.
I should've mentioned that I have seen those other GDI+ articles. They're what drew me to the site in the first place. My experience of C mainly consists of converting small bit of code to VB (a lot of that trying to figure out the GDI API functions) so those articles are just a little too much for me. Although I don't think they would solve my problem anyway because they all seem to create the Graphics object by using a hdc. When using any form of managed code ontop of dotnet, there is simply no such thing as a hdc (that I've found) so those examples kinda sidestep the problem I'm stuck on.
cya,
Kermitt
|
|
|
|
|
The Control class has a method CreateGraphics() which will return a graphics object for drawing on to the control.
Nearly all of the Windows Forms classes inherit from Control, including the Form class; so you can call CreateGraphics() at anytime.
Important when you are done with the Graphics object returned by CreateGraphics() you must call Dispose() on the object.
Public Sub DrawStuff()
Dim g as Graphics
g = myFormInstance.CreateGraphics()
' Draw on g
g.Dispose()
End Sub
HTH,
James
Sonork ID: 100.11138 - Hasaki
"My words but a whisper -- your deafness a SHOUT.
I may make you feel but I can't make you think." - Thick as a Brick, Jethro Tull 1972
|
|
|
|
|
Does anybody know if the old projects can be compiled fine under VS.NET?
|
|
|
|
|
Visual C++ compile just fine on two of the projects I've tried (it's a Win32 application using DirectX, and an MFC application)
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
VS.Net messed up one of my projects. It was a library with a dozen build permutations (MFC, non-MFC, MFC DLL, Unicode, ...) and several test programs, most of which dealt with only a subset of the permutations. The VS.Net project ignored all the dependencies I had set and insisted on building some sort of every project for every permutation of the base library.
Having said that, the permutations that were "aligned" build fine (except for some code derived from CString which broke--I kept VS.Net on my machine long enough to fix that code (just because) and then uninstalled it.)
|
|
|
|
|
Having downloaded all the disks, and burnt them from subscriber downlods I've tried installing it on two machines an it failed about an hour and a half in.
The error code is MSI error 2337, which according to the MSDN Lib, is due to a badly authored script - internal error.
From the error log :
[02/12/02,17:06:20] vs70uimgr: DisplayMessage: Internal Error 2337.
[02/12/02,17:06:20] Visual Studio .NET Enterprise Architect - English: ***ERRORLOG EVENT*** : ERROR: Internal Error 2337.
[02/12/02,17:06:20] Visual Studio .NET Enterprise Architect - English: ***ERRORLOG EVENT*** : ACTION FAILURE: Action ended 17:06:20: InstallFinalize. Return value 3. See MSI log for details.
[02/12/02,17:12:52] Visual Studio .NET Enterprise Architect - English: ***ERRORLOG EVENT*** : ERROR processed; exception was thrown for retail build
Developer Comment: Action Start message out of order
Build Time: Thu Feb 15 17:56:18 2001
File: f:\vs70builds\9466\vs\src\vssetup\setupexe\sitmanagers\brooklyn10\cmsiprogesshandlervs.cpp
Line Number: 230
Expression: (0 > iDiff)
HRESULT: -2147467259
[02/12/02,17:13:25] Visual Studio .NET Enterprise Architect - English: ***ERRORLOG EVENT*** : ACTION FAILURE: Action ended 17:13:25: INSTALL. Return value 3. See MSI log for details.
[02/12/02,17:13:33] Visual Studio .NET Enterprise Architect - English: MsiInstallProduct return code: 1603.
I just noticed that the file to be accessed should be on the CD drive which is E:, not F, which is a Netword drive, and this folder structure does not exist. Yet, the other PC (Athlon) installed from CD (D) there is no F drive.
On PC in an Athlon 1Ghz, 700MB, Win2K SP2 with IE6, and the other is a P3 700Mhz, 256MB, NT4 SP6, IE6.
I have redownloaded the disk in question and reburt is, yet I get the same error.
Any ideas?
Thank,
Giles
|
|
|
|
|
How do you make managed c++ programs run on other computers that don't have Visual Studio.NET installed. I installed dotnetfx.exe on a win2k and winme machine and ran a managed c++ program that creates a form but it doesn't work.
--------------------------
One problem with the programmer's mentality is insecurity. This goes deep. An insulting college litany says that failed mathematicians become computer programmers. They are also ridiculed for being nerdy losers, for being too fat or too skinny, and for having few social skills. Most programmers can be spotted easily in a crowd. Nobody really wants to hang out with them. Put thousands of these people in one company and if you can get them to work, you become a billiona
|
|
|
|
|
You shuold install .Net platform on that machine
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|