Hello All Friends,
I found an error on above mention code (Found error on red/Bold code).
namespace wyUpdate
{
using namespace System;
using namespace System::Collections::Generic;
using namespace System::IO;
using namespace System::Runtime::InteropServices;
using namespace System::Threading;
using namespace Microsoft::Win32::SafeHandles;
public ref class PipeServer
{
public:
[StructLayoutAttribute(LayoutKind::Sequential)]
value class SECURITY_DESCRIPTOR
{
public:
System::Byte revision;
System::Byte size;
short control;
IntPtr owner;
IntPtr group;
IntPtr sacl;
IntPtr dacl;
};
public:
void Start(System::String ^pipename)
{
PipeName = pipename;
[B]listenThread = gcnew Thread(ListenForClients);[/B]
listenThread->Start();
Running = true;
}
public:
void ListenForClients()
{
SECURITY_DESCRIPTOR ^sd = gcnew SECURITY_DESCRIPTOR();
}
};
}
Error is mention below:
Error 1
error C3867: 'wyUpdate:: PipeServer::ListenForClients': function call missing argument list; use '&wyUpdate:: PipeServer::ListenForClients' to create a pointer to member
Please help me to solve it.
Thanks & regards,
Rupendra