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

Managed C++/CLI

 
GeneralRe: Weird problem using C++ dll from vb6 Pin
lenourien25-Aug-11 12:39
lenourien25-Aug-11 12:39 
QuestionWTSSendMessage fails as RPC Server is unavailable Pin
Arun Parthasarathy22-Aug-11 1:24
Arun Parthasarathy22-Aug-11 1:24 
AnswerRe: WTSSendMessage fails as RPC Server is unavailable Pin
Tony Richards25-Aug-11 13:05
Tony Richards25-Aug-11 13:05 
QuestionConverting ADO data types into C++ data types Pin
Bahram198420-Aug-11 0:47
Bahram198420-Aug-11 0:47 
AnswerRe: Converting ADO data types into C++ data types Pin
John Schroedl22-Aug-11 3:28
professionalJohn Schroedl22-Aug-11 3:28 
QuestionInheriting a template class Pin
Subin Mavunkal17-Aug-11 1:43
Subin Mavunkal17-Aug-11 1:43 
AnswerRe: Inheriting a template class Pin
George L. Jackson9-Sep-11 12:13
George L. Jackson9-Sep-11 12:13 
Questionc++ function name parameter problem Pin
ali_zdn14-Aug-11 3:11
ali_zdn14-Aug-11 3:11 
C++
#pragma once
#undef UNICODE
#define WIN32_LEAN_AND_MEAN

#pragma comment (lib, "Ws2_32.lib")
#include "stdafx.h"
#include <Winsock2.h>
#include <Ws2tcpip.h>
#include "vcclr.h"
#include<string>
#include<iostream>
#include <windows.h>
#include <process.h>
#include <stdio.h>
#include <sstream>
#include <stdlib.h>

namespace trial {

	using namespace std;
	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::Threading;
	using namespace System::Runtime::InteropServices;

	public ref class Form1  : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
		}
	public:
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}

	public: System::Windows::Forms::Button^  baslat_button;
	public: 

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.

		/// </summary>

		void InitializeComponent(void)
		{
			//definitons of buttons textboxes etc.

		}

#pragma endregion

public: void start1(void* pParams )
{
	// Doing something
}


	private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) 
			 {
				 
				 			 
			 }
			 

	private: System::Void baslat_button_Click(System::Object^  sender, System::EventArgs^  e) 
	{
		     hEvent1 = CreateEvent( NULL, FALSE, TRUE, NULL );
			 hEvent2 = CreateEvent( NULL, FALSE, FALSE, NULL );


			_beginthread(start1, 0, NULL );
						
	}

};
}

im working on visual studio 2010 ultimate,
When i compile the code i have got an error "beginthread" line
VB
Error   1   error C3867: 'trial::Form1::start1': function call missing argument list; use '&trial::Form1::start1' to create a pointer to member c:\users\ali\desktop\yedek\trial\trial\Form1.h  509 1   server_screen


How can i fix this problem?
AnswerRe: c++ function name parameter problem Pin
Richard MacCutchan14-Aug-11 7:03
mveRichard MacCutchan14-Aug-11 7:03 
QuestionProject Converted From VS2003 to VS2008, get exception when call dialog.doModal Pin
Andraw Tang5-Aug-11 11:16
Andraw Tang5-Aug-11 11:16 
AnswerRe: Project Converted From VS2003 to VS2008, get exception when call dialog.doModal Pin
Richard MacCutchan5-Aug-11 22:32
mveRichard MacCutchan5-Aug-11 22:32 
GeneralRe: Project Converted From VS2003 to VS2008, get exception when call dialog.doModal Pin
Andraw Tang8-Aug-11 4:37
Andraw Tang8-Aug-11 4:37 
GeneralRe: Project Converted From VS2003 to VS2008, get exception when call dialog.doModal Pin
Richard MacCutchan8-Aug-11 7:02
mveRichard MacCutchan8-Aug-11 7:02 
GeneralRe: Project Converted From VS2003 to VS2008, get exception when call dialog.doModal Pin
Andraw Tang8-Aug-11 7:18
Andraw Tang8-Aug-11 7:18 
GeneralRe: Project Converted From VS2003 to VS2008, get exception when call dialog.doModal Pin
Richard MacCutchan8-Aug-11 7:38
mveRichard MacCutchan8-Aug-11 7:38 
AnswerRe: Project Converted From VS2003 to VS2008, get exception when call dialog.doModal Pin
Arun Parthasarathy22-Aug-11 1:27
Arun Parthasarathy22-Aug-11 1:27 
Questionpin_ptr on value struct is needed? Pin
Dusan Paulovic3-Aug-11 6:51
Dusan Paulovic3-Aug-11 6:51 
QuestionHow to disable a Checkbox created using MFCRibbonCheckBox? Pin
MeghaJoshi1-Aug-11 18:20
MeghaJoshi1-Aug-11 18:20 
QuestionTCP packet sniffer Pin
itaybo24-Jul-11 19:26
itaybo24-Jul-11 19:26 
AnswerRe: TCP packet sniffer Pin
Richard MacCutchan24-Jul-11 21:15
mveRichard MacCutchan24-Jul-11 21:15 
AnswerRe: TCP packet sniffer Pin
Albert Holguin25-Jul-11 4:26
professionalAlbert Holguin25-Jul-11 4:26 
RantRe: TCP packet sniffer Pin
Richard MacCutchan25-Jul-11 5:59
mveRichard MacCutchan25-Jul-11 5:59 
GeneralRe: TCP packet sniffer Pin
Albert Holguin25-Jul-11 6:26
professionalAlbert Holguin25-Jul-11 6:26 
RantRe: TCP packet sniffer Pin
Richard MacCutchan25-Jul-11 6:31
mveRichard MacCutchan25-Jul-11 6:31 
GeneralRe: TCP packet sniffer Pin
Albert Holguin25-Jul-11 6:33
professionalAlbert Holguin25-Jul-11 6:33 

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.