Question: Delphi (XE8, Seattle and Berlin) seems to remember the invalid paths. As shown in the third picture, these paths are only valid on my old laptop, but when I copied the project to my current desktop, it shouldn't remember these, and I can't find anywhere else that stores these paths.

The dcc32 and dcc64 both save these invalid paths in the command line.

How can I delete these invalid paths?

[![Project Directory](https://i.stack.imgur.com/dIh5N.png)](https://i.stack.imgur.com/dIh5N.png)

[![Paths Configuration](https://i.stack.imgur.com/w1PtQ.png)](https://i.stack.imgur.com/w1PtQ.png)

[![Invalid Paths](https://i.stack.imgur.com/1BbUv.png)](https://i.stack.imgur.com/1BbUv.png)

Answer: 
Can you use a template instead?

```
template<class T>
void func(T const& param) {
    // here I need copy data from param
    T copy_data = param;
    ...
}

// call it like this
func(data);

```
Ideally you must not use `void*` along with structures and classes. `struct`/`class` may not be **POD** (Plain Object Data - having only data, no virtual-functions, constructors, destructors, inheritance etc.). Better write custom code to copy classes, preferably within class itself. That's why we have copy constructors, assignment operators to override.

Later, when you know and learn more of language, you can write template based code.