|
friends
i have written a program in c. i could run the program in TC. but when i am triying to run the program in Vc6.0 IDE. i have got an error. i couldnt run the program... but i can compilt it. while debugging the program can finish..
i will show u the error i am getting while i am triying to run
The instruction at "0x77fcc912" referenced memory at "0x0031659a". The memory could not be "written".
pls help me.....
shamnar
|
|
|
|
|
The application attempted to write to an area of memory for which it either had no permission, or more likely an area of memory that is not writable.
Debugging the application should help you by prviding a call stack.
Darka [Xanya]
|
|
|
|
|
does the managed c++ need to develop a windows forms applications?
|
|
|
|
|
You can develop windows forms applications in managed C++ if you want to but you don't have to, WinForms is just part of .net
Darka [Xanya]
|
|
|
|
|
Ok thanks. I also want to know that, is the garbage collection essential to develop windows forms application ? Because, .net generates '__gc' operator into my code.
|
|
|
|
|
Yes it is, as it is will all .net applications as garbage collection is a fundamental part of the .net framework.
regards,
Darka [Xanya]
|
|
|
|
|
No. There are many types of .NET applications, Windows, Console, Service, Web, etc. But to take advantage of .NET (managed) capability, Windows applications should use Windows Forms.
Best,
Jun
|
|
|
|
|
What is the difference between managed and unmanaged c++? (most important diffenrences please)
|
|
|
|
|
Managed C++ is .NET, unmanaged C++ is C++
Managed C++, includes things like Garbage Collection, WinForms, etc.
Managed C++ can only be used to create .NET applications
C++ does not.
C++ can be used to create any type of application.
Darka [Xanya]
|
|
|
|
|
Managed C++ is a .NET C++ language, which now is offically called C++/CLI (common language infrastructure) on .NET Framework 2.0. It contains lots of extensions to ISO C++ (unmanaged). Microsoft has submitted C++/CLI spec to ECMA.
Best,
Jun
|
|
|
|
|
Give me this error:
Error 1 Command line error D8045 : cannot compile C file '..\..\..\..\Dev\API_C++\cutil.c' with the /clr option cl
But it's a very ordinary C file!
no special function like setjmp just malloc/free and some pointers
Any idea?
|
|
|
|
|
Never mind, solved...
|
|
|
|
|
From MSDN ( http://msdn2.microsoft.com/en-us/library/ms173265(d=ide).aspx )
Known Issues Compiling Library Projects with /clr
Visual C++ 2005 contains some known issues when compiling library projects with /clr:
When compiling an MFC ActiveX control project with /clr in the development environment, the build system will attempt to register the .dll with regasm and not regsvr32. You must manually register the control with regsvr32.
When you create an ATL project and then enable /clr, the .c files will generate an error, because .c files cannot be compiled with /clr. However, if you change the file settings to compile the file with /TP, you will generate linker errors. The resolution is to compile the .c files as native (without /clr).
|
|
|
|
|
Sir, What are the function that will be added automatically when a Object in C++ is created .
Fly Like An Eagle With MIGHTY POWER.
|
|
|
|
|
Default Constructors, Default Destructor. If you add a constructor with empty parameter list yourself, no other constructors are added.
(Note: Added, to me, means "functions which are neither inherited nor explicitly implemented".)
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
-- modified at 5:45 Tuesday 11th July, 2006
|
|
|
|
|
as we are on a managed C++, i think he was talking about the member function inherited from a CObject-like class (but i don't know .NET programming that much)
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Might be.
In that case, there is no single answer. Every accessible member of the base class is "added", so the functions added really depend on the base class. The only thing you can say is that "everything is an Object", so the accessible Object-functions are available for "everything".
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
I have real time data to be displayed on a X-Y graph. I need to use Double buffering to avoid flickering.
How to accomplish Double Buffering in Managed C++.
|
|
|
|
|
There are several approaches. If you use GDI+ to draw, one simplest is creating a bitmap graphic object as the buffer. Draw to the buffer. Whenever necessary, draw (copy) the buffer to the screen.
Best,
Jun
|
|
|
|
|
Jun, thank you for the suggestion,, I shall attempt doing this and shall post the result back here
Cheers
Pavan
|
|
|
|
|
I know this sounds like an ad, but have a look at ZedGraph. Its GPL'ed, documented both on CP and SF, and available from SF or CP as well.
You would be able to offer zooming, human-readable axis-dimensions (min, max, stepsize) and other useful stuff.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
I hope this will help
// in order to solve flickering i have to use double buffering
this->SetStyle( ControlStyles::AllPaintingInWmPaint, true);
this->SetStyle( ControlStyles::UserPaint, true);
this->SetStyle( ControlStyles::DoubleBuffer, true );
|
|
|
|
|
I have an upcoming TAPI project to be written using Visual C++ 2005. Im just wondering is there some new fan-dangled API in the dot net framework that supercedes the TAPI API?
|
|
|
|
|
I want to know if declaring soemthing like this makes sense?
I have a class whose declario is as follows:
namespace Utility {
class Filebase : public fstream {
public:
and I want to declare a vector of objects of this class. Currently w/o vector I am using an object of this class as:
string signal = ".s_"+layer+"_" + toString (iStage);
Utility::Filebase temp (signal, ios::out);
temp.create(signal);
I want to use Filebase temp using a vector
Is this possible in C++?
Thanks
Suddha
|
|
|
|
|
I am looking for a way to add a 16 X 48 matrix of owner drawn buttons to a small
utility I am developing in VC++ 2005. Can anyone direct me to specific articles
or code to accomplish this task. I want to preserve 2d addressing. Initialization
might go like:
private: System::Windows::Forms::Button^ Mybutton[][];
Chris
|
|
|
|