hi everybody,
have got the following problem:
I am using txt_create to create a text during runtime eg
TEXT *mytext = txt_create(30, 10);//create lokal text pointer
1. but how do I copy a string into the text object and using a font?
I tried:
txt_addstring --> didnt work
2. can I use flag-assignments for text objects like
SECOND PROBLEM:
since last week I ve been using visual c++ and some problem have appeared:
- does pointer autodedection mean that I dont have to dereference like ENTITY->x?
- I think I roughly understand how pointers work for numerical objects like double, int, etc, eg:
#include <iostream>
using namespace std;
double a = 4, *b;
int main()
{
cout << b;//00000000, no storage location the pointer points to
//cout << *b;//would crah because b points at no object, no storage location can be read out
cout << a;//4
b = &a;
cout << b;//now b contains the storage location of a
cout *b;//4, now I have access to the numerical value of a
}
but how does it work for self defined structs/new data types like ENTITY?
- ENTITY *myent allocates a free storage location
- but where is the "real" ENTITY (the storage location) the ENTITY pointer points at?
THANKS IN ADVANCE!!