Click here to Skip to main content
15,921,212 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: anyone have opticam API? Pin
ChaosDude12-Mar-06 19:50
ChaosDude12-Mar-06 19:50 
Questionvisual C++ software trouble Pin
ashira khera12-Mar-06 10:40
ashira khera12-Mar-06 10:40 
AnswerRe: visual C++ software trouble Pin
Saurabh.Garg12-Mar-06 15:13
Saurabh.Garg12-Mar-06 15:13 
GeneralRe: visual C++ software trouble Pin
ashira khera12-Mar-06 15:23
ashira khera12-Mar-06 15:23 
GeneralRe: visual C++ software trouble Pin
Saurabh.Garg12-Mar-06 15:39
Saurabh.Garg12-Mar-06 15:39 
AnswerRe: visual C++ software trouble Pin
Yuthav12-Mar-06 19:09
Yuthav12-Mar-06 19:09 
QuestionHow to convert Float array to char Pin
wjming12-Mar-06 10:26
wjming12-Mar-06 10:26 
AnswerRe: How to convert Float array to char Pin
chetan21018312-Mar-06 15:28
chetan21018312-Mar-06 15:28 
Hi,

I think sprintf will do the trick for your Question. I didnt try it.

#include <stdio.h>
#include <string.h>

char *DoubletoStr(char *s, double dd);

int main(void)
{
double values2[] = {34709.22, 3746.55, 23456};
char value[32];
int i;

DoubletoStr(value,values2[i]));
return 0;
}

char *DoubletoStr(char *s, double dd)
{
char *endp;

sprintf(s,"%f",dd);
for(endp = s+strlen(s); endp!=s;endp--)
{
if(*(endp-1) != '0'&& *(endp-1) != '.')
{
*endp = '\0';
break;
}
}
return s;
}

Good Luck.


Helping others satisfies you...
AnswerRe: How to convert Float array to char Pin
ChaosDude12-Mar-06 19:56
ChaosDude12-Mar-06 19:56 
Questioncan I develop a DLL including some functions from another DLL? Pin
yongwpi12-Mar-06 9:22
yongwpi12-Mar-06 9:22 
AnswerRe: can I develop a DLL including some functions from another DLL? Pin
Chris Losinger12-Mar-06 10:21
professionalChris Losinger12-Mar-06 10:21 
QuestionDSOFramer in MFC Dialog Pin
Jenleonard12-Mar-06 7:53
Jenleonard12-Mar-06 7:53 
QuestionModify text bug in a CRichEditCtrl Pin
HPitro12-Mar-06 7:05
HPitro12-Mar-06 7:05 
QuestionPacking a VC++ Project Pin
Yuthav12-Mar-06 6:51
Yuthav12-Mar-06 6:51 
AnswerRe: Packing a VC++ Project Pin
PJ Arends12-Mar-06 9:33
professionalPJ Arends12-Mar-06 9:33 
GeneralRe: Packing a VC++ Project Pin
Yuthav12-Mar-06 19:02
Yuthav12-Mar-06 19:02 
QuestionRight click on listview item display context menu Pin
pgibson00770012-Mar-06 5:42
pgibson00770012-Mar-06 5:42 
AnswerRe: Right click on listview item display context menu Pin
Hamid_RT12-Mar-06 6:10
Hamid_RT12-Mar-06 6:10 
GeneralRe: Right click on listview item display context menu Pin
pgibson00770012-Mar-06 7:15
pgibson00770012-Mar-06 7:15 
GeneralRe: Right click on listview item display context menu Pin
Hamid_RT12-Mar-06 7:20
Hamid_RT12-Mar-06 7:20 
QuestionBrowse network neighborhood Pin
RobJones12-Mar-06 5:36
RobJones12-Mar-06 5:36 
AnswerRe: Browse network neighborhood Pin
Hamid_RT12-Mar-06 6:27
Hamid_RT12-Mar-06 6:27 
GeneralRe: Browse network neighborhood Pin
RobJones12-Mar-06 8:17
RobJones12-Mar-06 8:17 
AnswerRe: Browse network neighborhood Pin
RobJones12-Mar-06 8:16
RobJones12-Mar-06 8:16 
AnswerRe: Browse network neighborhood Pin
Ryan Binns12-Mar-06 17:19
Ryan Binns12-Mar-06 17:19 

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.