Hi
I've got aplication, which one is written in unmanaged c++ with stl,
i've made for it gui in managed c++.
Problem becomes when I'm starting to filling up for example datagrids,
when I'm adding row to datagrid , some varibles (vectors etc) in
unmanaged class are cleared or filled with null.
I want mention also when i compile only unmanaged class for console
project (without .net gui) problem never happends, everything works fine.
I've done all like in msdn example
ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vclang/html/f072ddcc-e1ec-408a-8ce1-326ddb60e4a4.htm
my program structure looks like that
main.cpp
// gui.cpp : main project file.
#pragma managed(push, off)
#include "source\main.h"
....
#include "source\nfile.h"
#include "source\fun08.h"
....
static SCA Sca; //< --- thats my unmanaged class
#pragma managed(pop)
#include "source\guiTabPageFUN.h"
#include "source\guiTabPageN.h"
....
#include "Form1.h"
using namespace GuiNameSpace;
[STAThreadAttribute]
int main(array<System::String ^^args)
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(fal se);
Application::Run(gcnew Form1(&Sca));
return 0;
}
//nfile.h:some unmanaged file
#pragma managed(push, off)
class N
{
.....int z;
}
#pragma managed(pop)
//nfile.cpp:some unmanaged file
#pragma managed(push, off)
...some functions body..
N::N()
{
int z=0;
}
#pragma managed(pop)
Is there any way to fix the problem ?
Regards
frank 3 2166
On Jan 22, 1:50 pm, frank <f...@niemamaila.comwrote:
Hi
I've got aplication, which one is written in unmanaged c++ with stl,
i've made for it gui in managed c++.
Sorry, but managed C++ and other extensions are off-topic in this
group, take a look at the following page for some suggestions where you
might better ask your question: http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
--
Erik Wikström
Erik Wikström napisa³(a):
On Jan 22, 1:50 pm, frank <f...@niemamaila.comwrote:
>Hi
I've got aplication, which one is written in unmanaged c++ with stl, i've made for it gui in managed c++.
Sorry, but managed C++ and other extensions are off-topic in this
group, take a look at the following page for some suggestions where you
might better ask your question: http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
--
Erik Wikström
thx, now i found microsoft.public.dotnet.languages.vc i'll post it there
On Mon, 22 Jan 2007 13:50:45 +0100, frank <fr***@niemamaila.com>
wrote:
>I've got aplication, which one is written in unmanaged c++ with stl, i've made for it gui in managed c++.
Managed C++ is not part of the standard. You will probably get a
better response from microsoft.public,dotnet.languages.vc where
managed C++ is on topic.
rossum This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: kaalus |
last post by:
Hello
I have problem mixing managed and unmanaged C++ code in VS.NET 2003. I want to create a windows forms application which uses some C++ code that is incompatible with managed extensions...
|
by: Neil |
last post by:
I am developing a demo in C# using Managed DirectX. I wanted to use a
C++ static library in the demo (its a class for handling physics), so
I decided to create my Graphics classes in C#, inherit...
|
by: Daniel Lidström |
last post by:
Hello,
is it possible to ``use CS to code a class, and (M)C++ for the logic''?
Sorry if this sounds vague, I'm not really sure myself what it means. Does
anyone have any ideas?
--
Daniel
|
by: Steve Marsden |
last post by:
Hi
All the information I had read suggested that if you had an existing C
project that you wished to change to managed code all you had to do was use
the /clr switch and then over time you could...
|
by: DD |
last post by:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario:
Unmanaged
------------
Callback listener class with method that should call an event in managed
Form1.
Initialization...
|
by: quat |
last post by:
I am getting the error:
error C4368: cannot define 'd3dPP' as a member of managed 'FormEx::Form1':
mixed types are not supported
I am trying to mixed managed and unmanaged code (d3dPP is...
|
by: frank |
last post by:
Hi
I've got aplication, which one is written in unmanaged c++ with stl,
i've made for it gui in managed c++.
Problem becomes when I'm starting to filling up for example datagrids,
when I'm...
|
by: jraul |
last post by:
Hi,
This is probably a noobie question but:
I just created a new C++/CLI project in VS 2005. It created an empty
class:
public ref class Class1
{
// TODO: Add your methods for this class...
|
by: Jon Slaughter |
last post by:
How difficult is it for one to integrate unmanaged C++ into C#? I know for
functions one can use DLLimport but how does one go about doing it for
classes? Do I have to completely reimplement the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |