Click here to Skip to main content
13,627,931 members

ATL / WTL / STL

 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Member 1347149317-Oct-17 23:13
memberMember 1347149317-Oct-17 23:13 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Jochen Arndt17-Oct-17 23:29
mvpJochen Arndt17-Oct-17 23:29 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Richard MacCutchan18-Oct-17 0:16
protectorRichard MacCutchan18-Oct-17 0:16 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Member 1347149318-Oct-17 0:58
memberMember 1347149318-Oct-17 0:58 
QuestionRe: How To Add a Dll TO MFC Application in visual Studio Pin
Richard MacCutchan18-Oct-17 1:18
protectorRichard MacCutchan18-Oct-17 1:18 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Jochen Arndt18-Oct-17 1:40
mvpJochen Arndt18-Oct-17 1:40 
AnswerRe: How To Add a Dll TO MFC Application in visual Studio Pin
Michael Haephrati22-Oct-17 2:22
professionalMichael Haephrati22-Oct-17 2:22 
Questionusing /clr switch for ATL application raises an exception when the application is terminating. Pin
Vijjuuu.23-Aug-17 0:00
memberVijjuuu.23-Aug-17 0:00 
Hi,

i have created a sample ATL application in VS2010, added ATL Simple object.

it has only one method

int getVal()
{
return 10;
}

i have enabled /clr switch in the project properties and build in release mode. (i have added /clr because i want to consume some objects build in C#.net)

after registering the dll, i have consumed the COM object in vbscript. (the code below)

dim obj
set obj = createobject("MySample.COMSample")
msgbox obj.getVal()
set obj = nothing

this is very simple COM object. if i run the above script, it will show message box "10".
once i press ok, there is an popup with an exception message below.

---------------------------
WScript.exe - Application Error
---------------------------
The exception unknown software exception (0xc0020001) occurred in the application at location 0x7c812aeb.

Click on OK to terminate the program
---------------------------
OK
---------------------------

if i remove /clr switch and build it run the Vbscirpt. i don't see the popup error.

any suggestion why there an exception when /clr switch is used ?

Thanks in advance.

modified 23-Aug-17 6:26am.

QuestionGetUsbDrive letter error Pin
Member 101933363-Aug-17 0:27
memberMember 101933363-Aug-17 0:27 
QuestionRe: GetUsbDrive letter error Pin
Richard MacCutchan3-Aug-17 1:18
protectorRichard MacCutchan3-Aug-17 1:18 
AnswerRe: GetUsbDrive letter error Pin
Member 101933363-Aug-17 2:26
memberMember 101933363-Aug-17 2:26 
GeneralRe: GetUsbDrive letter error Pin
Richard MacCutchan3-Aug-17 2:28
protectorRichard MacCutchan3-Aug-17 2:28 
GeneralRe: GetUsbDrive letter error Pin
Member 101933363-Aug-17 2:36
memberMember 101933363-Aug-17 2:36 
GeneralRe: GetUsbDrive letter error Pin
Richard MacCutchan3-Aug-17 2:37
protectorRichard MacCutchan3-Aug-17 2:37 
GeneralRe: GetUsbDrive letter error Pin
Richard MacCutchan3-Aug-17 2:32
protectorRichard MacCutchan3-Aug-17 2:32 
QuestionUse ATL COM DLL in VB Script which written in C++ Pin
GTAVLover11-Jul-17 15:03
memberGTAVLover11-Jul-17 15:03 
AnswerRe: Use ATL COM DLL in VB Script which written in C++ Pin
Richard MacCutchan11-Jul-17 21:35
protectorRichard MacCutchan11-Jul-17 21:35 
GeneralRe: Use ATL COM DLL in VB Script which written in C++ Pin
GTAVLover11-Jul-17 22:02
memberGTAVLover11-Jul-17 22:02 
GeneralRe: Use ATL COM DLL in VB Script which written in C++ Pin
Richard MacCutchan11-Jul-17 22:06
protectorRichard MacCutchan11-Jul-17 22:06 
QuestionGet struct-members' names in Visual Studio console application? Pin
arnold_w25-Mar-17 0:11
memberarnold_w25-Mar-17 0:11 
AnswerRe: Get struct-members' names in Visual Studio console application? Pin
Richard MacCutchan25-Mar-17 0:35
protectorRichard MacCutchan25-Mar-17 0:35 
GeneralRe: Get struct-members' names in Visual Studio console application? Pin
arnold_w25-Mar-17 0:58
memberarnold_w25-Mar-17 0:58 
GeneralRe: Get struct-members' names in Visual Studio console application? Pin
Richard MacCutchan25-Mar-17 1:01
protectorRichard MacCutchan25-Mar-17 1:01 
GeneralRe: Get struct-members' names in Visual Studio console application? Pin
arnold_w25-Mar-17 1:33
memberarnold_w25-Mar-17 1:33 
GeneralRe: Get struct-members' names in Visual Studio console application? Pin
Richard MacCutchan25-Mar-17 1:42
protectorRichard MacCutchan25-Mar-17 1:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.180712.1 | Last Updated 16 Jul 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid