I'm basing this on debugging where i can see the value in "File" as "C:\test.tga" After my image is loaded to File in DevIL i can hover when debugging in MSVC over either the global "QString File;"...
Type: Posts; User: Freestyler
I'm basing this on debugging where i can see the value in "File" as "C:\test.tga" After my image is loaded to File in DevIL i can hover when debugging in MSVC over either the global "QString File;"...
Hi,
I have another question in follow up.. I have a Qt GLMain subclass and a MainWindow subclass in my program,
Whenever i call my class object, like mentioned previously. Eg. GLMain.cpp
...
Yeah, I knew somebody would observe that I only had a few mins to test today so i just was curious about getting it compiled.. But thanks Elysia for the all of the useful info, as it was all quite...
Thanks, I knew i was close as i can generally feel syntax causing me grief on most of this stuff.
It did however allow me to think more conceptually about classes and OOP in general. Personally...
Thanks for the reply, So how does one create the "Car" object from the blueprint, so i can go "broom broom" globally.
Any examples around? As i will have to do this a lot in my code so i cannot...
Any other hints, I did try doing similar at 2am last night for example.
GLMain devil;
devil.DevIL();
I would of thought even "GLMain.DevIL();" would work why not?
Why only from it's type?...
Hi, I'm writing a little application using Qt, and OGL on Vista x64. The application currently works, however I'm trying to learn more about C++ and this is my first project using Classes.
I'm...
Thankyou! (Damn Syntax) I did try that as that's what i thought you meant by storing it, VS throughout an error because i stupidly wrote:
nValue + 4.9 = nValue2
Compiler Error told me...
Yes I understood what you said, and i thought my updated code was attempting to remedy this, but it didn't.. After reading white pages of babel all day, I'm afraid how to store the result seems...
Yeah, thanks for the reply. I thought of both these things just after i posted. And the answer makes sense. So to fix this, do i simply declare another variable to store it? This is what i tried...
Hi, I have recently started to read some C++ books, and i came across this in the "C++ for dummies"(obviously apt for myself) the following example on Mixed Mode Expressions.
// in the following...
Thanks Octaves must of also been copied and pasted..
Anyway here is revised code (I have tried to simplify) but i seem to be getting further away.. It would be nice to know the code works in the...
Thanks for the explanation of C99, that is the main issue the stopped me from creating my own... So i will try again.
It seems all code examples are in C++ these days, It would be nice to see...
I should of pointed out more clearly. The code above is my beginning attempt it is missing mainly the loop of writing the noise to an array, and the actual GL drawing function. (currently it's...
I'm wondering if a kind soul, has the source-code to this tutorial.? http://www.gamedev.net/reference/articles/article2085.asp
I'm getting a few errors, (something about C99 standards), when...
Sorry i'm a newbie,
I made an effort to post what i had because otherwise i'm accussed on this forum of expecting others to write code for me.
So i made the effort to post the working compiled C ...
Not much i can do about that....
It's likely the most readable C, i can read....
It should compile fine BTW....
(Feel free to rewrite it neater if you can)
In that case, maybe try to forget my...
Am i posting in the correct place?
It simply reads a file as binary and gives me the decimal
output (as i need for another program i'm making)
I just need it to add a comma and print to a...
Hey peoples...
This is a little program i use frequently..
But i need it to add further function.
At the moment, it prints the correct numbers
to a console window.
But XPPro ........s itself...
Doh!
No that works fine now, thanks again everyone....
I'd kept an unintentional remove(myfile) earlier in my code..
Thanks again.....
remove("Doiv");
Does indeed work, (thankyou)
It was the remove(myfile); that would sometimes cause the warning....
What is the fastest way to make sure i only delete the file
after it's...
I just tried it again, and it compiles without problem..
as a commandline .exe, But does not give the same error.....
Yet the test object is still not deleted.... So it just ignores it.
If i...
FILE *myscene;
myscene = fopen("Doiv","wb");
fwrite(Scene, 1, 200, myscene);
fclose(myscene);
How does one go about removing/deleting the file i create..
I believe Remove is the option......
Okay, so i just remove the leading zero's from the 8 and it works as expected. So thanks again.
EDIT -DOH, worked it out.