Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRibbon app crash on XP. Works on vista. [modified] Pin
VC++Maniac4-Feb-09 17:27
VC++Maniac4-Feb-09 17:27 
AnswerRe: Ribbon app crash on XP. Works on vista. Pin
VC++Maniac6-Feb-09 0:42
VC++Maniac6-Feb-09 0:42 
QuestionHow to play an Animation and make video render before logon through credential provider ?(Vista) [modified] Pin
wyc_xiaoben4-Feb-09 15:06
wyc_xiaoben4-Feb-09 15:06 
AnswerRe: How to play an Animation and make video render before logon through credential provider ?(Vista) Pin
Wes Aday4-Feb-09 16:00
professionalWes Aday4-Feb-09 16:00 
Questionwinhttp ssl using client certificate P12 Pin
Codey20984-Feb-09 11:17
Codey20984-Feb-09 11:17 
AnswerRe: winhttp ssl using client certificate P12 Pin
andrew7webb1-Jan-11 11:36
andrew7webb1-Jan-11 11:36 
QuestionMSI, ShellNew and Vista Ultimate.. [modified] Pin
Member 38520244-Feb-09 10:54
Member 38520244-Feb-09 10:54 
Questionvector(wstring) to System::String ? Pin
Thilek4-Feb-09 7:02
Thilek4-Feb-09 7:02 
hi guys,

i been working on a worm scanner lately... i got a funtion that list all the files in a directory.. but the the filename is on vector<wstring> but i need to list them in a list box. but when i compile there is no problem but when i run it there is problem showing :

An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll

Additional information: Input string was not in a correct format.


Below is my coding :

if (ListFiles(directory, L"*", files)) {
for (vector<wstring>::iterator it = files.begin();
it != files.end();
++it) {

std::string filename = WStringToString(it->c_str());;
std::string s=filename;

String ^someString= gcnew String(s.c_str());


listBox1->Items->Add(String::Format(someString,"\n"));
// wcout << it->c_str() << endl;
}
}


Kidly help me plz...

Regards,

Thilek
AnswerRe: vector(wstring) to System::String ? Pin
CPallini4-Feb-09 7:57
mveCPallini4-Feb-09 7:57 
GeneralRe: vector(wstring) to System::String ? Pin
Thilek4-Feb-09 19:53
Thilek4-Feb-09 19:53 
QuestionRe: vector(wstring) to System::String ? Pin
David Crow5-Feb-09 3:39
David Crow5-Feb-09 3:39 
QuestionOLE DB network suggestions Pin
robocodeboy4-Feb-09 6:27
robocodeboy4-Feb-09 6:27 
QuestionDBCS issue Pin
David Crow4-Feb-09 5:36
David Crow4-Feb-09 5:36 
AnswerRe: DBCS issue Pin
Graham Bradshaw4-Feb-09 6:22
Graham Bradshaw4-Feb-09 6:22 
GeneralRe: DBCS issue Pin
David Crow4-Feb-09 6:47
David Crow4-Feb-09 6:47 
GeneralRe: DBCS issue Pin
Graham Bradshaw4-Feb-09 6:50
Graham Bradshaw4-Feb-09 6:50 
GeneralRe: DBCS issue Pin
David Crow4-Feb-09 6:54
David Crow4-Feb-09 6:54 
GeneralRe: DBCS issue Pin
Graham Bradshaw4-Feb-09 6:58
Graham Bradshaw4-Feb-09 6:58 
QuestionRe: DBCS issue Pin
David Crow4-Feb-09 7:10
David Crow4-Feb-09 7:10 
AnswerRe: DBCS issue Pin
Graham Bradshaw4-Feb-09 7:29
Graham Bradshaw4-Feb-09 7:29 
AnswerRe: DBCS issue - calculating the number of bytes Pin
daniel_zy6-Feb-09 7:20
daniel_zy6-Feb-09 7:20 
QuestionNeed help on how to create Group Box dynamically Pin
John5024-Feb-09 4:48
John5024-Feb-09 4:48 
AnswerRe: Need help on how to create Group Box dynamically Pin
Code-o-mat4-Feb-09 6:16
Code-o-mat4-Feb-09 6:16 
GeneralRe: Need help on how to create Group Box dynamically Pin
Eags10-Apr-11 9:15
Eags10-Apr-11 9:15 
GeneralRe: Need help on how to create Group Box dynamically Pin
Code-o-mat10-Apr-11 9:20
Code-o-mat10-Apr-11 9:20 

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.