|
You could use my ConfirmedButton control, which was designed for this scenario. It's available as a free download.
|
|
|
|
|
I have imported a project developed in VC++ 6.0.
and am getting this(these) errors when running
C:\\windows\system32\ntdll.dll , cannot find or open a required DBG file
C:\\windows\system32\mfc70.dll , cannot find or open a required DBG file
How do I fix these?
Thanks -JoeSox
|
|
|
|
|
Hi,
When trying to write my xml data to a string using StringWriter and XmlTextWriter
it writes to the string and sets the encoding to UTF-16. How do I control the encoding
when writing to a string (when writing to a file with Filestream I can control the encoding
through the XmlTextWriter constructor)?
Here is a codesnippet of my code:
System.IO.StringWriter sw = new System.IO.StringWriter();
XmlTextWriter writer = new XmlTextWriter(sw);
writer.Formatting = Formatting.Indented;
writer.WriteStartDocument();
....
writer.WriteEndDocument();
MessageBox.Show(sw.ToString());
Johannes
|
|
|
|
|
I have created a console application with Visual Studio .NET in which I am attempting to retrieve a IDirectoryObject pointer using ADsOpenObject(). The code compiles ok but will not link. The linker is unable to resolve IID_IDirectoryObject even though I have added activeds.lib to the list of libraries. Is there a define I need to set to include Windows 2000 objects or is there another reason why my program will not link?
Thanks in advance for any help you can provide.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
I've only recently become involved with codeproject so I haven't heard much about this .NET thing (also, my first issue of MSDN decided to come looong after the whole .NET announcement thing). As far as I can tell, .NET is supposed to replace Visual C++ for web development, am I correct? Must... find... clear... descriptions... of... .NET...
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...?"
|
|
|
|
|
Check this
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
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
|
|
|
|