awww... my bad...
that solves the problem completely...
thank you!!!
Type: Posts; User: what3v3r
awww... my bad...
that solves the problem completely...
thank you!!!
Hi guys,
can you shed some light on my problem?
I'm try to study (again) win32 programming and i want to do is to show a bitmap image. i'm using LoadBitmap and it compiles but when i run no...
ahh I see what is wrong... thanks!
Hi guys,
I'm hoping you can help me with my problem. I'm using Visual C++ 2008 and i'm having _BLOCK_TYPE_IS_VALID Debug Assertion Failed! problem when i try to delete this array:
if i...
@Ken Fitlike
Thank you for suggesting that i should convert the number into string.
Anyway i have solve the problem by using SendDlgItemMessage(...) instead. It seems it needs to know the...
no it doesn't.
will it should have a return value of the selected index? it only returns nothing in my case...
How do you get the index of the chosen item in the combo box...
if( HIWORD(wParam)==CBN_SELCHANGE)
{
int index = SendMessage( hwnd, CB_GETCURSEL, (WPARAM) wParam, (LPARAM) lParam ); ...
I tried to find an answer on google but no luck..
considering this code...
#include <iostream>
using namespace std;
class A
that can be a possibility, thanks!!
I'm trying to learn member templates on this site..
http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=263
http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=263
this...
just an idea... :D
can i use an unallocated memory, or a random memory address, cast what3v3r values it has as an integer and use it as a random number. provided that it will not change it in...
ahhhhh! Thank you i got it now! :D
thanks!
but i've tried your suggestions( moving things around, adding classes, adding static variables after or before...) it still have the same output.
I'm still confused...
if i am...
#include <iostream>
using namespace std;
static int i;
class x {
int i;
public:
x() { cout << "In HERE" << endl; }
int geti() { return i; }
@John_
even i am not sure of the value of 4 but from what i know it returns the size of the pointer. not the one it points to. i know that pointers also occupies its own memory address so...
@joni,
ok there is no information, but how can i find the size of the array which the pointer points to?
or really, it can't be done... :D
i just found out that this is not equal
...
@joni,
ok there is no information, but how can i find the size of the array which the pointer points to?
or really, it can't be done... :D
i just found out that this is not equal
...
@joni
unfortunately i will only work when the character pointer has values. i need is to know the size of the character array so i could determine the maximum number of character that i could place...
char x[90];
std::cout << sizeof(x); //will result to 90 the size of x
@7stud
lol. what if a function has an argument of pointer to a char and i need to determine the size of this char. i...
how would i know the size of a character array created on heap...
char * x = new char[90];
std::cout << sizeof(x); //returns 4 assume the size of pointer
...
Ok thank you. i'll try adding a copy constructor that takes A object as an argument...
ok...
let's add something on the sample code:
class A{
//ctor
//dtor
//cctor
sorry, but what do you mean?
this is bothering me for a while...
what i want to achieve is that the same instance of the inherited class will have the same value of the parent class like so...
class A{
//ctor
...
@jwenting
don't you have trouble finding help especially for borland specific problems??