Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 17th, 2003, 08:52 PM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ActiveX on Borland C++ Builder

I try to create ActiveX this way:
Main Menu->File->New+->ActiveX->ActiveX Library.
Save, build.
Main Menu->File->New+->ActiveX->Active Server Object.
Enter CoClass Name.
Add the New Method, its parameters are:
Name Value, Type long *, Modifier [in, out]
After this, the Builder is creating the new method in code, I make it so:
STDMETHODIMP TCCActiveXLibEImpl::Method1(long* Value)
{
*Value=65; return S_OK;
}
Save, build.
Run Web Deploy options and enter all the same paths on my Web-server.
Run Web Deploy.
Main Menu->Run->Register ActiveX Server
I try to rum ASP with:
dim t
CBuilderASPObj.Method1(t)
, but t is not changing.
What did I wrong?
Thank you.


!
Reply With Quote
  #2 (permalink)  
Old December 27th, 2004, 03:52 PM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Passing Parameters by Reference

If you're accustomed to programming in VB or VBA, you'll recognize the way that you pass arguments in VBScript. However, in Versions 1 and 2 of VBScript, this wasn't the case. Parameters could be passed only by value, and there was no support for passing parameters by reference.

I suggest use return value function
check this links for information:

http://www.intranetjournal.com/articles/200009/vb4.html
http://msdn.microsoft.com/library/de...classtopic.asp


Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
help for borland c++ compiler Shadowfire C++ Programming 1 April 11th, 2008 03:11 PM
Borland c++ IDE The Beginner C++ Programming 7 March 3rd, 2007 06:41 AM
Borland C++ to MS C# - Possible? wsiler C++ Programming 1 May 17th, 2006 04:55 PM
Controlling Speaker with Borland Delphi 6.0 Randhy Other Programming Languages 0 April 1st, 2006 08:02 AM
Porting simple code from Borland to VC++ david_2138 Visual C++ 1 December 18th, 2004 08:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.