Click here to Skip to main content
15,908,909 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: connecting to mysql in a remote location.. Pin
led mike5-Feb-09 6:37
led mike5-Feb-09 6:37 
AnswerRe: connecting to mysql in a remote location.. Pin
N a v a n e e t h5-Feb-09 15:26
N a v a n e e t h5-Feb-09 15:26 
GeneralRe: connecting to mysql in a remote location.. Pin
Thilek5-Feb-09 23:16
Thilek5-Feb-09 23:16 
GeneralRe: connecting to mysql in a remote location.. Pin
N a v a n e e t h6-Feb-09 14:37
N a v a n e e t h6-Feb-09 14:37 
GeneralRe: connecting to mysql in a remote location.. Pin
Thilek6-Feb-09 18:53
Thilek6-Feb-09 18:53 
GeneralRe: connecting to mysql in a remote location.. Pin
N a v a n e e t h7-Feb-09 2:42
N a v a n e e t h7-Feb-09 2:42 
GeneralRe: connecting to mysql in a remote location.. Pin
Thilek9-Feb-09 5:11
Thilek9-Feb-09 5:11 
Questionvector<wstring> to System::String ??</wstring> Pin
Thilek4-Feb-09 19:52
Thilek4-Feb-09 19:52 
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 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 guys... the program must make the filenames to be shown in the list ya in anyways, even its not in System::String as long its showed there is gud enough... i been working on this 3 days but nvr solved it..... Frown | :(

Regards,

Thilek
AnswerRe: vector to System::String ?? Pin
N a v a n e e t h4-Feb-09 20:01
N a v a n e e t h4-Feb-09 20:01 
GeneralRe: vector to System::String ?? Pin
Thilek5-Feb-09 1:28
Thilek5-Feb-09 1:28 
GeneralRe: vector to System::String ?? Pin
N a v a n e e t h5-Feb-09 17:05
N a v a n e e t h5-Feb-09 17:05 
Questionbuttons exception Pin
staticv3-Feb-09 5:30
staticv3-Feb-09 5:30 
GeneralRe: buttons exception Pin
Luc Pattyn3-Feb-09 6:24
sitebuilderLuc Pattyn3-Feb-09 6:24 
GeneralRe: buttons exception Pin
staticv3-Feb-09 7:02
staticv3-Feb-09 7:02 
GeneralRe: buttons exception Pin
Luc Pattyn3-Feb-09 7:05
sitebuilderLuc Pattyn3-Feb-09 7:05 
QuestionHi all Pin
tasumisra2-Feb-09 22:38
tasumisra2-Feb-09 22:38 
AnswerRe: Hi all Pin
Mark Salsbery3-Feb-09 5:01
Mark Salsbery3-Feb-09 5:01 
QuestionHow to return array of custom objects from native C++ class to cpp/CLI class. Pin
Member 57039052-Feb-09 16:09
Member 57039052-Feb-09 16:09 
AnswerRe: How to return array of custom objects from native C++ class to cpp/CLI class. Pin
N a v a n e e t h2-Feb-09 18:20
N a v a n e e t h2-Feb-09 18:20 
GeneralRe: How to return array of custom objects from native C++ class to cpp/CLI class. Pin
Member 57039053-Feb-09 2:38
Member 57039053-Feb-09 2:38 
GeneralRe: How to return array of custom objects from native C++ class to cpp/CLI class. Pin
Mark Salsbery3-Feb-09 5:07
Mark Salsbery3-Feb-09 5:07 
Questionerror C2440: 'type cast' : cannot convert from 'System::String ^' to 'LPCTSTR' Pin
priyasethu1-Feb-09 19:57
priyasethu1-Feb-09 19:57 
AnswerRe: error C2440: 'type cast' : cannot convert from 'System::String ^' to 'LPCTSTR' Pin
Mark Salsbery2-Feb-09 8:05
Mark Salsbery2-Feb-09 8:05 
QuestionSetWindowsHookEx from Managed C++ Pin
Kar981-Feb-09 11:26
Kar981-Feb-09 11:26 
AnswerRe: SetWindowsHookEx from Managed C++ Pin
Mark Salsbery2-Feb-09 8:12
Mark Salsbery2-Feb-09 8:12 

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.