Click here to Skip to main content
15,911,524 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading data from a csv file format and displaying in excel frmat Pin
cyber-drugs4-Nov-08 3:38
cyber-drugs4-Nov-08 3:38 
AnswerRe: Reading data from a csv file format and displaying in excel frmat Pin
sashoalm4-Nov-08 3:43
sashoalm4-Nov-08 3:43 
AnswerRe: Reading data from a csv file format and displaying in excel frmat Pin
David Crow4-Nov-08 4:27
David Crow4-Nov-08 4:27 
QuestionSend Text Message through a modem using AT commands Pin
brucewayn4-Nov-08 2:27
brucewayn4-Nov-08 2:27 
QuestionRe: Send Text Message through a modem using AT commands Pin
CPallini4-Nov-08 3:17
mveCPallini4-Nov-08 3:17 
AnswerRe: Send Text Message through a modem using AT commands Pin
SandipG 4-Nov-08 4:00
SandipG 4-Nov-08 4:00 
QuestionImplementation of Proxy Server in C++ or C# Pin
Andy Rama4-Nov-08 2:09
Andy Rama4-Nov-08 2:09 
AnswerRe: Implementation of Proxy Server in C++ or C# PinPopular
CPallini4-Nov-08 2:14
mveCPallini4-Nov-08 2:14 
QuestionRe: Implementation of Proxy Server in C++ or C# Pin
Andy Rama4-Nov-08 20:16
Andy Rama4-Nov-08 20:16 
AnswerRe: Implementation of Proxy Server in C++ or C# Pin
CPallini4-Nov-08 21:42
mveCPallini4-Nov-08 21:42 
QuestionNT Services (ATL Com AppWizard - ServerType:Service(exe) ) Pin
Taruni4-Nov-08 0:51
Taruni4-Nov-08 0:51 
AnswerRe: NT Services (ATL Com AppWizard - ServerType:Service(exe) ) Pin
Roger Stoltz4-Nov-08 1:25
Roger Stoltz4-Nov-08 1:25 
Questionmodeless property sheet Pin
Member 46556854-Nov-08 0:47
Member 46556854-Nov-08 0:47 
AnswerRe: modeless property sheet Pin
Nishad S4-Nov-08 1:37
Nishad S4-Nov-08 1:37 
GeneralRe: modeless property sheet Pin
Member 46556854-Nov-08 2:04
Member 46556854-Nov-08 2:04 
GeneralRe: modeless property sheet Pin
Nishad S4-Nov-08 2:11
Nishad S4-Nov-08 2:11 
GeneralRe: modeless property sheet Pin
Member 46556854-Nov-08 2:20
Member 46556854-Nov-08 2:20 
QuestionUsing CWebBrowser2 control with CString? Pin
bosfan4-Nov-08 0:40
bosfan4-Nov-08 0:40 
AnswerRe: Using CWebBrowser2 control with CString? Pin
Varghese Paul M4-Nov-08 0:53
Varghese Paul M4-Nov-08 0:53 
GeneralRe: Using CWebBrowser2 control with CString? Pin
bosfan4-Nov-08 1:18
bosfan4-Nov-08 1:18 
AnswerRe: Using CWebBrowser2 control with CString? Pin
Rajkumar R4-Nov-08 2:19
Rajkumar R4-Nov-08 2:19 
GeneralRe: Using CWebBrowser2 control with CString? Pin
bosfan4-Nov-08 4:10
bosfan4-Nov-08 4:10 
GeneralRe: Using CWebBrowser2 control with CString? Pin
bosfan4-Nov-08 23:43
bosfan4-Nov-08 23:43 
GeneralSOLVED:Re: Using CWebBrowser2 control with CString? Pin
bosfan5-Nov-08 1:54
bosfan5-Nov-08 1:54 
QuestionHow to avoid the space in character array using C Pin
Murugan k4-Nov-08 0:08
Murugan k4-Nov-08 0:08 
Hi,

struct Boxinfo
{
int userid;
char username[255];
};

if ((Boxinfo_ptr =(struct Boxinfo *) malloc(sizeof(struct Boxinfo))) == 0)
{
exit(1);
}

EXEC SQL FETCH customerinfo INTO: Boxinfo_ptr;

cout<<Boxinfo_ptr->userid;
cout<<Boxinfo_ptr->username;



here i have fetch the record from database two field then load to struct object Boxinfo_ptr no problem. also successfully i have got the value of userid and username .

My problem is Boxinfo_ptr->username is given the extra space .
that is suppose charter is "hello" for cout<<Boxinfo_ptr->username this output is "hello " it is simple print hello+200 space;
so how to avoid 200 space.

example:

input:
userid=100;
username="hello";

output:
userid=100;
username="hello "

How to avoid space for username char array.

please replay me as soon as possible
Thanks

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.