Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
59% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
2
1 Commented Post
Member Avatar for MattyRobot

i have spent some time trying to install glut in code blocks and so far I haven't succeeded. i have downloaded the glut-3.7.6-bin [URL="http://www.xmission.com/~nate/glut.html"]from here[/URL] . I have looked at tutorials on where to put the files in the download ([URL="http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/#win"]like here[/URL]) but it doesn't work. :icon_question::icon_question::icon_question:

Member Avatar for Mallot
0
289
Member Avatar for bubbafunk1

this might work: [CODE] #wrapper { background: #ffffff; opacity: 0.8; filter:alpha(opacity=80); -moz-opacity:0.8; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80); -khtml-opacity: 0.8; -ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=80)”; } #wrapper * { opacity: 1; filter:alpha(opacity=100); -moz-opacity:100; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100); -khtml-opacity: 0.8; -ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=100)”; } [/CODE] the * means everything

Member Avatar for Raven Boris
0
470
Member Avatar for asadaziz

looking on msdn ([URL="http://msdn.microsoft.com/en-us/library/system.io.streamreader.readtoend.aspx"]http://msdn.microsoft.com/en-us/library/system.io.streamreader.readtoend.aspx[/URL]) StreamReader has a ReadToEnd function. is this what you were looking for?

Member Avatar for MattyRobot
0
1K
Member Avatar for Violet_82

srand sets the seed for the random number generator (it takes the number you put in and passes it through a logarithm which generates a pseudo(fake, not totaly random) set of numbers). setting it by time(), you almost never get the same seed twice and so GREATLY improves randomness.

Member Avatar for Violet_82
0
4K
Member Avatar for bensewards

OK. I tried (and failed) to keep to the same code style as the one you had. (and cleaned up with some const correctness :) ) I came up with this (included main() to show how to use) the RecursiveCopy function with no int argument checks to see if old_str …

Member Avatar for bensewards
0
747
Member Avatar for eman 22

i think it is becuase you are passing copies of the nodes to the setRightChild setleftChild functions. not references (or pointers) so instead of this [CODE]void Node::setleftChild(Node n1) { leftChild=&n1; } void Node::setRightChild(Node n2) { rightChild=&n2; }[/CODE] try [CODE]void Node::setleftChild(Node* n1) { leftChild=n1; } void Node::setRightChild(Node* n2) { rightChild=n2; } …

Member Avatar for MattyRobot
0
114
Member Avatar for Hayzam_#include

well it depends whether the fan is controlled by the computer or whether it just uses the usb power [B][U]if its just controlling the power there is a post here:[/U][/B] [URL="http://stackoverflow.com/questions/1925237/control-usb-ports-power"]http://stackoverflow.com/questions/1925237/control-usb-ports-power[/URL] [B][U]if it has a driver and or api then either use the api or[/U][/B] [URL="http://sourceforge.net/apps/trac/libusb-win32/wiki"]http://sourceforge.net/apps/trac/libusb-win32/wiki[/URL] [B][U]and here is some …

Member Avatar for Hayzam_#include
0
139
Member Avatar for jasleen12345

here is what I came up with: the problems I fixed: [LIST] [*]you were trying to delete the cptr array [B]itsself[/B]. not the things inside it, so I added a loop to do this [*]array values start at 0 so I changed some loops or you would get segmentation faults …

Member Avatar for MattyRobot
0
105
Member Avatar for hiddepolen

this is an idea I had. remove everything above 0 like you did. then convert the decimal bit to a string. then get the length of the string. [CODE] #include <iostream> #include <string> #include <sstream> int DecimalPlaces(double test) { double JustDecimals = test - (int) test; std::stringstream converter; converter<< JustDecimals; …

Member Avatar for MattyRobot
0
183
Member Avatar for MattyRobot

I am getting the error: There is no disk in the drive. Please insert a disk into drive \Device\Harddisk1\DR1. I have already read the answers of previous posts, but none of them fit to my situation. I am running code blocks from a usb stick. When I start debugging I …

