Click here to Skip to main content
15,880,891 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Member 1347149317-Oct-17 22:29
Member 1347149317-Oct-17 22:29 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Richard MacCutchan17-Oct-17 22:45
mveRichard MacCutchan17-Oct-17 22:45 
AnswerRe: How To Add a Dll TO MFC Application in visual Studio Pin
Jochen Arndt17-Oct-17 22:44
professionalJochen Arndt17-Oct-17 22:44 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Member 1347149317-Oct-17 23:13
Member 1347149317-Oct-17 23:13 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Jochen Arndt17-Oct-17 23:29
professionalJochen Arndt17-Oct-17 23:29 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Richard MacCutchan18-Oct-17 0:16
mveRichard MacCutchan18-Oct-17 0:16 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Member 1347149318-Oct-17 0:58
Member 1347149318-Oct-17 0:58 
QuestionRe: How To Add a Dll TO MFC Application in visual Studio Pin
Richard MacCutchan18-Oct-17 1:18
mveRichard MacCutchan18-Oct-17 1:18 
GeneralRe: How To Add a Dll TO MFC Application in visual Studio Pin
Jochen Arndt18-Oct-17 1:40
professionalJochen 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
Vijjuuu.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
Member 101933363-Aug-17 0:27 
QuestionRe: GetUsbDrive letter error Pin
Richard MacCutchan3-Aug-17 1:18
mveRichard MacCutchan3-Aug-17 1:18 
AnswerRe: GetUsbDrive letter error Pin
Member 101933363-Aug-17 2:26
Member 101933363-Aug-17 2:26 
GeneralRe: GetUsbDrive letter error Pin
Richard MacCutchan3-Aug-17 2:28
mveRichard MacCutchan3-Aug-17 2:28 
GeneralRe: GetUsbDrive letter error Pin
Member 101933363-Aug-17 2:36
Member 101933363-Aug-17 2:36 
GeneralRe: GetUsbDrive letter error Pin
Richard MacCutchan3-Aug-17 2:37
mveRichard MacCutchan3-Aug-17 2:37 
GeneralRe: GetUsbDrive letter error Pin
Richard MacCutchan3-Aug-17 2:32
mveRichard MacCutchan3-Aug-17 2:32 
QuestionUse ATL COM DLL in VB Script which written in C++ Pin
GTAVLover11-Jul-17 15:03
GTAVLover11-Jul-17 15:03 
AnswerRe: Use ATL COM DLL in VB Script which written in C++ Pin
Richard MacCutchan11-Jul-17 21:35
mveRichard MacCutchan11-Jul-17 21:35 
GeneralRe: Use ATL COM DLL in VB Script which written in C++ Pin
GTAVLover11-Jul-17 22:02
GTAVLover11-Jul-17 22:02 
GeneralRe: Use ATL COM DLL in VB Script which written in C++ Pin
Richard MacCutchan11-Jul-17 22:06
mveRichard MacCutchan11-Jul-17 22:06 
QuestionGet struct-members' names in Visual Studio console application? Pin
arnold_w25-Mar-17 0:11
arnold_w25-Mar-17 0:11 
AnswerRe: Get struct-members' names in Visual Studio console application? Pin
Richard MacCutchan25-Mar-17 0:35
mveRichard MacCutchan25-Mar-17 0:35 
GeneralRe: Get struct-members' names in Visual Studio console application? Pin
arnold_w25-Mar-17 0:58
arnold_w25-Mar-17 0:58 

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.