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

Managed C++/CLI

 
GeneralRe: Instances of an object Pin
John Schroedl21-Mar-11 4:02
professionalJohn Schroedl21-Mar-11 4:02 
GeneralRe: Instances of an object Pin
Cyclone_S21-Mar-11 15:44
Cyclone_S21-Mar-11 15:44 
GeneralRe: Instances of an object Pin
Cyclone_S23-Mar-11 13:21
Cyclone_S23-Mar-11 13:21 
AnswerRe: Instances of an object Pin
Luc Pattyn23-Mar-11 16:01
sitebuilderLuc Pattyn23-Mar-11 16:01 
GeneralRe: Instances of an object Pin
John Schroedl23-Mar-11 18:22
professionalJohn Schroedl23-Mar-11 18:22 
GeneralRe: Instances of an object Pin
Cyclone_S25-Mar-11 14:31
Cyclone_S25-Mar-11 14:31 
GeneralRe: Instances of an object Pin
Cyclone_S26-Mar-11 9:38
Cyclone_S26-Mar-11 9:38 
Questionreturn 2 HWND Pin
Masternoob00718-Mar-11 1:19
Masternoob00718-Mar-11 1:19 
i wrote a dll with an external function:

__declspec(dllexport) HWND _stdcall StartWindow(char *WindowTitle, char *WindowText, int Style)
{	
	System::String ^ TextString = gcnew System::String(WindowText);
	System::String ^ TitleString = gcnew System::String(WindowTitle);
	
	Application::EnableVisualStyles();	
	ProgressBarWindow ^form = gcnew ProgressBarWindow();
	form->textBox1->Text = TextString;
	form->Text = TitleString;
	
	if (Style == 1){				
		form->progressBar1->Style = System::Windows::Forms::ProgressBarStyle::Marquee;		
	}
	else if (Style == 2){
		form->progressBar1->Style = System::Windows::Forms::ProgressBarStyle::Continuous;
	}

	form->Show();	
	
	HWND WindowHndl = (HWND)form->Handle.ToPointer();
	HWND textboxHandle = (HWND)form->textBox1->Handle.ToPointer();
		
	return WindowHndl;
}


it returns the WindowHandle but i need to return the textboxHandle too!

how can i do that?
AnswerRe: return 2 HWND Pin
Richard MacCutchan18-Mar-11 2:50
mveRichard MacCutchan18-Mar-11 2:50 
Question[C++/CLI] Progressbar doesn't work [modified] Pin
Masternoob00716-Mar-11 2:08
Masternoob00716-Mar-11 2:08 
AnswerRe: [C++/CLI] Progressbar doesn't work Pin
Luc Pattyn16-Mar-11 2:27
sitebuilderLuc Pattyn16-Mar-11 2:27 
GeneralRe: [C++/CLI] Progressbar doesn't work Pin
Masternoob00716-Mar-11 2:37
Masternoob00716-Mar-11 2:37 
Questionproblem in using library of LFSR Pin
smishtiaqhussain12-Mar-11 9:24
smishtiaqhussain12-Mar-11 9:24 
AnswerRe: problem in using library of LFSR Pin
Richard MacCutchan12-Mar-11 9:48
mveRichard MacCutchan12-Mar-11 9:48 
GeneralRe: problem in using library of LFSR Pin
smishtiaqhussain12-Mar-11 10:49
smishtiaqhussain12-Mar-11 10:49 
GeneralRe: problem in using library of LFSR Pin
Richard MacCutchan12-Mar-11 22:29
mveRichard MacCutchan12-Mar-11 22:29 
AnswerRe: problem in using library of LFSR Pin
Luc Pattyn12-Mar-11 9:59
sitebuilderLuc Pattyn12-Mar-11 9:59 
GeneralRe: problem in using library of LFSR Pin
jschell13-Mar-11 10:14
jschell13-Mar-11 10:14 
QuestionProblems using managed C++ DLL's on WinXP and Win2003 Pin
Ole Morten Heien10-Mar-11 21:36
Ole Morten Heien10-Mar-11 21:36 
AnswerRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Richard MacCutchan10-Mar-11 22:48
mveRichard MacCutchan10-Mar-11 22:48 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Ole Morten Heien10-Mar-11 22:55
Ole Morten Heien10-Mar-11 22:55 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Richard MacCutchan10-Mar-11 23:46
mveRichard MacCutchan10-Mar-11 23:46 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Ole Morten Heien11-Mar-11 0:13
Ole Morten Heien11-Mar-11 0:13 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Richard MacCutchan11-Mar-11 0:19
mveRichard MacCutchan11-Mar-11 0:19 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Ole Morten Heien11-Mar-11 0:37
Ole Morten Heien11-Mar-11 0:37 

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.