Click here to Skip to main content
15,924,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to make a fullscreen window in SDI or Dialogbased application Pin
u990105@giki.edu.pk1-Apr-03 2:28
u990105@giki.edu.pk1-Apr-03 2:28 
AnswerRe: How to make a fullscreen window in SDI or Dialogbased application Pin
Joan M1-Apr-03 2:35
professionalJoan M1-Apr-03 2:35 
GeneralEasy and fast way of detecting if Outlook is installed Pin
Braulio Dez1-Apr-03 2:12
Braulio Dez1-Apr-03 2:12 
GeneralRe: Easy and fast way of detecting if Outlook is installed Pin
Daniel Strigl1-Apr-03 2:58
Daniel Strigl1-Apr-03 2:58 
General(Previously) undocumented Win32 APIs Pin
Ravi Bhavnani1-Apr-03 2:02
professionalRavi Bhavnani1-Apr-03 2:02 
GeneralRe: (Previously) undocumented Win32 APIs Pin
User 98851-Apr-03 6:55
User 98851-Apr-03 6:55 
GeneralRe: (Previously) undocumented Win32 APIs Pin
Ryan Binns1-Apr-03 12:56
Ryan Binns1-Apr-03 12:56 
GeneralTraduce from binary to decimal Pin
calgonit1-Apr-03 2:00
calgonit1-Apr-03 2:00 
I need to do the same with Byte (VT_UI1), Short(VT_I2), float(VT_R4), and other VARIANT that what I have made with long (VT_I4).

How I can do it?

Thanks.

A part of the code:

for (long k=0;k<TOTALNUMPARAM;k++)<br />
	{<br />
		SafeArrayGetElement (PVAVLISTAVALORESPARAMETROS.parray,&k,&item);<br />
		switch (item.vt)<br />
		{<br />
		case VT_UI1:<br />
			break;<br />
		case VT_I2:<br />
			break;<br />
		case VT_I4:	// long<br />
			// The actual input's k-th parameter is of long type. It's traduced from<br />
			// binary to decimal assuming the representation is in C2 and with 32 bits.<br />
			item.lVal = 0;<br />
			if (input[parameter_start] == 0)<br />
			{<br />
				// It's positive.<br />
				for (int l=parameter_start+1;l<(parameter_start+32);l++)<br />
					item.lVal += input[l]*(int)pow(2,(parameter_start+32)-l-1);<br />
			}<br />
			else<br />
			{<br />
				// It's negative.<br />
				for (int l=parameter_start+1;l<(parameter_start+32);l++)<br />
					item.lVal += ((input[l]+1)%2)*(int)pow(2,(parameter_start+32)-l-1);<br />
				item.lVal++;<br />
				item.lVal *= (-1);<br />
			}<br />
			// Updating the k-th parameter and local variables.<br />
			parameter_start += 32;<br />
			SafeArrayPutElement (PVAVLISTAVALORESPARAMETROS.parray,&k,&item);<br />
			VariantInit(&item);<br />
			break;<br />
		case VT_R4:<br />
			break;<br />
                //Rest of switch with the other VARIANT

GeneralHebrew and ResourceView on VC6 Pin
JolyGod1-Apr-03 1:21
JolyGod1-Apr-03 1:21 
GeneralDirectDraw question : about Overlay Pin
Raphael Kindt1-Apr-03 1:18
Raphael Kindt1-Apr-03 1:18 
GeneralRe: DirectDraw question : about Overlay Pin
Daniel Strigl1-Apr-03 2:46
Daniel Strigl1-Apr-03 2:46 
GeneralRe: DirectDraw question : about Overlay Pin
Raphael Kindt1-Apr-03 4:19
Raphael Kindt1-Apr-03 4:19 
QuestionHow to maximize a child window in a MDI project Pin
uNsignedINT31-Mar-03 23:23
uNsignedINT31-Mar-03 23:23 
AnswerRe: How to maximize a child window in a MDI project Pin
tomiczek31-Mar-03 23:44
tomiczek31-Mar-03 23:44 
GeneralRe: How to maximize a child window in a MDI project Pin
uNsignedINT2-Apr-03 5:52
uNsignedINT2-Apr-03 5:52 
AnswerRe: How to maximize a child window in a MDI project Pin
Alin Negru31-Mar-03 23:57
Alin Negru31-Mar-03 23:57 
Generalsplitter window Pin
sameer_ba31-Mar-03 22:56
sameer_ba31-Mar-03 22:56 
GeneralTitle Bar Buttons Pin
Jim Busse31-Mar-03 22:36
Jim Busse31-Mar-03 22:36 
Generalcheck whether a particular directory exists Pin
naradaji31-Mar-03 22:35
naradaji31-Mar-03 22:35 
GeneralRe: check whether a particular directory exists Pin
SteveKing31-Mar-03 22:50
SteveKing31-Mar-03 22:50 
GeneralRe: check whether a particular directory exists Pin
naradaji31-Mar-03 23:10
naradaji31-Mar-03 23:10 
Questiondialog window question? Pin
Anonymous31-Mar-03 22:17
Anonymous31-Mar-03 22:17 
AnswerRe: dialog window question? Pin
Chris Losinger1-Apr-03 3:33
professionalChris Losinger1-Apr-03 3:33 
GeneralWindows Media Player and how to draw lines Pin
darksidex31-Mar-03 21:40
darksidex31-Mar-03 21:40 
Generaldetect click on link Pin
jeremysay31-Mar-03 21:31
jeremysay31-Mar-03 21:31 

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.