Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WIll VC++ run on Linux ? Pin
Ylno21-Jun-07 10:29
Ylno21-Jun-07 10:29 
GeneralRe: WIll VC++ run on Linux ? Pin
David Crow21-Jun-07 10:33
David Crow21-Jun-07 10:33 
GeneralRe: WIll VC++ run on Linux ? Pin
Ylno21-Jun-07 10:38
Ylno21-Jun-07 10:38 
GeneralRe: WIll VC++ run on Linux ? Pin
markkuk21-Jun-07 21:36
markkuk21-Jun-07 21:36 
GeneralRe: WIll VC++ run on Linux ? Pin
anzhiguoccc21-Jun-07 17:50
anzhiguoccc21-Jun-07 17:50 
QuestionProblem with painting and global varibles Pin
simoncoul21-Jun-07 9:33
simoncoul21-Jun-07 9:33 
QuestionRe: Problem with painting and global varibles Pin
Mark Salsbery21-Jun-07 9:39
Mark Salsbery21-Jun-07 9:39 
AnswerRe: Problem with painting and global varibles Pin
simoncoul21-Jun-07 9:56
simoncoul21-Jun-07 9:56 
No they are initilized after the WM_PAINT. The code crashes when I access the arrays for the second time to paint, If I comment out the paint code the program will just fine. The code looks like this where is crashes, where x_prime2 and Ey_x2 are the arrays
for(int i=0; i<=999; i++){	
	x = (30+scale2*x_prime2[i]);
	y = (scale1*Ey_x2[i].Real());
	if(i == 0){		
		dc.MoveTo(int(x+min_1*(-1)*scale2), int(y*(-1)+640));
	}
	else{	
		dc.LineTo(int(x+min_1*(-1)*scale2), int(y*(-1)+640));
	}
}

And I initilize them like this

#include "stdafx.h"
#include <math.h>
#include "complex.h"
#include <complex>

int Nglobal;
int *layerglobal = new int [100];
double *thickglobal = new double [100];
Complex *Ey_z_C2=new Complex [1000];//Electrical field in the ridge area in growth direction
Complex *Ey_z_L2=new Complex [1000];//Electrical field in the shoulder area in the growth direction
Complex *Ey_x2= new Complex [1000]; // Electrical field in the transverse direction
Complex *z_prime2=new Complex [1000];			
double *x_prime2=new double [1000];

GeneralRe: Problem with painting and global varibles Pin
Mark Salsbery21-Jun-07 10:24
Mark Salsbery21-Jun-07 10:24 
QuestionRe: Problem with painting and global varibles Pin
Mark Salsbery21-Jun-07 10:26
Mark Salsbery21-Jun-07 10:26 
AnswerRe: Problem with painting and global varibles Pin
simoncoul22-Jun-07 2:40
simoncoul22-Jun-07 2:40 
GeneralRe: Problem with painting and global varibles Pin
Mark Salsbery22-Jun-07 4:35
Mark Salsbery22-Jun-07 4:35 
GeneralRe: Problem with painting and global varibles Pin
simoncoul22-Jun-07 8:47
simoncoul22-Jun-07 8:47 
QuestionAccessing classes/functions in .dll added as reference Pin
lechium12121-Jun-07 8:04
lechium12121-Jun-07 8:04 
AnswerRe: Accessing classes/functions in .dll added as reference Pin
lechium12121-Jun-07 13:00
lechium12121-Jun-07 13:00 
QuestionMonth Calendar in VC++ 6.0 Pin
der Papst21-Jun-07 7:37
der Papst21-Jun-07 7:37 
QuestionRe: Month Calendar in VC++ 6.0 Pin
Mark Salsbery21-Jun-07 8:09
Mark Salsbery21-Jun-07 8:09 
AnswerRe: Month Calendar in VC++ 6.0 [modified] Pin
der Papst21-Jun-07 8:14
der Papst21-Jun-07 8:14 
GeneralRe: Month Calendar in VC++ 6.0 [modified] Pin
Mark Salsbery21-Jun-07 8:37
Mark Salsbery21-Jun-07 8:37 
GeneralRe: Month Calendar in VC++ 6.0 Pin
der Papst21-Jun-07 8:50
der Papst21-Jun-07 8:50 
GeneralRe: Month Calendar in VC++ 6.0 Pin
Mark Salsbery21-Jun-07 8:53
Mark Salsbery21-Jun-07 8:53 
GeneralRe: Month Calendar in VC++ 6.0 Pin
der Papst21-Jun-07 9:25
der Papst21-Jun-07 9:25 
GeneralRe: Month Calendar in VC++ 6.0 Pin
Mark Salsbery21-Jun-07 9:36
Mark Salsbery21-Jun-07 9:36 
QuestionGetting Visible SysListView Columns Pin
Abhijeet Pathak21-Jun-07 5:36
Abhijeet Pathak21-Jun-07 5:36 
QuestionRe: Getting Visible SysListView Columns Pin
David Crow21-Jun-07 6:13
David Crow21-Jun-07 6:13 

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.