Click here to Skip to main content
16,013,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmany functions to just one Pin
Steve L.1-Feb-02 11:34
Steve L.1-Feb-02 11:34 
GeneralRe: many functions to just one Pin
Ravi Bhavnani1-Feb-02 11:54
professionalRavi Bhavnani1-Feb-02 11:54 
GeneralExtended Stored Procedures Pin
RK_20001-Feb-02 9:27
RK_20001-Feb-02 9:27 
GeneralRe: further to my question Pin
RK_20001-Feb-02 11:44
RK_20001-Feb-02 11:44 
GeneralNew version of CButtonSSL Pin
Derek Lakin1-Feb-02 9:14
Derek Lakin1-Feb-02 9:14 
GeneralFont display problems in NT, 2000 but not in 9x Pin
Jason Hihn1-Feb-02 8:23
Jason Hihn1-Feb-02 8:23 
Generaltwo-dimansional array of strings Pin
hhh1-Feb-02 8:21
hhh1-Feb-02 8:21 
GeneralRe: two-dimansional array of strings Pin
Jason Hihn1-Feb-02 8:54
Jason Hihn1-Feb-02 8:54 
Well guess what... to the compiler it's just a chunk of memory. You'll have to do the math yourself. I suggest drawing a picture (a cube) and figuring out the math yourself. If you work with the linux framebuffer, it's very much the same.

If you still need help, think of what [1][0][0] means, [0][1][0] means, and [0][0][1] means. I forget wich way exactly C lays stuff out (but it is easy to find out yourself)

you'll need to malloc(xdim*ydim*length)
It's the same as a 2 dimentional array, but with one more dimention (the word length)

You can also imagine a long text string. Every 20 chars is a start of a new word. every y of them is a new x row.

I hope that helps.

Oh I almost forgot. You'll calculate something called and offset, then you can do
chunk=malloc(x*y*l);
offset=// left as an excersize for the reader Wink | ;)
chunk+offset= (address of a particular character, could be the start of a word too)
*(chunk+offset) = (the character)

printf("%c", *(chunk+offset); //char
or
printf("%s", chunk+offset); // word


GeneralRe: two-dimansional array of strings Pin
CodeGuy1-Feb-02 9:26
CodeGuy1-Feb-02 9:26 
GeneralSpeedy Net Conection Pin
Nnamdi Onyeyiri1-Feb-02 7:21
Nnamdi Onyeyiri1-Feb-02 7:21 
GeneralRe: Speedy Net Conection Pin
Joaquín M López Muñoz1-Feb-02 7:24
Joaquín M López Muñoz1-Feb-02 7:24 
GeneralRe: Speedy Net Conection Pin
Nnamdi Onyeyiri1-Feb-02 7:42
Nnamdi Onyeyiri1-Feb-02 7:42 
GeneralNew Controls in .Net Pin
Mazdak1-Feb-02 7:05
Mazdak1-Feb-02 7:05 
GeneralRe: New Controls in .Net Pin
Christopher Lord2-Feb-02 15:18
Christopher Lord2-Feb-02 15:18 
GeneralRe: New Controls in .Net Pin
Mazdak2-Feb-02 20:44
Mazdak2-Feb-02 20:44 
Generalerror : unexpected class Pin
magpierre1-Feb-02 6:41
magpierre1-Feb-02 6:41 
GeneralRe: error : unexpected class Pin
Joaquín M López Muñoz1-Feb-02 6:52
Joaquín M López Muñoz1-Feb-02 6:52 
GeneralRe: error : unexpected class Pin
magpierre1-Feb-02 7:53
magpierre1-Feb-02 7:53 
GeneralRe: error : unexpected class Pin
Joaquín M López Muñoz1-Feb-02 9:03
Joaquín M López Muñoz1-Feb-02 9:03 
GeneralLinux For Developers Pin
valikac1-Feb-02 6:43
valikac1-Feb-02 6:43 
GeneralRe: Linux For Developers Pin
#realJSOP1-Feb-02 6:48
professional#realJSOP1-Feb-02 6:48 
GeneralRe: Linux For Developers Pin
Jason Hihn1-Feb-02 9:25
Jason Hihn1-Feb-02 9:25 
GeneralRe: Linux For Developers Pin
Tim Smith1-Feb-02 9:44
Tim Smith1-Feb-02 9:44 
GeneralRe: Linux For Developers Pin
Jason Hihn1-Feb-02 10:13
Jason Hihn1-Feb-02 10:13 
GeneralRe: Linux For Developers Pin
Tim Smith1-Feb-02 10:22
Tim Smith1-Feb-02 10:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.