Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: remember Pin
Malcolm McMahon25-Jun-01 4:48
Malcolm McMahon25-Jun-01 4:48 
GeneralRe: remember Pin
Amit Jain25-Jun-01 5:30
Amit Jain25-Jun-01 5:30 
GeneralRe: remember Pin
Malcolm McMahon25-Jun-01 6:09
Malcolm McMahon25-Jun-01 6:09 
Generalyupyup Pin
Amit Jain25-Jun-01 7:23
Amit Jain25-Jun-01 7:23 
GeneralRe: yupyup Pin
Malcolm McMahon26-Jun-01 3:23
Malcolm McMahon26-Jun-01 3:23 
GeneralRe: yupyup Pin
Tomasz Sowinski26-Jun-01 3:36
Tomasz Sowinski26-Jun-01 3:36 
GeneralRe: yupyup Pin
Malcolm McMahon26-Jun-01 5:05
Malcolm McMahon26-Jun-01 5:05 
GeneralVC++ COM and ASP stuff Pin
lea22-Jun-01 4:58
lea22-Jun-01 4:58 
Hello,

I know very little about C++ and what I do know has been classes compiled on Borlands free command line compiler. I have a task to complete with VC++, and after opening it up got scared looking at all those buttons and menus. Nether the less, a job is a job.

I need to create a COM dll file that I can access via ASP or VB. I've searched the web for this stuff and can't find much at all.

I found the ATL COM app wizard and setup a basic DLL outline, then added a new ATL object. I added a method to that and at this stage can compile the lot and view the dll from VB.

My problem (at this stage) seems to be returning any value from the component. VB seems to recorgnise it as a Sub as opposed to a Function. Also, if I try to give the method any other return value appart from HRESULT I get into trouble.

So how do I make a call like "a = b.Add(4, 6)" in VB to get the result retruned into a?

I can see my next problem coming, how do I return an array??

Thanks anyoneSuspicious | :suss:

Lea
GeneralRe: VC++ COM and ASP stuff Pin
Carlos Antollini22-Jun-01 5:26
Carlos Antollini22-Jun-01 5:26 
GeneralRe: VC++ COM and ASP stuff Pin
lea22-Jun-01 5:42
lea22-Jun-01 5:42 
GeneralRe: VC++ COM and ASP stuff Pin
Carlos Antollini22-Jun-01 6:22
Carlos Antollini22-Jun-01 6:22 
GeneralRe: VC++ COM and ASP stuff Pin
lea25-Jun-01 4:36
lea25-Jun-01 4:36 
GeneralRe: VC++ COM and ASP stuff Pin
lea25-Jun-01 4:36
lea25-Jun-01 4:36 
Generallogging method arguments Pin
Brian van der Beek22-Jun-01 4:24
Brian van der Beek22-Jun-01 4:24 
GeneralRe: logging method arguments Pin
Tomasz Sowinski22-Jun-01 4:34
Tomasz Sowinski22-Jun-01 4:34 
GeneralRe: logging method arguments Pin
Brian van der Beek23-Jun-01 22:52
Brian van der Beek23-Jun-01 22:52 
GeneralRe: logging method arguments Pin
Tomasz Sowinski25-Jun-01 2:00
Tomasz Sowinski25-Jun-01 2:00 
GeneralRe: logging method arguments Pin
Brian van der Beek25-Jun-01 11:33
Brian van der Beek25-Jun-01 11:33 
GeneralRe: logging method arguments Pin
Tomasz Sowinski26-Jun-01 0:37
Tomasz Sowinski26-Jun-01 0:37 
GeneralProcess viewer Pin
22-Jun-01 4:24
suss22-Jun-01 4:24 
GeneralChanging font in CListbox! Pin
22-Jun-01 4:21
suss22-Jun-01 4:21 
GeneralRe: Changing font in CListbox! Pin
Tomasz Sowinski22-Jun-01 4:30
Tomasz Sowinski22-Jun-01 4:30 
Generalemail link Pin
Monka22-Jun-01 4:12
Monka22-Jun-01 4:12 
GeneralRe: email link Pin
J Patel22-Jun-01 8:18
J Patel22-Jun-01 8:18 
GeneralRe: email link Pin
Ben Burnett22-Jun-01 8:24
Ben Burnett22-Jun-01 8:24 

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.