|
-
January 16th, 2006, 08:52 AM
#1
cannot convert parameter 1 from 'System::String __gc *' to 'LPCSTR'
Hi,
I am trying to pass comport name via combobox in managed c++.net but cant seen to get it to work. It returns with the erro message
cannot convert parameter 1 from 'System::String __gc *' to 'LPCSTR'
Can someone help me
This is my function.
String * commPort = commPortsBox->Items->Item[i]->ToString();
HANDLE hCom= ::CreateFile(commPort,GENERIC_WRITE | GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_FLAG_OVERLAPPED,NULL);
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|