Results 1 to 3 of 3

Thread: A tricky one :o)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Location
    Mexico
    Posts
    25

    Unhappy A tricky one :o)

    Hi:

    I'm a newbie Visual C ++ programmer, and I'm trying to do a Simple chat using winsock.ocx, I have already done one in VB5 but now I would like to do it in VC.

    Mainly, i'm having problems with .Connect metod, I don't understand what Const VARIANT &RemoteHost and Const VARIANT &RemotePort means.

    PD: I have a chat example but it uses API and i would like to do it just using winsock.ocx.

    Thanks and I hope you help.
    The 'H' ^_^

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Wait a moment.

    First, OCX is evil. ActiveX in general is evil, but even more so if you use it in C++. Don't if you can avoid it. The API is much faster and easier to use as you don't have to mess around with VARIANTs and SAFEARRAYs and BSTRs, all those evil VB data types.

    Second, I how much of a newbie are you? Unless you know the language you probably shouldn't go as far as using the API, it can get very confusing.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    If you use the winsock OCX, which was intended for VB (and AFAIK, made in VB), that sort of defeats the purpose of programming in VC++.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width