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

Managed C++/CLI

 
AnswerRe: how to import dll in c++ ? Pin
Jonathan [Darka]26-Oct-07 1:00
professionalJonathan [Darka]26-Oct-07 1:00 
Questionchar * to String^ Pin
KienNT7825-Oct-07 21:28
KienNT7825-Oct-07 21:28 
AnswerRe: char * to String^ [modified] Pin
Mark Salsbery26-Oct-07 6:28
Mark Salsbery26-Oct-07 6:28 
AnswerRe: char * to String^ Pin
Newbie0026-Oct-07 7:10
Newbie0026-Oct-07 7:10 
GeneralRe: char * to String^ Pin
KienNT7826-Oct-07 7:40
KienNT7826-Oct-07 7:40 
GeneralRe: char * to String^ Pin
Newbie0026-Oct-07 9:01
Newbie0026-Oct-07 9:01 
QuestionLIBC.LIB Not found Pin
Sumanta Rout25-Oct-07 19:24
Sumanta Rout25-Oct-07 19:24 
QuestionGet Computer name Pin
staticplus25-Oct-07 3:13
staticplus25-Oct-07 3:13 
This is my code below: It gets the computer name and then the associated IP along with it. If we have the IP address how can we get the computer name? Thanks

void AsyncServer::InitSocks()
{
String* server = "CATUXPSD01";
int port = 4901;
printf("in InitSocks");
String* request = String::Concat(S"Our test data asdf");
Byte bytesSent[] = Encoding::ASCII->GetBytes(request);
Byte bytesReceived[] = new Byte[256];

Socket* s = 0;
IPHostEntry* hostEntry = 0;

// Get host related information.
hostEntry = Dns::Resolve(server);

//hostEntry = new IPHostEntry();

// Loop through the AddressList to obtain the supported AddressFamily. This is to avoid
// an exception that occurs when the host IP Address is not compatible with the address family
// (typical in the IPv6 case).

IEnumerator* myEnum = hostEntry->AddressList->GetEnumerator();
while (myEnum->MoveNext())
{
IPAddress* address = __try_cast<ipaddress*>(myEnum->Current);
IPEndPoint* endPoint = new IPEndPoint(address, port);
Socket* tmpS = new Socket(endPoint->AddressFamily, SocketType::Stream, ProtocolType::Tcp);
try {
tmpS->Connect(endPoint);
}
catch(Exception *e) {
// Handle exception here
}

if (tmpS->Connected)
{
s = tmpS;
break;
}
}

// Create a socket connection with the specified server and port.
if (s == 0) {
printf("Connection failed");
} else {
// Send request to the server.
s->Send(bytesSent, bytesSent->Length, static_cast<socketflags>(0));
}
}
AnswerRe: Get Computer name Pin
led mike25-Oct-07 4:29
led mike25-Oct-07 4:29 
Questionvirtual function Pin
richardye24-Oct-07 20:57
richardye24-Oct-07 20:57 
AnswerRe: virtual function Pin
Christian Graus24-Oct-07 21:01
protectorChristian Graus24-Oct-07 21:01 
Questionno message with ErrorProvider Pin
BuckBrown24-Oct-07 8:09
BuckBrown24-Oct-07 8:09 
AnswerRe: no message with ErrorProvider Pin
Luc Pattyn24-Oct-07 8:48
sitebuilderLuc Pattyn24-Oct-07 8:48 
GeneralRe: no message with ErrorProvider Pin
BuckBrown24-Oct-07 9:44
BuckBrown24-Oct-07 9:44 
QuestionData Parsers Pin
epsilonorion24-Oct-07 4:07
epsilonorion24-Oct-07 4:07 
AnswerRe: Data Parsers Pin
led mike24-Oct-07 5:16
led mike24-Oct-07 5:16 
QuestionVC++6 to VC++.NET conversion Pin
Sumanta Rout24-Oct-07 4:02
Sumanta Rout24-Oct-07 4:02 
AnswerRe: VC++6 to VC++.NET conversion Pin
Mark Salsbery24-Oct-07 6:14
Mark Salsbery24-Oct-07 6:14 
QuestionCommunication between forms Pin
UnHolyKnight55524-Oct-07 1:52
UnHolyKnight55524-Oct-07 1:52 
AnswerRe: Communication between forms [modified] Pin
Luc Pattyn24-Oct-07 2:06
sitebuilderLuc Pattyn24-Oct-07 2:06 
GeneralRe: Communication between forms Pin
led mike25-Oct-07 4:31
led mike25-Oct-07 4:31 
Questionerror C4430 Pin
Sumanta Rout24-Oct-07 1:03
Sumanta Rout24-Oct-07 1:03 
Questiona link error Pin
richardye23-Oct-07 22:19
richardye23-Oct-07 22:19 
AnswerRe: a link error Pin
Christian Graus23-Oct-07 22:56
protectorChristian Graus23-Oct-07 22:56 
GeneralRe: a link error Pin
richardye24-Oct-07 1:08
richardye24-Oct-07 1:08 

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.