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

C / C++ / MFC

 
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
AnswerRe: How to avoid the space in character array using C Pin
Varghese Paul M4-Nov-08 0:48
Varghese Paul M4-Nov-08 0:48 
GeneralRe: How to avoid the space in character array using C Pin
mohindar_kks4-Nov-08 1:15
mohindar_kks4-Nov-08 1:15 
GeneralRe: How to avoid the space in character array using C Pin
Murugan k4-Nov-08 1:56
Murugan k4-Nov-08 1:56 
GeneralRe: How to avoid the space in character array using C Pin
Bram van Kampen4-Nov-08 11:36
Bram van Kampen4-Nov-08 11:36 
QuestionOpen word document on clicking menu Pin
shir_k3-Nov-08 23:34
shir_k3-Nov-08 23:34 
AnswerRe: Open word document on clicking menu Pin
enhzflep4-Nov-08 0:01
enhzflep4-Nov-08 0:01 
GeneralRe: Open word document on clicking menu Pin
shir_k4-Nov-08 0:17
shir_k4-Nov-08 0:17 
GeneralRe: Open word document on clicking menu [modified] Pin
enhzflep4-Nov-08 0:23
enhzflep4-Nov-08 0:23 
GeneralRe: Open word document on clicking menu Pin
shir_k4-Nov-08 0:31
shir_k4-Nov-08 0:31 
GeneralRe: Open word document on clicking menu Pin
enhzflep4-Nov-08 0:57
enhzflep4-Nov-08 0:57 
GeneralRe: Open word document on clicking menu Pin
shir_k4-Nov-08 2:09
shir_k4-Nov-08 2:09 
GeneralRe: Open word document on clicking menu Pin
enhzflep4-Nov-08 2:13
enhzflep4-Nov-08 2:13 
QuestionMemory Exception occur in case of Browse for Folder. Pin
Le@rner3-Nov-08 23:34
Le@rner3-Nov-08 23:34 
QuestionRe: Memory Exception occur in case of Browse for Folder. Pin
CPallini3-Nov-08 23:57
mveCPallini3-Nov-08 23:57 
AnswerRe: Memory Exception occur in case of Browse for Folder. Pin
Le@rner4-Nov-08 0:21
Le@rner4-Nov-08 0:21 
AnswerRe: Memory Exception occur in case of Browse for Folder. Pin
Rajesh R Subramanian4-Nov-08 0:40
professionalRajesh R Subramanian4-Nov-08 0:40 
GeneralRe: Memory Exception occur in case of Browse for Folder. Pin
Le@rner4-Nov-08 0:59
Le@rner4-Nov-08 0:59 

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.