|
-
December 14th, 2006, 06:35 AM
#6
Re: Creating array of buttons in Visual C++
 Originally Posted by alexon1ine
this code
CButton m_arButton[2, 2];
and
HWND hwndButton[2, 2,];
does not work without new *.h files.
What do you mean?
Have you created a new VC++ project? Which type of project?
this one is working
Button Bbutt ;
but i need more
i trying to use
Button Bbutt [2];
What is Button ? Is ot still c# ?
Did you look at MSDN sample code in the link I had posted you?
but
------ Build started: Project: pka, Configuration: Debug Win32 ------
Compiling...
pka.cpp
d:\alex\projects\pka\pka\Form1.h(366) : error C2728: 'System::Windows::Forms::Button' : a native array cannot contain this managed type
Did you mean 'array<System::Windows::Forms::Button>'?
d:\alex\projects\pka\pka\Form1.h(366) : error C2227: left of '->{ctor}' must point to class/struct/union/generic type
Build log was saved at "file://d:\alex\Projects\pka\pka\Debug\BuildLog.htm"
pka - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
My project use standard windows libraries, without ATL
IWhat is "System::Windows::Forms::Button"?
Is it still c#?
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
|