|
Have a look at
http://www.opengl.org/discussion_boards/cgi_directory/Ultimate.cgi?action=intro&BypassCookie=true
which is an excellent forum about OpenGL programming. Have also a look at
http://nehe.gamedev.net/
where you can find tons of very well explained tutorials
|
|
|
|
|
For me it looks like you just want to draw simple objects.. (2d - graphics..)
and for that you don't need opengl.. the good 'ole gdi would be enough for that..
there are some examples for drawing in gdi on this page.. another way would be to follow the scibble example of the msdn..
but if i did understand you wrong, sorry..
bernhard
stolen sig#15:
"The content of this post is not necessarily the opinion of my yadda yadda yadda."
|
|
|
|
|
Does a Directory Selector Dialog exist as a standard dialog in MFC? I know it isn't a common dialog (unless FilePicker is configurable), but if it exists already I don't want to reinvent the wheel. If it doesn't exist, I guess I get to make one myself! Woo!
Thanks.
Platform: Win2k
Lang : Visual C++ with MFC
----
Xian
|
|
|
|
|
From memory it's SHBrowseForFolder. Yes, that's right.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
You rock, thanks.
----
Xian
|
|
|
|
|
Hi,
I cannot debug my program anymore since a few days. I must have made a change somewhere (but where ) and now everytime I try to set a breakpoint (in any part of my project) the following message appears:
One or more breakpoints cannot be set and have been disabled. Execution will stop at the beginning of the program.
Can anyone help??
Thanks
|
|
|
|
|
try a Rebuild All. you need to convince the debugger that it is looking at the latest build of the source. also, make sure you're building in debug mode..
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
Hmmm, should I help the arch enemy of BatMan?
Anyway have a look at the following two KnowledgeBase articles. Hopefully one of them will help you.
Q146447 and Q78853.
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
I think you had switch the compiler into Release mode, so no breakpoints can be set. You can switch back to Debug mode in the menu Build --> Set Active Configuration.
Law is meaningless without chaos.
Chaos without Law is equal to destruction.
Chaos and Law create our rich and colorful world.
|
|
|
|
|
Thanks for the many replys, but the cause is probably elesewhere because it is still not working
I remember removing a few project options which where not compatible with the "Maximize speed"-optimization. Could that be the cause? I tried to come back to "default"-optimization, but this didn't change anything
|
|
|
|
|
Are you sure you are in the Debug mode and not the Release mode?
Law is meaningless without chaos.
Chaos without Law is equal to destruction.
Chaos and Law create our rich and colorful world.
|
|
|
|
|
Yes, unfortunately I'm in debug mode...
Why can't the error message be a little more explicit
|
|
|
|
|
I think you had changed the settings for the debug mode.
You can try this solution:
Project-->Settings-->select Win32 Debug in "Settings For"
-->select "C/C++" tab-->select "General" in Category
-->select "Program Database for edit and continue" in "Debug Info"
then it should work normally.
Law is meaningless without chaos.
Chaos without Law is equal to destruction.
Chaos and Law create our rich and colorful world.
|
|
|
|
|
...and everything is working for the best now!
Thanks Chaos Lawful, you saved me for the second time
|
|
|
|
|
Codes described below read lines of a file and write those on another file:
CODE A:
CStdioFile ent;
CStdioFile sal;
CString stReg;
ent.Open("input.txt", CFile::modeRead);
sal.Open("output.txt", CFile::modeCreate | CFile::modeReadWrite);
while (ent.ReadString(stReg)) {
sal.WriteString(stReg);
sal.WriteString("\n");
}
runs extremely faster than:
CODE B
ifstream inp("input.txt");
ofstream outp("output.txt");
string sReg;
while(getline(inp, sReg))
salida << sReg << endl;
Is there anyway to make CODE B faster that CODE A
Thanks in advance!!!
|
|
|
|
|
> Is there anyway to make CODE B faster that CODE A
If you are only interested in copying the contents of file "input.txt" to file "output.txt", I think so.
outp << inp.rdbuf();
|
|
|
|
|
I want to make the right-arranged Tree Control.
root
|
child-|
child-|
| |
child-| |
child-|
like this..
How can I make?
-------------------------------
the Something to remind you...
Pat Metheny Group
http://my.dreamwiz.com/immk
-------------------------------
|
|
|
|
|
Hi,
I am trying to use the mscomm control within VC++, and am not being o successfull... however if I execute the same statement in VB it seems to work.. the problem is this...
in VB I issue:
Form1.MSComm1.Output = Chr(&H90)
upon doing this I immediate get a reply back in the receive buffer, also I am using a Belkin usb to serial adapter and when I look at it I can see both the send and receive light flicker quickly..
When I try and execute the code below in VC++, I never get a response and also only see the send light on the adapter flicker, never the receive as I do when executing the VB code.. This is the code within my VC++ of which I believe is doing the same as the VB..
CByteArray aBytes;
aBytes.Add( '\x90' );
COleVariant var( aBytes );
m_mscomm1.SetOutput( var );
any help would be grealy APPRECIATED...
|
|
|
|
|
We are seeking people knowledgeable in Visual C .net for a short-term freelance technical documentation role. Role involves creating tests and testing methods to measure knowledge of the subject matter. For serious inquiries send an email testcoordinator@techprofiles.com
|
|
|
|
|
Hi,
I want to left justify a CString in my Format statement. If I use a flag directive of - after % sign (myString.Format("%-35s", sName)) I thought it would get left justified but it is not. Please let me know if I am missing something.
Thanks,
|
|
|
|
|
|
Hi,
I've been using MFC to serialize my application classes for a while now, but now suddenly this error has appeared that I don't understand. I am using the CArchive::ReadObject to load my CObject based class. This function seems to run well, or has done in the past. I ran through the debugger, CArchive::ReadObject calls a function: CRuntimeClass:Load which loads a tag to the object, then load the objects name as a string. It then searches it's map for the name to find the coresponding class thingy which it uses to create the class object with. The problem is that there are far too few classes in the map, and so the function fails to find my class's name, and therefor throws an exception. Why doesn't it find my class or any others when 1) It saved fine (I've looked at the binary, and the format is correct) 2) The class is a part of the module which is doing the module 3) Yes I have used DECLARE_SERIAL and IMPLEMENT_SERIAL properly (I think).
Can you help - if you can I will be very greatful.
With time we live, with money we spend!
Joel Holdsworth
|
|
|
|
|
This is a wild guess, but... Are you sure the code of your class is being linked? Maybe the .cpp has been moved to a static library and the linker is stripping away the object code of the class because it is not directly referenced in the program.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks for your kind suggestion, but, the code is accessed directly, and won't run into problems like this... but thankyou for trying
With time we live, with money we spend!
Joel Holdsworth
|
|
|
|
|
Another wild guess Have you been playing around with the schema number in the IMPLEMENT_SERIAL macro? There's an MSDN article that says something about a bug relating to using a schema number 0.
Maybe you can try to switch to another schema number and see what happens.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|