AutoCAD 2002 MFC Dll

AutoCAD 2002 MFC Dll

Anonymous
Not applicable
388 Views
3 Replies
Message 1 of 4

AutoCAD 2002 MFC Dll

Anonymous
Not applicable
Hi everyone,

I've made a Dll with an exported class herited from CDialog, i use it inside
an Arx without problem on Windows NT4, AutoCAD 2000i P3 600MHz RAM 256Mo HD
8Go.

I've made test on other system, same Arx and Dll on Windows XP Pro and
AutoCAD 2002 make a strange message, AutoCAD tell me i have no more memory
!!! strange thing because it is a bigger computer than before (Athlon
XP1800+ RAM 512Mo HD 80Go) so it's not possible to have a lack of memory,
for more if i say not to close AutoCAD my Dialog appear.

Anyway, i've implemented the resource helper with the ResourceOverride and
so on ... nothing changed, i've recompiled everything on Windows XP, nothing
yet. In debug it is the instance creation of the dialog that crashed.

My Mfc dont do nothing special just a simple Dialog, my Arx just create an
instance of this Dialog.

So what is the problem and what can i do ?
0 Likes
389 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
you might try deriving your class from CAcUiDialog instead of CDialog
"Frédéric Chartier" wrote in message
news:C8B4B9AFC29F5F8D13443037F9DAA1E5@in.WebX.maYIadrTaRb...
> Hi everyone,
>
> I've made a Dll with an exported class herited from CDialog, i use it
inside
> an Arx without problem on Windows NT4, AutoCAD 2000i P3 600MHz RAM 256Mo
HD
> 8Go.
>
> I've made test on other system, same Arx and Dll on Windows XP Pro and
> AutoCAD 2002 make a strange message, AutoCAD tell me i have no more memory
> !!! strange thing because it is a bigger computer than before (Athlon
> XP1800+ RAM 512Mo HD 80Go) so it's not possible to have a lack of memory,
> for more if i say not to close AutoCAD my Dialog appear.
>
> Anyway, i've implemented the resource helper with the ResourceOverride and
> so on ... nothing changed, i've recompiled everything on Windows XP,
nothing
> yet. In debug it is the instance creation of the dialog that crashed.
>
> My Mfc dont do nothing special just a simple Dialog, my Arx just create an
> instance of this Dialog.
>
> So what is the problem and what can i do ?
>
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
> you might try deriving your class from CAcUiDialog instead of CDialog

Ok but in that case, could i use my Dll outside of AutoCAD ? ... in fact i
would like to have a library of dialogs that could be use inside and
outiside AutoCAD.
0 Likes
Message 4 of 4

Anonymous
Not applicable
Check you usage of the resource override class (is this for A2K+ or R14?).
It needs to be in place when the underlying Create() is called. Is the
dialog modal or modeless?

|
----+----------------------------------------------
| Byron Blattel
| CADwerx---Applications for AutoCAD
| Autodesk Registered Developer
| email: byron@cadwerx.net
| web site: http://www.cadwerx.net
|

"Frédéric Chartier" wrote in message
news:C8B4B9AFC29F5F8D13443037F9DAA1E5@in.WebX.maYIadrTaRb...
> Hi everyone,
>
> I've made a Dll with an exported class herited from CDialog, i use it
inside
> an Arx without problem on Windows NT4, AutoCAD 2000i P3 600MHz RAM 256Mo
HD
> 8Go.
>
> I've made test on other system, same Arx and Dll on Windows XP Pro and
> AutoCAD 2002 make a strange message, AutoCAD tell me i have no more memory
> !!! strange thing because it is a bigger computer than before (Athlon
> XP1800+ RAM 512Mo HD 80Go) so it's not possible to have a lack of memory,
> for more if i say not to close AutoCAD my Dialog appear.
>
> Anyway, i've implemented the resource helper with the ResourceOverride and
> so on ... nothing changed, i've recompiled everything on Windows XP,
nothing
> yet. In debug it is the instance creation of the dialog that crashed.
>
> My Mfc dont do nothing special just a simple Dialog, my Arx just create an
> instance of this Dialog.
>
> So what is the problem and what can i do ?
>
>
0 Likes