Thread: safearray

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    safearray

    Hello everyone,


    Could anyone recommend some tutorials about safearray please?

    http://msdn2.microsoft.com/en-us/lib...82(vs.80).aspx


    thanks in advance,
    George

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    You are aware, of course, that SAFEARRAYs are Windows-only? Your code wouldn't be very portable if you used them. Still want to use them? This person had very good advise (the first person, not the second one): http://www.thescripts.com/forum/thread739507.html

    If all you want is an array that can hold an arbitrary number of elements or that warns you when you overstep its boundaries, look into STL containers such as vectors. http://www.thescripts.com/forum/thread739507.html
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. VARIANT function or variable?
    By NewGuy100 in forum C Programming
    Replies: 7
    Last Post: 07-29-2005, 12:54 PM