all groups > visual c > december 2006 > threads for december 29 - 31, 2006
Filter by week: 1 2 3 4 5
Access Violation error while using pointers
Posted by thejasviv at 12/31/2006 12:38:00 PM
Dear All,
Here is my code:
void main()
{
char *p="Hello";
*p='M'; //This is where the error occurs
cout<<p<<endl;
}
This code compiles and executes perfectly in Boreland C++. When I run the
same code in VC++ 6.0, however, I get the below error in debugging mode:
Unhandled exc... more >>
Attempted to read or write protected memory. Exception in release build, instantiating unmanaged class.
Posted by Bruce at 12/30/2006 11:36:06 PM
I am getting the following exception in the release build of my assembly.
{"Attempted to read or write protected memory. This is often an
indication that other memory is corrupt."} System.Exception
{System.AccessViolationException}
I do not have any problems in debug. The problem occurs... more >>
Forms deletes itself
Posted by RFOG at 12/30/2006 10:03:33 PM
Hello all!
I've a bunch of forms that I create on app startup. But sometimes they are
auto disposed. I don't understand why, because I instantiate them by gcnew
and does not delete until app ends.
--
Visita mi blog principal: http://rfog.blogsome.com
Y este sobre programación: http:/... more >>
Referencing an managed class from an unmanaged class?
Posted by Bruce at 12/29/2006 10:47:01 PM
I need to fire an event from an unmanaged class. If I declare a pointer
to the managed class within the unmanaged class I get a compile error "
"cannot declare a managed 'm_pGps' in an unmanaged 'MyProgressNotifier'"
Any idea how I can do this?
--
Bruce E. Stemplewski
GarXfac... more >>
Device Context Problem in XP
Posted by Mullai at 12/29/2006 9:59:56 PM
Hi Frendz,
I am working in an application in VC++ 6.0 in Windows 98
platform for drawing images.It works well in win 98 . I am trying to
import the same application for Windows XP. While doing this the DEVICE
CONTEXT creates problem.
///////////////////MY CODE//////////////
int ... more >>
Inline funtions (STL) not inlining
Posted by Mick O''Neill at 12/29/2006 9:40:00 PM
I asked about this a few days ago, and not found an aswer yet, but I have
tracked down further info. I am getting the problems occrrung with the stl,
under thses sorts of circumstances:
#include "LibraryHeader.h"
#include <list>
namespace MyNamespace {
public ref MyClass {
public:
... more >>
Can I reset the build number?
Posted by Bruce at 12/29/2006 7:31:05 PM
I have the following line in my assembly.cpp.
[assembly:AssemblyVersionAttribute("1.0.*")];
The * allows the build number to be automatically included. Is there
any way to reset this build number? If so, how?
--
Bruce E. Stemplewski
GarXface OCX and C++ Class Library for the Garmin G... more >>
Managed Overloaded Assignment Operator needed
Posted by raylopez99 at 12/29/2006 4:02:40 PM
I need an example of a managed overloaded assignment operator for a
reference class, so I can equate two classes A1 and A2, say called
ARefClass, in this manner: A1=A2;. For some strange reason my C++.NET
2.0 textbook does not have one. I tried to build one using the format
as taught in my re... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASP.NET 2.0 Menu Control
Posted by Simon Amrein at 12/29/2006 11:21:25 AM
Hello NG
Does anyone knows, how I can design the submenu-style different from the
mainmenu?
<asp:Menu ID="menu1" runat="server" BorderColor="#000040"
BorderStyle="Solid" CssClass="frameworkWide" Orientation="Horizontal"
DynamicEnableDefaultPopOutImage="False"
StaticEnableDefaultPopO... more >>
Program can't run: "The application has failed to start because its side-by-side configuration is incorrect"
Posted by Lloyd Dupont at 12/29/2006 10:27:11 AM
Hi All!
I have this application of mine which works well. It even used to work on
Vista. (I work on XP most of the time).
There are some ManagedC++ assemblies in the project.
Now when I try to start the project under vista, when I try to access
classes in the ManagedC++ assemblies I get... more >>
Using dotNet obejct in COM componant
Posted by themadmax at 12/29/2006 2:51:37 AM
I'm writting a COM componant in C++/IDL.
This componant is using in C# project, and I want to use
System.Drawing.Bitmap
In my IDl file I writed importlib("System.Drawing.tlb");
On function declaration is [id(5)] HRESULT image([out, retval] _Bitmap
**ppImage);
But how I can create initiaze it c... more >>
Problem passing structs to dll's
Posted by olidem at 12/29/2006 2:18:00 AM
Hi!
I am confused about the abnormal behaviour of my project.
Please consider the following situation:
I have written an application in C++.NET 2003 (managed) which loads and
executes an unmanaged function from an unmanaged dll.
On the dll-side i export this function:
typedef struct... more >>
|