Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWeb Browser Control Pin
Steven M Hunt23-Mar-03 16:02
Steven M Hunt23-Mar-03 16:02 
GeneralRe: Web Browser Control Pin
Neville Franks23-Mar-03 23:27
Neville Franks23-Mar-03 23:27 
Generalhelp with Dynamic allocation in C. Pin
mnjobes23-Mar-03 14:55
mnjobes23-Mar-03 14:55 
GeneralRe: help with Dynamic allocation in C. Pin
Taka Muraoka23-Mar-03 15:11
Taka Muraoka23-Mar-03 15:11 
GeneralRe: help with Dynamic allocation in C. Pin
mnjobes23-Mar-03 19:09
mnjobes23-Mar-03 19:09 
GeneralRe: help with Dynamic allocation in C. Pin
Taka Muraoka23-Mar-03 19:16
Taka Muraoka23-Mar-03 19:16 
GeneralRe: help with Dynamic allocation in C. Pin
mnjobes26-Mar-03 20:32
mnjobes26-Mar-03 20:32 
GeneralRe: help with Dynamic allocation in C. Pin
Taka Muraoka26-Mar-03 21:10
Taka Muraoka26-Mar-03 21:10 
If you're not using the STL, the easiest way is to define a 1-D array and manually convert the 2-D co-ordinates to 1-D:

<br />
// initialize the array<br />
int width=10 ;<br />
int height=20 ;<br />
char* pArray = new char[ width * height ] ; <br />
<br />
// access a particular element<br />
int x=5 ;<br />
int y=2 <br />
char ch = pArray[ width*x + y ] ; <br />




You should save yourself and your company years of grief by shooting yourself through the head immediately. Believe me, in the long run it'll turn out better for everyone. - Tyto (at arstechnica)

Awasu 1.0[^]: A free RSS reader with support for Code Project.

GeneralChanging the file extension for documents in VC7 Pin
Matt Gates23-Mar-03 14:21
Matt Gates23-Mar-03 14:21 
GeneralRe: Changing the file extension for documents in VC7 Pin
Nish Nishant23-Mar-03 20:00
sitebuilderNish Nishant23-Mar-03 20:00 
QuestionEmulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 12:45
Ambit23-Mar-03 12:45 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Taka Muraoka23-Mar-03 12:51
Taka Muraoka23-Mar-03 12:51 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 14:29
Ambit23-Mar-03 14:29 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Taka Muraoka23-Mar-03 15:28
Taka Muraoka23-Mar-03 15:28 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit24-Mar-03 2:30
Ambit24-Mar-03 2:30 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Stefan Pedersen23-Mar-03 12:52
Stefan Pedersen23-Mar-03 12:52 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 14:47
Ambit23-Mar-03 14:47 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Stefan Pedersen23-Mar-03 23:36
Stefan Pedersen23-Mar-03 23:36 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Dave Bryant23-Mar-03 13:52
Dave Bryant23-Mar-03 13:52 
GeneralRe: Emulating Win32 on Windows 98/Me? Pin
Ambit23-Mar-03 14:32
Ambit23-Mar-03 14:32 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
Navin23-Mar-03 16:42
Navin23-Mar-03 16:42 
AnswerRe: Emulating Win32 on Windows 98/Me? Pin
r i s h a b h s23-Mar-03 19:20
r i s h a b h s23-Mar-03 19:20 
GeneralTrying to create context-sensitive help with VC++ Pin
trimtrom23-Mar-03 11:53
trimtrom23-Mar-03 11:53 
GeneralAnnoying fstream problem!! Pin
Rickard Andersson2023-Mar-03 10:29
Rickard Andersson2023-Mar-03 10:29 
GeneralRe: Annoying fstream problem!! Pin
Christian Graus23-Mar-03 10:34
protectorChristian Graus23-Mar-03 10:34 

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.