First you shouldn't use cin>>full if you want the user's full name. If the name is John A. Doe your full would read up to the first white space, which is John.
Try using getline(cin,full). You can use the member function find in the string library to get the position of the white spaces and then use substr to get the substrings of the name
CAn any one help to create DLL which accepts strings type and returns strings too. For the following code why I always get 1 no matter how big string I pass to the function.
1 2 3 4 5 6 7 8 9 10 11 12
// TestDll.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
int __stdcall FnString(char* inmsg)
{
int lSTR = strlen(inmsg);
return lSTR;
}
Can any one help to create DLL which accepts strings type and returns strings too. For the following code why I always get 1 no matter how big string I pass to the function.
You should create your own thread to better describe your problem, do not hijack another person's thread.
For two days I am trying to create new topic for my issue but may be this site has some bug or I dont have permission to start new topic. When ever I try to start new topic I get a white page.
@kjaved8: I had the same problem couple of months back, reported it and nothing happened and had to create a new a/c
edit: btw it happened pretty much on the day i'd created my previous a/c and so didn't have enough time that i'd create a nuisance and get my a/c blocked ;))