|
Hi,
Does anyone has a good article or example to add the Flash.ocx to my application exe (VS C++).
I need to make a setup with a standalone flashplayer, without registering or installing the adobe flash ocx.
thx
Kurt
|
|
|
|
|
Dear Sir,
I am using Visual C++ Net 2005, I am a beginer.
I need to realise a Form like I see codeproject forms.
It means at left a column of items, when you choose an item the details appear at right side. And the left side stay like that without changing.
I try to use FLOWLAYOUTPANEL I put it at the left, but How to change on the right side.
I need that when I click on the button on the left side, I seen a panel with related control that I can fill or display on the right side
|
|
|
|
|
mikobi wrote: I need to realise a Form like I see codeproject forms.
Is this an ASP.NET form or Windows Form?
mikobi wrote: I try to use FLOWLAYOUTPANEL
Try using something else like a TableLayoutPanel or a Split Container.
|
|
|
|
|
I need to do it with windows forms
Can you help me
|
|
|
|
|
Your question is like a ASP.NET question did you ask on that forum?
|
|
|
|
|
Using Visual C++ 6.0, would like to detect anytime a variable value changes during execution, haven't yet discovered a way to do with the Microsoft Debug tool. Any ideas will be helpful. Thanks in advance, Sid Kraft.
Sid
|
|
|
|
|
sidkraft wrote: Using Visual C++ 6.0
is not possible for (Managed) C++/CLI development which is what this forum is for. Please post your questions in an appropriate forum. Take the time to read the directions/guidlines for posting in forums before you post. Your question belongs in the Visual C++ / MFC forum
|
|
|
|
|
Hi, I'm fairly new to C++ and I have a tricky problem with a program I am writing.
I have a loop in place to it keeps showing the data, but I would like a way for the user to be able to stop that.
I have got a snippet of code to pause a program, and want to see if i can use it for this.
void pause()
{
std::string response;
std::getline(std::cin, response);
goto (whatever);
}
Basically, as you can tell, when the user presses enter, the program goes to another point. or at least I think it does.
Any help would be much obliged.
|
|
|
|
|
You need to post your question in the Visual C++ forum. You only get C++/CLI (.NET Framework) answers here!
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
|
I really hope I'm not asking a question that has already been answered, I've searched and couldn't find an adequate answer so thought I'd ask and hope that those that understand this technology much better than me can help me out.
The problem: I have a program written in MFC, I want to remove a portion of it and wrap it into a .dll, including an object with over 200 properties and forms so that this common code can be accessed from the program it's currently in as well as newer programs being written in C#. Basically this DLL will allow a user to change many properties of an object and I want to pass that object back and forth between the C# programs and the MFC DLL.
Ideally I'd like to be able to create the object in the C# program, fill its properties, pass the object to the MFC DLL, allow user to edit properties, and pass back to C# program.
Is there a clean way to pass the class object or reference to it in one call without having to pass each property individually?
Thank you for any and all help!
|
|
|
|
|
MFC is natvie C++. Managed code is not. Using C++/CLI you can use both native and managed code
Native C++ (DLL) Managed Assembly (DLL)
\ /
\ /
C++/CLI Assembly (DLL)
Does that help
[modified] oops... I am lost without my CPHog.... Shog where are you man!
modified on Monday, December 10, 2007 11:41:20 AM
|
|
|
|
|
Please tell me how can we get signals or input from non computer devices into our program ?
|
|
|
|
|
r.srinivas wrote: non computer devices
You mean like a refrigerator?
|
|
|
|
|
Another naive poster gets hit with a cold one.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
can anybody tell me why the size of an empty class is 1.and i also want to know why we cant create an object for an abstract class.
Thanks in advance
|
|
|
|
|
C++ requires freestanding empty objects to have non-zero size. Most compilers automatically insert a char into "empty" objects to satisfy this. However, if your empty class is a base class then it won't add any size to the derived class object.
See: http://msdn2.microsoft.com/en-us/library/f42z47h2(VS.80).aspx[^]
You cannot create an object directly from an abstract class since it contains virtual method(s) without implementation(s).
"We make a living by what we get, we make a life by what we give." --Winston Churchill
modified on Monday, December 10, 2007 3:25:41 PM
|
|
|
|
|
Giving them the smallest possible non-zero size makes sure different objects
result in different pointer/reference values, which is what you hope to get isn't it?
|
|
|
|
|
philiptabraham wrote: i also want to know why we cant create an object for an abstract class
If you could, the class wouldn't be abstract.
It doesn't make sense to create an object of a class that
has virtual functions that are NULL.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
modified on Monday, December 10, 2007 3:15:35 PM
|
|
|
|
|
Mark Salsbery wrote: It doesn't make sense to create an object of a class that
doesn't have a complete implementation.
You can make a class non-copyable by declaring a private copy constructor (and assignment operator) without an implementation!
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
right. badly worded - I changed it a bit. It took a long time
for CP to let me edit it (or reply to you ).
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello!
Being new to C++/CLI I'm trying to create a MVC design pattern as a start. Sadly I'm stuck with event management. Here is my code so far:
Controller.h
<br />
#pragma once <br />
#include "Model.h" <br />
#include "View.h" <br />
<br />
public ref class Controller <br />
{ <br />
private: Model^ mainModel; <br />
private: View^ mainView; <br />
<br />
public: Controller(void) { <br />
mainModel = gcnew Model(); <br />
mainView = gcnew View(this); <br />
Application::Run(mainView); <br />
} <br />
public: System::Void Btn_Open_Click(System::Object^ sender, System::EventArgs^ e) {<br />
}<br />
};<br />
View.h
<br />
#pragma once <br />
ref class Controller; <br />
<br />
public ref class View : public System::Windows::Forms::Form <br />
{ <br />
private: Controller^ mainController; <br />
public: View(Controller^ con) { <br />
mainController = con; <br />
InitializeComponent(); <br />
} <br />
InitializeComponent() { <br />
... <br />
this->Btn_Open->Click += gcnew System::EventHandler(this, &mainController::Btn_Open_Click);<br />
...<br />
} <br />
With MCV the controller is responsible for event managment. That's why I choose to create the View with a reference to the controller.
But now I'm stuck with the EventHandler. The code above compiles fine when the last line is commented out. Of course, then there is no event handler.
So what is the correct way to do this? I just want the EventHandler in the View class to call a method in another class. How to do that?
Thanks for your help and suggestions!
|
|
|
|
|
Windows Forms is based partially on MVC design pattern but it is not a pure implementation of it. Thus, you are doomed in implementing MVC with it as your base.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
atzplzw wrote: With MCV the controller is responsible for event managment.
Other patterns can be introduced into the MVC design like a Command Pattern. Strictly speaking your controller class does NOT have to be directly hooked to the event of the user interface control.
Also have you seen this[^]?
|
|
|
|
|