[DllImport("SG_[B][COLOR="Red"]VFD[/COLOR][/B].dll", EntryPoint = "iMONVFD_SetText")] // VFD specific[BR]
private static extern bool iMONVFD_SetText(string firstLine, string secondLine);[BR]
[DllImport("[COLOR="blue"]SG_LCD.dll[/COLOR]", EntryPoint = "iMONVFD_SetText")] // VFD specific[BR]
private static extern bool iMONVFD_[COLOR="Blue"]SetTextLCD[/COLOR](string firstLine, string secondLine);[BR]
[BR]
[DllImport("[COLOR="blue"]SG_VFD.dll[/COLOR]", EntryPoint = "iMONVFD_SetText")] // VFD specific[BR]
private static extern bool iMONVFD_[COLOR="blue"]SetTextVFD[/COLOR](string firstLine, string secondLine);[BR]
cybermage, JoeDalton,
I found a fix for my VFD ( Soundgraph firmware version 0x80 ).
Here the code I changed to have it working:
Code:[DllImport("SG_[B][COLOR="Red"]VFD[/COLOR][/B].dll", EntryPoint = "iMONVFD_SetText")] // VFD specific[BR] private static extern bool iMONVFD_SetText(string firstLine, string secondLine);[BR]
Then if SetText is used only by VFD as by code design this will not break things for others, otherwise we can think using the following:
Code:[DllImport("[COLOR="blue"]SG_LCD.dll[/COLOR]", EntryPoint = "iMONVFD_SetText")] // VFD specific[BR] private static extern bool iMONVFD_[COLOR="Blue"]SetTextLCD[/COLOR](string firstLine, string secondLine);[BR] [BR] [DllImport("[COLOR="blue"]SG_VFD.dll[/COLOR]", EntryPoint = "iMONVFD_SetText")] // VFD specific[BR] private static extern bool iMONVFD_[COLOR="blue"]SetTextVFD[/COLOR](string firstLine, string secondLine);[BR]
Cybermage, please test this code on your hardware and report if everything is working fine or not...
If everything is working I suggest to call the dll respectively: SG_VFD3.DLL and SG_VFD5.DLL this will help in future to remember the difference and make available the choice to add a SG_VFD6.DLL...
Simone