Results 1 to 5 of 5

Thread: Error

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    Error

    I have a dll written in C.

    When I use one of the functions I get the following error:

    ByRef argument Type Mismatch

    and it highlights a variable that I'm passing.

    The variable is of a User Type that I declare before using.

    Any ideas??

    thanks,
    Don't anthropomorphize computers -- they hate it

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Try

    Byval Param as Variant

  3. #3

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    I can't because it's a user defined type variable.
    Don't anthropomorphize computers -- they hate it

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Its very hard to guess the problem without seeing some of your code.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    Thanks,

    I figured it out. It had to do that the type was declared twice.
    Don't anthropomorphize computers -- they hate it

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