How can I find out how much memory my program needs (or is using) at a given time (without using sizeof on every single varible?). I would like to display the total memory used at a given time by the program. How can I do that?
My last post was wrong...
I changed the function part to this:
Dice (int numDie, int numSides, int numAdd)
and not
Dice (int numDie = 1, int numSides = 6, int numAdd = 0)
But, I still get same error.
Ok... I inserted this at the top of the header...
int Dice(int numDie = 1, int numSides = 6, int numAdd = 0);
and changed the function to
int Dice(int numDie = 1, int numSides = 6, int numAdd = 0)
and I am still getting the same error...
How do I change it to make default values?
I have a small program that causes the "This program has performed an illegal operation and will be shut down." box to pop up everytime I run it. Also, the program doesn't show any output so I dont think it even ran. MSVC++ 6.0 does not show any errors or warnings (I have the warning...
I have a small program that causes the "This program has performed an illegal operation and will be shut down." box to pop up everytime I run it. Also, the program doesn't show any output so I dont think it even ran. MSVC++ 6.0 does not show any errors or warnings (I have the warning...
Okay, how can I read the version info in my program? I am clueless. Heres what I got so far... The prog is a Win32 Application program. The resource.rc file IS part of the workshop and seems to be setup fine. I haven't a clue how to access the version info resource yet... could someone give...
How can I reassign a string? Everytime I try to, I get a "char to *char" error (or something like that). I think its trying to tell me something about pointers, but all I want to do is to change the string's content all at once (for example, change it from "Hello World" to...
My question about strings is this:
How the heck do you make them?
I have tried everything I can think of... I am using Borland's 5.02 c++ complier.
Everything I try doesn't seem to work. Can someone show me a way to make a
simple string without getting errors galore? Thanks.
Ok, I have searched and read the posts about running a windows program using borlands c++ (I use version 5.02). The post are a little beyond me... Here is my program:
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.