Member Avatar for finito
0
120
Member Avatar for Expora
Member Avatar for MattyRobot
0
94
Member Avatar for MattyRobot

I am trying to move a project from CodeBlocks to visual c++. (it compiles fine using minGW) I am using the 2010 express version. when I compile the projectusing VC++ I get the errors below. I have done some research and it is comming from including windows.h. to test this …

0
82
Member Avatar for MattyRobot

is it possible to stretch a 3D scene in openGL? I know it is possible in glOrtho() but how would I make a 3D scene stretch. for example if I rendered a cube, in the middle of a window, and then made the window longer, instead of the cube stretching, …

Member Avatar for Sodabread
0
274
Member Avatar for MattyRobot

what would be a good way to load images to use for texture mapping in opengl? I have looked at tutorials such as nehe lesson 6 and some other resources but they all use something old and depreciated that I cant compile.

Member Avatar for Sodabread
0
321
Member Avatar for zobadof

Thats what I was trying to tell him but he wants to go straight onto graphics!!!

Member Avatar for SgtMe
0
175
Member Avatar for BobRoss

http://www.daniweb.com/forums/thread510.html maybe and i compiled it and it doesn't work for me either

Member Avatar for BobRoss
0
133
Member Avatar for MattyRobot

would there be anything wrong with making an includes.h which has all of the .h files my project needs to link to. or is it better to link to them when needed?

Member Avatar for MattyRobot
0
135
Member Avatar for MattyRobot

I have been trying to get world coordinates of the cursor position for a program by: [LIST=1] [*]getting the top and left position of the client of the window [*]getting the global position of the cursor (GetCursorPos()) [*]cursor x - client left and cursor y - client top [*]zoom x …

Member Avatar for MattyRobot
0
89
Member Avatar for MattyRobot

in openGL how can I make the left of the screen = 0 and the right to = 10 or somthing, and the top = 0 and the bottom = -10. because i dont like working with numbers only ranging from -1.0 to 1.0. i read [URL="http://www.opengl.org/resources/faq/technical/transformations.htm"]here[/URL] that the coordinate …

Member Avatar for mrnutty
0
82
Member Avatar for debasishgang7

well if you want to make guis for windows the you can use: [URL="http://www.winprog.org/tutorial/"]http://www.winprog.org/tutorial/[/URL] its quite tricky to get the hang of but its ok :)

Member Avatar for rtc1
0
105
Member Avatar for MattyRobot

I have been trying for ages to get glut working (in code blocks) and now it works... sort of. I can compile and run applications but it comes up with several warning: ignoring #pragma comment errors in glut.h. I got the glut.h file from [URL="http://www.transmissionzero.co.uk/computing/using-glut-with-mingw/"]here[/URL]. because all other downloads of …

Member Avatar for MattyRobot
0
134
Member Avatar for MattyRobot
Member Avatar for mrnutty
0
131
Member Avatar for leadenwinter
Member Avatar for MattyRobot
0
216
Member Avatar for anuraggupta16

I compiled it with minGW in code blocks and it worked fine (after I added return; and took main() out of a class) so maybe its something to do with the compiler/ ide your using

Member Avatar for MattyRobot
0
119
Member Avatar for MattyRobot

I have recently learnt the basics of c++ but I want to advance to making proper GUI's (and games) but I don't know what to use. I think the two most popular libraries are OpenGL and Direct3d but I'm not sure which one to use. could you guide me in …

Member Avatar for MattyRobot
0
118
Member Avatar for MattyRobot

how can I use a function inside an object? (the code is too long to put here but here's a replica) [code=c++] class example { public: example(); ~example(); void doSomthing() { afunction(); } } void afunction() { //do more things } [/code] in this example i wouldnt [B][U]NEED[/U][/B] to use …

Member Avatar for rughead
0
143