Click here to Skip to main content
15,900,815 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: This works, but is it the right way to do it Pin
Christian Graus6-Nov-02 15:42
protectorChristian Graus6-Nov-02 15:42 
GeneralRe: This works, but is it the right way to do it Pin
kjessee6-Nov-02 15:56
kjessee6-Nov-02 15:56 
Generalsimple ATL-COM question. Pin
devvvy6-Nov-02 15:14
devvvy6-Nov-02 15:14 
GeneralRe: simple ATL-COM question. Pin
Christian Graus6-Nov-02 15:30
protectorChristian Graus6-Nov-02 15:30 
GeneralRe: simple ATL-COM question. Pin
Stefan Pedersen6-Nov-02 15:37
Stefan Pedersen6-Nov-02 15:37 
Generalkeep getting invalid progID Pin
devvvy6-Nov-02 15:57
devvvy6-Nov-02 15:57 
GeneralRe: keep getting invalid progID Pin
Stefan Pedersen6-Nov-02 16:12
Stefan Pedersen6-Nov-02 16:12 
Generalokay, now it's working, BUT.... Pin
devvvy6-Nov-02 17:55
devvvy6-Nov-02 17:55 
thanks for the feedback. I've got my server properly registered.

it's a simple method that add two numbers:

STDMETHODIMP CATLStringParser::AddTwoNum(long Num1, long Num2, long *ReturnVal)
{
// TODO: Add your implementation code here
*ReturnVal = Num1 + Num2;

return S_OK;
}

But i am not sure how to make the ASP call:

<%
Set obj=Server.CreateObject("StringParser.ATLStringParser")
some_num = obj.AddTwoNum(10, 2) //PROBLEM HERE!

%>


<title>
Test simple ATL ActiveX control server.


... some processing ...



For some reason, I keep getting:

Error Type:
Microsoft VBScript runtime (0x800A01C2)
Wrong number of arguments or invalid property assignment: 'obj.AddTwoNum'
/MyCookiesServ.asp, line 3


I've tried a few things already:
some_num = obj.AddTwoNum(10, 2)
obj.AddTwoNum(10, 2, some_num)

none worked. Help!


norm
GeneralMSDev.exe crashing at startup Pin
Chris Meech6-Nov-02 14:31
Chris Meech6-Nov-02 14:31 
GeneralRe: MSDev.exe crashing at startup Pin
James Spibey7-Nov-02 0:20
James Spibey7-Nov-02 0:20 
GeneralRe: MSDev.exe crashing at startup Pin
Chris Meech7-Nov-02 2:43
Chris Meech7-Nov-02 2:43 
QuestionCan anyone see the problem in this code? Pin
Anonymous6-Nov-02 13:33
Anonymous6-Nov-02 13:33 
AnswerRe: Can anyone see the problem in this code? Pin
moliate6-Nov-02 14:29
moliate6-Nov-02 14:29 
GeneralRe: Can anyone see the problem in this code? Pin
Anonymous7-Nov-02 6:48
Anonymous7-Nov-02 6:48 
GeneralRe: Can anyone see the problem in this code? Pin
moliate7-Nov-02 12:15
moliate7-Nov-02 12:15 
GeneralApplication hiding and inactive at startup Pin
Anonymous6-Nov-02 13:10
Anonymous6-Nov-02 13:10 
GeneralDeleting objects created with the new operator Pin
Daniel Jurnove6-Nov-02 12:59
sussDaniel Jurnove6-Nov-02 12:59 
GeneralRe: Deleting objects created with the new operator Pin
Christian Graus6-Nov-02 13:15
protectorChristian Graus6-Nov-02 13:15 
GeneralRe: Deleting objects created with the new operator Pin
Maximilien6-Nov-02 13:17
Maximilien6-Nov-02 13:17 
GeneralVisual studio installer, shortcut question Pin
Anonymous6-Nov-02 12:58
Anonymous6-Nov-02 12:58 
Generalpoppin controls in win32 api Pin
stephen.hazel6-Nov-02 12:42
stephen.hazel6-Nov-02 12:42 
GeneralProfiling with Visual C++net Pin
el666-Nov-02 12:30
el666-Nov-02 12:30 
GeneralRe: Profiling with Visual C++net Pin
Nick Hodapp6-Nov-02 12:42
sitebuilderNick Hodapp6-Nov-02 12:42 
GeneralRe: Profiling with Visual C++net Pin
el667-Nov-02 4:05
el667-Nov-02 4:05 
GeneralCString and console app. Pin
Nick Parker6-Nov-02 11:49
protectorNick Parker6-Nov-02 11:49 

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.