Click here to Skip to main content
15,906,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: figure out the error. Pin
Don Box4-Dec-07 19:47
Don Box4-Dec-07 19:47 
GeneralRe: figure out the error. Pin
Llasus4-Dec-07 21:00
Llasus4-Dec-07 21:00 
JokeSuggestion Pin
CPallini4-Dec-07 21:53
mveCPallini4-Dec-07 21:53 
GeneralRe: Suggestion Pin
Nelek4-Dec-07 22:36
protectorNelek4-Dec-07 22:36 
GeneralMoveWindow Pin
kk.tvm4-Dec-07 18:51
kk.tvm4-Dec-07 18:51 
GeneralRe: MoveWindow Pin
Parthi_Appu4-Dec-07 19:46
Parthi_Appu4-Dec-07 19:46 
Generalint value through string Pin
CodingLover4-Dec-07 18:18
CodingLover4-Dec-07 18:18 
AnswerRe: int value through string Pin
manish.patel4-Dec-07 18:56
manish.patel4-Dec-07 18:56 
Eranga Thennakoon wrote:
string FullPath = c:\Test\MyProject\G00062_002_01.srf;


You can not write like this.

You have to write :

string FullPath = "c:\Test\MyProject\G00062_002_01.srf";


Eranga Thennakoon wrote:
string filePath = FullPath.GetFileTitle();


No function like string::GetFilePath();



This is for only information.

Your Solution is this:

int x;
sscanf(groupID.c_str(), "%d", &x);

Now x will contain 62 and you can store it in Database or anywhere.

Have a nice day.


Manish Patel.
B.E. - Information Technology.


GeneralRe: int value through string Pin
CodingLover4-Dec-07 19:23
CodingLover4-Dec-07 19:23 
GeneralRe: int value through string Pin
manish.patel4-Dec-07 19:37
manish.patel4-Dec-07 19:37 
GeneralRe: int value through string Pin
CodingLover4-Dec-07 20:04
CodingLover4-Dec-07 20:04 
GeneralRe: int value through string Pin
Cedric Moonen4-Dec-07 20:05
Cedric Moonen4-Dec-07 20:05 
GeneralRe: int value through string Pin
manish.patel4-Dec-07 20:21
manish.patel4-Dec-07 20:21 
GeneralRe: int value through string Pin
Cedric Moonen4-Dec-07 20:28
Cedric Moonen4-Dec-07 20:28 
GeneralRe: int value through string Pin
CodingLover4-Dec-07 20:22
CodingLover4-Dec-07 20:22 
GeneralRe: int value through string Pin
Cedric Moonen4-Dec-07 20:01
Cedric Moonen4-Dec-07 20:01 
GeneralRe: int value through string Pin
Hamid_RT4-Dec-07 20:07
Hamid_RT4-Dec-07 20:07 
GeneralRe: int value through string Pin
Cedric Moonen4-Dec-07 20:14
Cedric Moonen4-Dec-07 20:14 
GeneralRe: int value through string Pin
Hamid_RT4-Dec-07 20:28
Hamid_RT4-Dec-07 20:28 
GeneralRe: int value through string Pin
CodingLover4-Dec-07 20:12
CodingLover4-Dec-07 20:12 
GeneralRe: int value through string Pin
jhwurmbach5-Dec-07 1:26
jhwurmbach5-Dec-07 1:26 
GeneralRe: int value through string Pin
David Crow5-Dec-07 2:47
David Crow5-Dec-07 2:47 
GeneralRe: int value through string Pin
CodingLover5-Dec-07 18:05
CodingLover5-Dec-07 18:05 
QuestionRe: int value through string Pin
Hamid_RT4-Dec-07 18:59
Hamid_RT4-Dec-07 18:59 
GeneralRe: int value through string Pin
CodingLover4-Dec-07 19:37
CodingLover4-Dec-07 19:37 

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.