I am new in the pascal and i would like to guide me how to include the ch341dll into my program.
You have a nice set of example code that is written in/for Delphi.
Until know i found from the Chinese manufacture some examples which have in pascal and i use it but when i start to execute the program the lazarus show's me a message that the execution has been stopped without any other information.
And how have you 'converted' those Delphi examples to Lazarus ? (rethorical)
I doubt the "Stopped without any further information" unless you have done something out of the ordinary (which is not a problem, but guessing what that might be is an impossible job).
Nobody else is able to reproduce unless having the exact same hardware... a chance of 1 in ... what shall we say 100.000 ?
I am attaching the zip file which provide the manufacture which contains the pascal examples
Yes, I have seen them. The examples seem nice.
and my code.
You have no code (for Lazarus) other then a button that does nothing when you press it.
Thank you in advance for your time.
It is a matter of copy-paste... !?
So, for sure I must be misunderstanding something.
The basic idea is that, depending on what hardware you have connected to that USB device, you need to use the corresponding accompanied Delphi code (translate that to Lazarus = copy-paste). Ergo what code applies for your situation depends on what hardware you have connected. You did not mention that.
The basic commands (API calls) should be performed first like opening (CH341OpenDevice) and closing (CH341CloseDevice) the device.
You should start with that and see if that works for you /first/.
If those commands are not working for you when you run your program then I would advise to download one of the online available tools that communicate with that specific device so you are able to do some basic testing.
The package as you have does not officially support windows 10, let alone 64-bit (all provided files/drivers are 32 bit). So more information on your used OS and which version and bitness of Lazarus you use is information that is required before someone is even able to help you out.
You can do much more then you think... and that is helping us so that we can help you
