Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

CHook list_manager Help


Recommended Posts

Hi Friends

 

When I try to use the following Function

 

list_manager (TL_ID, tool_library, LSTMGR_GET, &tl_head);

 

I define tl_list *tl_head;

 

error created while compling

 

error C2664: 'void *(unsigned long,char *,short,void ** )' : cannot convert parameter 4 from 'struct _tl_list ** ' to 'void ** '

 

What to do for resolve this error.

 

Thanks in advance.

Ajit

Link to comment
Share on other sites

This function defined in file

C:CHDevM_ASSOC.H is as below

 

// Purpose: retrieve or free COPIES of linked lists of operations, tools or

// material lists from libraries or the current database

#define LSTMGR_GET 0 // get a linked list of operations, tools or matls from databse or library

#define LSTMGR_FREE 1 // free memory from a linked list

EXTERN void * (*_list_manager) (

ulong lib_type, // I: list item type (OP_ID, TL_ID or M_ID)

char *lib_name, // I: library name or "" (null string) for current database

short mode, // I: LSTMGR_GET or LSTMGR_FREE

void **list_ptr); // IO: pointer to alloc'd linked list of items

#define list_manager (*_list_manager)

Link to comment
Share on other sites

In my experience with the list_manager() function, I've noticed that when compiling as a C++ program, I get the same compiler error that you do. It hates the fourth paramter. No matter what kind of pointer you try to pass, even a void one, the same error results. But when I complile as a C program, all is fine (except for the fact that I'm stuck using C for that given project).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...