Click here to Skip to main content
15,908,834 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Clipboard Question Pin
Nitron20-Nov-02 8:13
Nitron20-Nov-02 8:13 
GeneralRe: Clipboard Question Pin
User 988520-Nov-02 8:53
User 988520-Nov-02 8:53 
GeneralMemory Problems!!! Pin
Paddy20-Nov-02 5:04
Paddy20-Nov-02 5:04 
GeneralRe: Memory Problems!!! Pin
Rickard Andersson2020-Nov-02 5:11
Rickard Andersson2020-Nov-02 5:11 
GeneralRe: Memory Problems!!! Pin
Paddy20-Nov-02 6:43
Paddy20-Nov-02 6:43 
GeneralRe: Memory Problems!!! Pin
Nitron20-Nov-02 5:11
Nitron20-Nov-02 5:11 
GeneralRe: Memory Problems!!! Pin
Paddy20-Nov-02 6:44
Paddy20-Nov-02 6:44 
GeneralRe: Memory Problems!!! Pin
Nitron20-Nov-02 6:52
Nitron20-Nov-02 6:52 
Try:

void function3 (HWND hwnd, <code>double& a[400]</code>, int iLength)
{
HDC hdc;
PAINTSTRUCT ps;
int i <code>= 0</code>;

hdc = GetDC(hwnd);

Rectangle(hdc, 0, 0, 400, 256);

MoveToEx(hdc, 0, 256, NULL);

for (i=1; i< 400; <code>i++</code>) <code>// <-- why start @ i=1 and not 0??</code>
{
<code>//int p = (int)a[i];</code>
   <code>LineTo(hdc, i, (255 - static_cast<int>(a[i]));</code>
}

EndPaint (hwnd, &ps) ;
}


It may not solve all the memory issues, but may speed you up some and maybe ease it a little.

- Nitron


"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
GeneralRe: Memory Problems!!! Pin
Paddy20-Nov-02 8:28
Paddy20-Nov-02 8:28 
GeneralRe: Memory Problems!!! Pin
Ravi Bhavnani20-Nov-02 9:23
professionalRavi Bhavnani20-Nov-02 9:23 
GeneralPropertis Window Pin
ivexx20-Nov-02 4:27
sussivexx20-Nov-02 4:27 
GeneralMessage handler function being called multiple times Pin
Mohit Khanna20-Nov-02 3:55
Mohit Khanna20-Nov-02 3:55 
GeneralRe: Message handler function being called multiple times Pin
Alois Kraus20-Nov-02 4:17
Alois Kraus20-Nov-02 4:17 
GeneralRe: Message handler function being called multiple times Pin
Mohit Khanna20-Nov-02 18:29
Mohit Khanna20-Nov-02 18:29 
GeneralShellExecute w/ unknown filename parameter Pin
kubert20-Nov-02 3:25
kubert20-Nov-02 3:25 
GeneralRe: ShellExecute w/ unknown filename parameter Pin
Simon.W20-Nov-02 3:38
Simon.W20-Nov-02 3:38 
GeneralGetting float by reference- low performance Pin
Member 887120-Nov-02 3:02
Member 887120-Nov-02 3:02 
GeneralRe: Getting float by reference- low performance Pin
Simon.W20-Nov-02 3:17
Simon.W20-Nov-02 3:17 
GeneralRe: Getting float by reference- low performance Pin
User 988520-Nov-02 8:56
User 988520-Nov-02 8:56 
GeneralRe: Getting float by reference- low performance Pin
User 988520-Nov-02 8:57
User 988520-Nov-02 8:57 
Generalaccessing view class object from another class Pin
B4u20-Nov-02 2:04
B4u20-Nov-02 2:04 
GeneralRe: accessing view class object from another class Pin
KaЯl20-Nov-02 2:19
KaЯl20-Nov-02 2:19 
GeneralRe: accessing view class object from another class Pin
KarstenK20-Nov-02 2:47
mveKarstenK20-Nov-02 2:47 
GeneralRe: accessing view class object from another class Pin
Simon.W20-Nov-02 3:11
Simon.W20-Nov-02 3:11 
GeneralRe: accessing view class object from another class Pin
dan o20-Nov-02 5:50
dan o20-Nov-02 5:50 

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.