Click here to Skip to main content
15,923,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 3DES/ECB Mode Implementation Pin
Alexander M.,1-Apr-04 22:57
Alexander M.,1-Apr-04 22:57 
GeneralMicrosoft SDK Pin
John R. Shaw1-Apr-04 12:11
John R. Shaw1-Apr-04 12:11 
GeneralRe: Microsoft SDK Pin
Harold Bamford1-Apr-04 12:18
Harold Bamford1-Apr-04 12:18 
GeneralRe: Microsoft SDK Pin
John R. Shaw1-Apr-04 12:27
John R. Shaw1-Apr-04 12:27 
GeneralRe: Microsoft SDK Pin
Gary R. Wheeler1-Apr-04 14:02
Gary R. Wheeler1-Apr-04 14:02 
GeneralCString Pin
Oriented1-Apr-04 11:34
Oriented1-Apr-04 11:34 
GeneralRe: CString Pin
John R. Shaw1-Apr-04 12:23
John R. Shaw1-Apr-04 12:23 
GeneralRe: CString Pin
Cambalindo1-Apr-04 12:29
Cambalindo1-Apr-04 12:29 
Hi, I create this function to convert from double to CString.

var is the number to be converted
ndec Number of digits after decimal point

CString do2CStr(double var,int ndec)<br />
{<br />
	int  decimal, sign;<br />
	char *buffer;<br />
	buffer = _fcvt( var, ndec ,&decimal, &sign );<br />
	int len=strlen(buffer);<br />
	CString number(buffer);	<br />
	CString valor;<br />
	if(sign)//negative number<br />
		valor="-"+number.Left(decimal)+"."+number.Right(len-decimal);<br />
	else<br />
		valor=number.Left(decimal)+"."+number.Right(len-decimal);<br />
	return valor;<br />
<br />
}


Daniel Cespedes

"There are 10 types of people, those who understand binary and those who do not"
"Santa Cruz de la Sierra Paraiso Terrenal!"

daniel.cespedes@ieee.org
GeneralRe: CString Pin
Christian Graus1-Apr-04 14:09
protectorChristian Graus1-Apr-04 14:09 
GeneralRe: CString Pin
akirachen1-Apr-04 21:12
akirachen1-Apr-04 21:12 
Generalcrystal reports - showing report in VC .Net Pin
BlackDice1-Apr-04 11:06
BlackDice1-Apr-04 11:06 
GeneralWindows 2000 and 2003 editions Pin
orcun colak1-Apr-04 9:49
orcun colak1-Apr-04 9:49 
GeneralRe: Windows 2000 and 2003 editions Pin
Ravi Bhavnani1-Apr-04 9:51
professionalRavi Bhavnani1-Apr-04 9:51 
Generala vector question Pin
Kash1-Apr-04 9:42
Kash1-Apr-04 9:42 
GeneralRe: a vector question Pin
Jeffrey Walton1-Apr-04 12:42
Jeffrey Walton1-Apr-04 12:42 
GeneralRegular Expressions - e-mail validation Pin
BlackDice1-Apr-04 9:27
BlackDice1-Apr-04 9:27 
GeneralRe: Regular Expressions - e-mail validation Pin
David Crow1-Apr-04 9:45
David Crow1-Apr-04 9:45 
GeneralRe: Regular Expressions - e-mail validation Pin
BlackDice1-Apr-04 10:14
BlackDice1-Apr-04 10:14 
GeneralCreating a DLL Pin
schnee2k31-Apr-04 9:25
schnee2k31-Apr-04 9:25 
GeneralRe: Creating a DLL Pin
Alexander M.,1-Apr-04 22:59
Alexander M.,1-Apr-04 22:59 
GeneralDrawing a transparent bitmap Pin
the one dono1-Apr-04 9:10
the one dono1-Apr-04 9:10 
GeneralRe: Drawing a transparent bitmap Pin
Ravi Bhavnani1-Apr-04 9:44
professionalRavi Bhavnani1-Apr-04 9:44 
GeneralRe: Drawing a transparent bitmap Pin
John R. Shaw1-Apr-04 9:51
John R. Shaw1-Apr-04 9:51 
GeneralCFormView without dyncreate Pin
Adam Preble1-Apr-04 9:05
Adam Preble1-Apr-04 9:05 
GeneralAccess violations Pin
packetlos1-Apr-04 8:20
packetlos1-Apr-04 8:20 

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.