Click here to Skip to main content
15,898,769 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Excel automation from a worker thread Pin
BuckBrown1-Feb-07 12:09
BuckBrown1-Feb-07 12:09 
AnswerRe: Excel automation from a worker thread Pin
Roger Stoltz1-Feb-07 11:11
Roger Stoltz1-Feb-07 11:11 
GeneralRe: Excel automation from a worker thread Pin
BuckBrown1-Feb-07 12:10
BuckBrown1-Feb-07 12:10 
QuestionCommunicating dialog boxes Pin
kitty51-Feb-07 7:57
kitty51-Feb-07 7:57 
AnswerRe: Communicating dialog boxes Pin
led mike1-Feb-07 8:19
led mike1-Feb-07 8:19 
GeneralRe: Communicating dialog boxes [modified] Pin
kitty51-Feb-07 8:30
kitty51-Feb-07 8:30 
GeneralRe: Communicating dialog boxes Pin
led mike1-Feb-07 8:41
led mike1-Feb-07 8:41 
GeneralRe: Communicating dialog boxes Pin
kitty51-Feb-07 8:50
kitty51-Feb-07 8:50 
led mike wrote:
In the first code you posted:


void commanding::load(){UpdateData (TRUE);FILE *pic, *pic1, *pic2;picViewer cam1;


that instance of picViewer is local to that function so it is not related to anything else.


oh... really?!
hmmm. ok then ummm... how would i be able to open up an instance of the picViewer dialog box in the commanding class and be able to update the bitmaps?

i've changed my commanding to:
<br />
int commanding::loadCmdGet3CamData()<br />
{<br />
	UpdateData (TRUE);<br />
<br />
	FILE *pic, *pic1, *pic2;<br />
	picViewer cam1;<br />
	pic = fopen("C:\\cv\\16bit.jp2", "rb");<br />
	pic1 = fopen("C:\\cv\\nature_50.jp2", "rb");<br />
	pic2 = fopen("C:\\cv\\8_8.jp2", "rb");<br />
	unsigned int numRead;<br />
	cam1.Create(IDD_IMAGEVIEWER,0);<br />
	cam1.EnableWindow(TRUE);<br />
	int i = 0;<br />
	while(i < 3)<br />
	{<br />
		if(i == 0)<br />
			numRead = fread(buff, sizeof(BYTE), 100000, pic);<br />
		else if(i == 1)<br />
			numRead = fread(buff, sizeof(BYTE), 100000, pic1);<br />
		else<br />
			numRead = fread(buff, sizeof(BYTE), 100000, pic2);<br />
		cam1.showPicture(buff,numRead);<br />
		//ShowPicture(buff,numRead);<br />
		i++;<br />
		Sleep(2000);<br />
	}<br />
<br />
	fclose(pic);<br />
	fclose(pic1);<br />
	fclose(pic2);<br />
}<br />

thanks,

Kitty5

GeneralRe: Communicating dialog boxes Pin
led mike1-Feb-07 9:01
led mike1-Feb-07 9:01 
GeneralRe: Communicating dialog boxes Pin
Mark Salsbery1-Feb-07 11:39
Mark Salsbery1-Feb-07 11:39 
AnswerRe: Communicating dialog boxes Pin
Hamid_RT1-Feb-07 21:20
Hamid_RT1-Feb-07 21:20 
GeneralRe: Communicating dialog boxes Pin
kitty52-Feb-07 2:33
kitty52-Feb-07 2:33 
GeneralRe: Communicating dialog boxes Pin
Hamid_RT2-Feb-07 4:32
Hamid_RT2-Feb-07 4:32 
QuestionDeclaration of CSemaphore fails Pin
BuckBrown1-Feb-07 7:57
BuckBrown1-Feb-07 7:57 
AnswerRe: Declaration of CSemaphore fails Pin
led mike1-Feb-07 8:06
led mike1-Feb-07 8:06 
GeneralRe: Declaration of CSemaphore fails Pin
BuckBrown1-Feb-07 8:21
BuckBrown1-Feb-07 8:21 
GeneralRe: Declaration of CSemaphore fails Pin
led mike1-Feb-07 8:44
led mike1-Feb-07 8:44 
GeneralRe: Declaration of CSemaphore fails Pin
BuckBrown1-Feb-07 9:32
BuckBrown1-Feb-07 9:32 
GeneralRe: Declaration of CSemaphore fails Pin
Zac Howland1-Feb-07 9:31
Zac Howland1-Feb-07 9:31 
GeneralRe: Declaration of CSemaphore fails Pin
BuckBrown1-Feb-07 12:19
BuckBrown1-Feb-07 12:19 
Questionfatal error C1083: Cannot open include file: 'X11/Xlib.h' Pin
Khoramdin1-Feb-07 6:09
Khoramdin1-Feb-07 6:09 
AnswerRe: fatal error C1083: Cannot open include file: 'X11/Xlib.h' Pin
toxcct1-Feb-07 6:17
toxcct1-Feb-07 6:17 
AnswerRe: fatal error C1083: Cannot open include file: 'X11/Xlib.h' Pin
jhwurmbach1-Feb-07 6:18
jhwurmbach1-Feb-07 6:18 
AnswerRe: fatal error C1083: Cannot open include file: 'X11/Xlib.h' Pin
Mark Salsbery1-Feb-07 7:47
Mark Salsbery1-Feb-07 7:47 
AnswerRe: fatal error C1083: Cannot open include file: 'X11/Xlib.h' Pin
Khoramdin1-Feb-07 9:28
Khoramdin1-Feb-07 9:28 

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.