cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-824881%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EComment%20recevoir%20des%20messages%20depuis%20Windows%20en%20utilisant%20le%20logiciel%20JSL%20du%20logiciel%20JMP%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-824881%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%20%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EMon%20syst%C3%A8me%20d'exploitation%20est%20Windows%2010%2064%20bits.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%20%3C%2FP%3E%3CP%20class%3D%22%22%3EMerci%20les%20experts%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-824881%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAutomatisation%20et%20scripts%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFen%C3%AAtres%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-824891%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3ERe%20%3A%20Comment%20recevoir%20des%20messages%20depuis%20Windows%20en%20utilisant%20JSL%20du%20logiciel%20JMP%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-824891%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EBesoin%20de%20plus%20d'informations.%20Que%20cherchez-vous%20%C3%A0%20faire%20%3F%20S'agit-il%20de%20l'API%20du%20syst%C3%A8me%20d'exploitation%20Windows%20%3F%20S'agit-il%20d'un%20programme%20particulier%20%3F%3C%2FP%3E%0A%3CP%3Eedit%20%3A%20Est-ce%20que%20cela%20concerne%20le%20courrier%20%C3%A9lectronique%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-824893%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Comment%20recevoir%20des%20messages%20depuis%20Windows%20en%20utilisant%20JSL%20du%20logiciel%20JMP%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-824893%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMerci%20les%20experts%20!%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EIl%20s'agit%20d'un%20logiciel%20client%20de%20transfert%20de%20donn%C3%A9es.%3CBR%20%2F%3E%20Il%20impl%C3%A9mente%20la%20transmission%20de%20donn%C3%A9es%20API%20via%20DLL.%3CBR%20%2F%3E%20Il%20fournit%20des%20sp%C3%A9cifications%20d'interface%20de%20donn%C3%A9es.%3CBR%20%2F%3E%20Il%20est%20bas%C3%A9%20sur%20C%23%3CBR%20%2F%3E%20Je%20ne%20sais%20pas%20comment%20le%20changer%20en%20une%20impl%C3%A9mentation%20JSL.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-824894%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Comment%20recevoir%20des%20messages%20depuis%20Windows%20en%20utilisant%20JSL%20du%20logiciel%20JMP%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-824894%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EIl%20y%20a%20plus%20de%20r%C3%A9glementations.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EJ'en%20ai%20extrait%20quelques%20extraits.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EC'est%20ma%20premi%C3%A8re%20exp%C3%A9rience%20avec%20ce%20genre%20de%20contenu.%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3EDonc%20je%20ne%20sais%20pas%20comment%20g%C3%A9rer%20%C3%A7a.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EMerci%20pour%20l'aide%20de%20l'expert.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Econst%0A%2F%2F%20Work%20mode%20type%20definition%0ARCV_WORK_SENDMSG%20%3D%204%20%2F%2F%20Message%20work%20mode%0A%0A%0A%2F%2F%20Message%20subtypes%0ANews_Sha_Ex%20%3D%202%20%2F%2F%20The%20firsttype%20message%0ANews_Szn_Ex%20%3D%204%20%2F%2F%20The%20secondtype%20message%0A%0A%2F%2F%20Data%0A%5BStructLayout(LayoutKind.Sequential%2C%20CharSet%20%3D%20CharSet.Ansi%2C%20Pack%20%3D%201)%5D%0Apublic%20struct%20RCV_REPORT_STRUCTExV3%0A%7B%0A%20%20%20%20public%20UInt16%20m_cbSize%3B%20%2F%2F%20Structure%20size%0A%20%20%20%20public%20Int32%20m_time%3B%20%2F%2F%20Transaction%20time%0A%20%20%20%20public%20Single%20m_fHigh%3B%20%2F%2F%20Maximum%0A%20%20%20%20public%20Single%20m_fLow%3B%20%2F%2F%20Minimum%0A%20%20%20%20public%20Single%20m_fNewPrice%3B%20%2F%2F%20Latest%0A%20%20%20%20public%20Single%20m_fVolume%3B%20%2F%2F%20Production%20volume%0A%20%20%20%20public%20Single%20m_fAmount%3B%20%2F%2F%20Production%20value%0A%20%20%20%20%5BMarshalAs(UnmanagedType.ByValArray%2C%20SizeConst%20%3D%203)%5D%0A%20%20%20%20public%20Single%5B%5D%20m_fputPrice%3B%20%2F%2F%20Entry%20storage%20price%201%2C2%2C3%0A%20%20%20%20%5BMarshalAs(UnmanagedType.ByValArray%2C%20SizeConst%20%3D%203)%5D%0A%20%20%20%20public%20Single%5B%5D%20m_fputVolume%3B%20%2F%2F%20Entry%20storage%20volume%201%2C2%2C3%0A%20%20%20%20%5BMarshalAs(UnmanagedType.ByValArray%2C%20SizeConst%20%3D%203)%5D%0A%20%20%20%20public%20Single%5B%5D%20m_ftransPrice%3B%20%2F%2F%20Transfer%20application%20price%201%2C2%2C3%0A%20%20%20%20%5BMarshalAs(UnmanagedType.ByValArray%2C%20SizeConst%20%3D%203)%5D%0A%20%20%20%20public%20Single%5B%5D%20m_ftransVolume%3B%20%2F%2F%20Transfer%20application%20volume%201%2C2%2C3%0A%20%20%20%20public%20Single%20m_fputPrice4%3B%20%2F%2F%20Entry%20storage%20price%204%0A%20%20%20%20public%20Single%20m_fputVolume4%3B%20%2F%2F%20Entry%20storage%20volume%204%0A%20%20%20%20public%20Single%20m_ftransPrice4%3B%20%2F%2F%20Transfer%20application%20price%204%0A%20%20%20%20public%20Single%20m_ftransVolume4%3B%20%2F%2F%20Transfer%20application%20volume%204%0A%20%20%20%20public%20Single%20m_fputPrice5%3B%20%2F%2F%20Entry%20storage%20price%205%0A%20%20%20%20public%20Single%20m_fputVolume5%3B%20%2F%2F%20Entry%20storage%20volume%205%0A%20%20%20%20public%20Single%20m_ftransPrice5%3B%20%2F%2F%20Transfer%20application%20price%205%0A%20%20%20%20public%20Single%20m_ftransVolume5%3B%20%2F%2F%20Transfer%20application%20volume%205%0A%7D%3B%0A%0A%0A%7D%0A%0A%0A%2F%2F%20Data%20notification%20message%0A%2F%2F%20Direct%20data%20reference%20notification%20message%0A%2F%2F%20wParam%20%3D%20RCV_WPARAM%3B%0A%2F%2F%20lParam%20points%20to%20the%20RCV_DATA%20structure%3B%0A%2F%2F%20Return%201%20if%20processed%2C%200%20if%20unprocessed%20or%20unable%20to%20process%0A%2F%2F%20Note%201%3A%0A%2F%2F%20The%20number%20of%20records%20represents%20the%20number%20of%20data%20packets%20of%20market%20data%20and%20supplementary%20data%20(including%20Header).%20For%20file%20type%20data%2C%20%3D%201%0A%2F%2F%20Note%202%3A%0A%2F%2F%20If%20m_bDISK%20%3D%20FALSE%2C%20m_pData%20is%20the%20data%20buffer%20pointer%0A%2F%2F%20********%20Data%20sharing%2C%20do%20not%20modify%20data%20**********%0A%2F%2F%20m_bDISK%20%3D%20TRUE%2C%20m_pData%20is%20the%20file%20storage%20name%20of%20the%20file.%20Generally%2C%20only%20large%20files%20such%20as%20upgrade%20software%20use%20the%20storage%20method%0A%2F%2F%20%5BStructLayout(LayoutKind.Sequential%2C%20CharSet%20%3D%20CharSet.Ansi%2C%20Pack%20%3D%201)%5D%0Apublic%20struct%20RCV_DATA%0A%7B%0A%20%20%20%20public%20int%20m_wDataType%3B%20%2F%2F%20File%20type%0A%20%20%20%20public%20int%20m_nPacketNum%3B%20%2F%2F%20Number%20of%20records%2C%20see%20Note%201%0A%20%20%20%20public%20RCV_FILE_HEADEx%20m_File%3B%20%2F%2F%20File%20interface%0A%20%20%20%20public%20int%20m_bDISK%3B%20%2F%2F%20Whether%20the%20file%20is%20stored%0A%20%20%20%20public%20IntPtr%20m_pData%3B%0A%7D%3B%0A%2F%2F%20Tick%20data%20%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%0A%5BStructLayout(LayoutKind.Sequential%2C%20CharSet%20%3D%20CharSet.Ansi%2C%20Pack%20%3D%201)%5D%20%0Apublic%20struct%20RCV_FENBI_STRUCTEx%0A%7B%0A%20%20%20%20public%20int%20m_lTime%3B%20%2F%2F%20hhmmss%20Example%3A%2093056%20indicates%209%3A%0A%20%20%20%20public%20Single%20m_fHigh%3B%20%2F%2F%20Maximum%0A%20%20%20%20public%20Single%20m_fLow%3B%20%2F%2F%20Minimum%20%0A%20%20%20%20public%20Single%20m_fNewPrice%3B%20%2F%2F%20Latest%20%0A%20%20%20%20public%20Single%20m_fVolume%3B%20%2F%2F%20Production%20volume%0A%20%20%20%20public%20Single%20m_fAmount%3B%20%2F%2F%20Production%20value%0A%20%20%20%20public%20int%20m_lStroke%3B%20%2F%2F%20Reserved%0A%20%20%20%20%5BMarshalAs(UnmanagedType.ByValArray%2C%20SizeConst%20%3D%205)%5D%0A%20%20%20%20public%20Single%5B%5D%20m_fputPrice%3B%20%2F%2F%20Entry%20storage%20price%201%2C2%2C3%2C4%2C5%0A%20%20%20%20%5BMarshalAs(UnmanagedType.ByValArray%2C%20SizeConst%20%3D%205)%5D%0A%20%20%20%20public%20Single%5B%5D%20m_fputVolume%3B%20%2F%2F%20Entry%20storage%20volume%201%2C2%2C3%2C4%2C5%0A%20%20%20%20%5BMarshalAs(UnmanagedType.ByValArray%2C%20SizeConst%20%3D%205)%5D%0A%20%20%20%20public%20Single%5B%5D%20m_ftransPrice%3B%20%2F%2F%20Transfer%20application%20price%201%2C2%2C3%2C4%2C5%0A%20%20%20%20%5BMarshalAs(UnmanagedType.ByValArray%2C%20SizeConst%20%3D%205)%5D%0A%20%20%20%20public%20Single%5B%5D%20m_ftransVolume%3B%20%2F%2F%20Transfer%20application%20volume%201%2C2%2C3%2C4%2C5%0A%7D%3B%0A%5BStructLayout(LayoutKind.Sequential%2C%20CharSet%20%3D%20CharSet.Ansi%2C%20Pack%20%3D%201)%5D%20%0Apublic%20struct%20RCV_FENBI%0A%7B%0A%20%20%20%20public%20UInt16%20m_wMarket%3B%20%2F%2F%20Customer%20market%20type%0A%20%20%20%20%5BMarshalAs(UnmanagedType.ByValArray%2C%20SizeConst%20%3D%2010)%5D%0A%20%20%20%20public%20char%5B%5D%20m_szLabel%3B%20%2F%2F%20Customer%20code%2C%20ending%20with%20'%5C0'%0A%20%20%20%20public%20Int32%20m_lDate%3B%20%2F%2F%20Date%20of%20tick%20data%20FORMAT%3A%0A%20%20%20%20public%20Single%20m_fLastClose%3B%20%2F%2F%20Yesterday's%20closing%20price%0A%20%20%20%20public%20Single%20m_fOpen%3B%20%2F%2F%20Today's%20opening%20price%0A%20%20%20%20public%20UInt16%20m_nCount%3B%20%2F%2F%20Data%20quantity%20of%20m_Data%2C%20number%20of%20ticks%0A%20%20%20%20public%20IntPtr%20m_Data%3B%20%2F%2F%20Length%20is%20m_nCount%0A%7D%3B%0A%0A%0A%2F%2F%20Message%20processing%20program%20DEMO%0Aprotected%20override%20void%20WndProc(ref%20System.Windows.Forms.Message%20m)%0A%7B%0A%20%20%20%20%2F%2F%20Detect%20message%20type%20%0A%20%20%20%20switch%20(m.WParam.ToInt32())%0A%20%20%20%20%7B%20%0A%20%20%20%20%20%20%20%20case%20RCV_REPORT%3A%20%2F%2F%20Shared%20data%20reference%20mode%2C%20customer%20market%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20RCV_DATA%20pHeader%20%3D%20PRCV_DATA(m.lParam)%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20for%20(i%20%3D%200%3B%20i%20%26lt%3B%20pHeader.m_nPacketNum%20-%201%3B%20i%2B%2B)%0A%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Data%20processing%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20case%20RCV_FENBIDATA%3A%20%7B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Interface-supplemented%20tick%20data%2C%20which%20refers%20to%20the%20tick%20data%20of%20the%20day%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20RCV_MKTTBLDATA%20%3A%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Received%20code%20table%20data%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20RCV_FINANCEDATA%20%3A%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Received%20financial%20data%0A%20%20%20%20%20%20%20%20%20%20%20%20break%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%0A%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%0A%2F%2F%20APIs%0A%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%0A%2F%2F%20Registration%20function%0A%2F%2F%20Customer%20initialization%0A%2F%2F%20Entry%20parameters%3A%0A%2F%2F%20hWnd%20Window%20handle%20for%20processing%20messages%0A%2F%2F%20Msg%20User-defined%20message%0A%2F%2F%20nWorkMode%20Interface%20work%20mode%2C%20see%20work%20mode%20type%20definition%0A%2F%2F%20Return%20parameters%3A%0A%2F%2F%201%20Success%20%0A%2F%2F%20-1%20Failure%0A%2F%2F%20Note%3A%0A%2F%2F%20After%20registration%2C%20the%20driver%20will%20send%20messages%20to%20the%20processing%20window%3B%20if%20not%20registered%2C%20data%20can%20also%20be%20obtained%20through%20query%0A%2F%2F%20If%20the%20customer%20receiving%20is%20not%20started%2C%20start%20the%20customer%20receiving%20program%0Apublic%20delegate%20int%20Stock_Init(IntPtr%20nHwnd%2C%20int%20nMsg%2C%20int%20nWorkMode)%3B%0A%2F%2F%20Exit%2C%20stop%20sending%20messages%0A%2F%2F%20Entry%20parameters%3A%0A%2F%2F%20hWnd%20Window%20handle%20for%20processing%20messages%2C%20the%20same%20as%20the%20calling%20entry%20parameter%20of%20Stock_Init%0A%2F%2F%20Return%20parameters%3A%0A%2F%2F%201%20Success%20%0A%2F%2F%20-1%20Failure%0Apublic%20delegate%20int%20Stock_Quit(IntPtr%20nHwnd)%3B%0A%2F%2F%20Activate%20the%20receiving%20program%20for%20setting%0A%2F%2F%20Entry%20parameters%3A%0A%2F%2F%20bSetup%20TRUE%20Show%20window%20for%20setting%0A%2F%2F%20FALSE%20Hide%20window%0A%2F%2F%20Return%20parameters%3A%0A%2F%2F%201%20Success%0A%2F%2F%20-1%20Failure%0Apublic%20delegate%20int%20SetupReceiver(bool%20bShowWindow)%3B%0A%2F%2F%20Get%20customer%20driver%20information%0A%2F%2F%20Entry%20parameters%3A%0A%2F%2F%20nInfo%20Index%0A%2F%2F%20pBuf%20Buffer%0A%2F%2F%20Exit%20parameters%3A%0A%2F%2F%20nInfo%20%3D%3D%20RI_IDSTRING%2C%20return%20the%20length%20of%20the%20characteristic%20string%2C%20pBuf%20is%20the%20characteristic%20string%0A%2F%2F%20Such%20as%3A%20%22TongShi_StockDrv_1.00%22%0A%2F%2F%20nInfo%20%3D%3D%20RI_IDCODE%2C%20return%20the%20information%20card%20ID%20number%2C%20pBuf%20is%20the%20ID%20number%20in%20string%20form%0A%2F%2F%20Such%20as%3A%200x78001234%20%2278001234%22%0A%2F%2F%20nInfo%20%3D%3D%20RI_VERSION%2C%20return%20the%20version%20number%20of%20the%20information%20card%2C%20pBuf%20is%20the%20version%20in%20string%0A%2F%2F%20Such%20as%3A%201.00%20%221.00%22%20%0A%2F%2F%20nInfo%20%3D%3D%20RI_V2SUPPORT%2C%20return%20whether%20the%20Shenzhen%20SJS%20library%20structure%20is%20supported%2C%20pBuf%20is%20invalid%0Apublic%20delegate%20int%20GetStockDrvInfo(int%20nInfo%2CIntPtr%20pBuf)%3B%0Apublic%20delegate%20int%20ReInitStockInfo()%3B%20%2F%2F%20Reserved%20function%2C%20not%20currently%20used%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-825060%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Comment%20recevoir%20des%20messages%20depuis%20Windows%20en%20utilisant%20JSL%20du%20logiciel%20JMP%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-825060%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ELes%20exemples%20%3CEM%3Ed'automatisation%3C%2FEM%3E%20JMP%20C%23%20pourraient%20vous%20aider.%20Je%20pense%20que%20%3CEM%3El'automatisation%3C%2FEM%3E%20pourrait%20%C3%AAtre%20le%20mot%20cl%C3%A9%20que%20vous%20recherchez.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-825073%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Comment%20recevoir%20des%20messages%20depuis%20Windows%20en%20utilisant%20JSL%20du%20logiciel%20JMP%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-825073%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMerci%20les%20experts%20!%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ehttps%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FCreate-JMP-datatable-from-C-DataTable-variable%2Fm-p%2F49392%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FCreate-JMP-datatable-from-C-DataTable-variable%2Fm-p%2F49392%22%20target%3D%22_self%22%3Ehttps%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FCreate-JMP-datatable-from-C-DataTable-variable%2Fmp%2F49392%3C%2FA%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-825074%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Comment%20recevoir%20des%20messages%20depuis%20Windows%20en%20utilisant%20JSL%20du%20logiciel%20JMP%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-825074%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ELisez%20ces%20articles.%20Mais%20le%20sujet%20est%20trop%20difficile%20pour%20moi.%20Aucun%20exemple%20similaire%20n'est%20trouv%C3%A9.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EMerci%20les%20experts%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

How to receive messages from windows using JSL of JMP software?

 

My operating system is 64-bit Windows 10.

 

Thanks Experts!

6 REPLIES 6
Craige_Hales
Super User

Re: How to receive messages from windows using JSL of JMP software?

Need more info. What are you trying to do? Is this about the windows OS API? Is this about a particular program?

edit: Is this about email?

Craige

Re: How to receive messages from windows using JSL of JMP software?

Thanks Experts!

 

 

It is a data transfer client software.
It implements API data transmission through DLL.
It provides data interface specifications.
It is based on C#
I don't know how to change it to a JSL implementation.

Re: How to receive messages from windows using JSL of JMP software?

It has more regulations.

I've excerpted some of it.

This is my first experience with this kind of content.So I don't know how to deal with it.

Thanks for the expert's help.

 

const
// Work mode type definition
RCV_WORK_SENDMSG = 4 // Message work mode


// Message subtypes
News_Sha_Ex = 2 // The firsttype message
News_Szn_Ex = 4 // The secondtype message

// Data
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct RCV_REPORT_STRUCTExV3
{
    public UInt16 m_cbSize; // Structure size
    public Int32 m_time; // Transaction time
    public Single m_fHigh; // Maximum
    public Single m_fLow; // Minimum
    public Single m_fNewPrice; // Latest
    public Single m_fVolume; // Production volume
    public Single m_fAmount; // Production value
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
    public Single[] m_fputPrice; // Entry storage price 1,2,3
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
    public Single[] m_fputVolume; // Entry storage volume 1,2,3
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
    public Single[] m_ftransPrice; // Transfer application price 1,2,3
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
    public Single[] m_ftransVolume; // Transfer application volume 1,2,3
    public Single m_fputPrice4; // Entry storage price 4
    public Single m_fputVolume4; // Entry storage volume 4
    public Single m_ftransPrice4; // Transfer application price 4
    public Single m_ftransVolume4; // Transfer application volume 4
    public Single m_fputPrice5; // Entry storage price 5
    public Single m_fputVolume5; // Entry storage volume 5
    public Single m_ftransPrice5; // Transfer application price 5
    public Single m_ftransVolume5; // Transfer application volume 5
};


}


// Data notification message
// Direct data reference notification message
// wParam = RCV_WPARAM;
// lParam points to the RCV_DATA structure;
// Return 1 if processed, 0 if unprocessed or unable to process
// Note 1:
// The number of records represents the number of data packets of market data and supplementary data (including Header). For file type data, = 1
// Note 2:
// If m_bDISK = FALSE, m_pData is the data buffer pointer
// ******** Data sharing, do not modify data **********
// m_bDISK = TRUE, m_pData is the file storage name of the file. Generally, only large files such as upgrade software use the storage method
// [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct RCV_DATA
{
    public int m_wDataType; // File type
    public int m_nPacketNum; // Number of records, see Note 1
    public RCV_FILE_HEADEx m_File; // File interface
    public int m_bDISK; // Whether the file is stored
    public IntPtr m_pData;
};
// Tick data ///////////////////////////////////
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)] 
public struct RCV_FENBI_STRUCTEx
{
    public int m_lTime; // hhmmss Example: 93056 indicates 9:
    public Single m_fHigh; // Maximum
    public Single m_fLow; // Minimum 
    public Single m_fNewPrice; // Latest 
    public Single m_fVolume; // Production volume
    public Single m_fAmount; // Production value
    public int m_lStroke; // Reserved
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
    public Single[] m_fputPrice; // Entry storage price 1,2,3,4,5
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
    public Single[] m_fputVolume; // Entry storage volume 1,2,3,4,5
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
    public Single[] m_ftransPrice; // Transfer application price 1,2,3,4,5
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 5)]
    public Single[] m_ftransVolume; // Transfer application volume 1,2,3,4,5
};
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)] 
public struct RCV_FENBI
{
    public UInt16 m_wMarket; // Customer market type
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
    public char[] m_szLabel; // Customer code, ending with '\0'
    public Int32 m_lDate; // Date of tick data FORMAT:
    public Single m_fLastClose; // Yesterday's closing price
    public Single m_fOpen; // Today's opening price
    public UInt16 m_nCount; // Data quantity of m_Data, number of ticks
    public IntPtr m_Data; // Length is m_nCount
};


// Message processing program DEMO
protected override void WndProc(ref System.Windows.Forms.Message m)
{
    // Detect message type 
    switch (m.WParam.ToInt32())
    { 
        case RCV_REPORT: // Shared data reference mode, customer market
        {
            RCV_DATA pHeader = PRCV_DATA(m.lParam);
            for (i = 0; i < pHeader.m_nPacketNum - 1; i++)
            {
                // Data processing
            }
        }

        case RCV_FENBIDATA: { 
            // Interface-supplemented tick data, which refers to the tick data of the day
            break;
        }
        RCV_MKTTBLDATA :{
            // Received code table data
            break;
        }
        RCV_FINANCEDATA :{
            // Received financial data
            break;
        }
    }
}
//////////////////////////////////////////////////////////////////////////////////
// APIs
//////////////////////////////////////////////////////////////////////////////////
// Registration function
// Customer initialization
// Entry parameters:
// hWnd Window handle for processing messages
// Msg User-defined message
// nWorkMode Interface work mode, see work mode type definition
// Return parameters:
// 1 Success 
// -1 Failure
// Note:
// After registration, the driver will send messages to the processing window; if not registered, data can also be obtained through query
// If the customer receiving is not started, start the customer receiving program
public delegate int Stock_Init(IntPtr nHwnd, int nMsg, int nWorkMode);
// Exit, stop sending messages
// Entry parameters:
// hWnd Window handle for processing messages, the same as the calling entry parameter of Stock_Init
// Return parameters:
// 1 Success 
// -1 Failure
public delegate int Stock_Quit(IntPtr nHwnd);
// Activate the receiving program for setting
// Entry parameters:
// bSetup TRUE Show window for setting
// FALSE Hide window
// Return parameters:
// 1 Success
// -1 Failure
public delegate int SetupReceiver(bool bShowWindow);
// Get customer driver information
// Entry parameters:
// nInfo Index
// pBuf Buffer
// Exit parameters:
// nInfo == RI_IDSTRING, return the length of the characteristic string, pBuf is the characteristic string
// Such as: "TongShi_StockDrv_1.00"
// nInfo == RI_IDCODE, return the information card ID number, pBuf is the ID number in string form
// Such as: 0x78001234 "78001234"
// nInfo == RI_VERSION, return the version number of the information card, pBuf is the version in string
// Such as: 1.00 "1.00" 
// nInfo == RI_V2SUPPORT, return whether the Shenzhen SJS library structure is supported, pBuf is invalid
public delegate int GetStockDrvInfo(int nInfo,IntPtr pBuf);
public delegate int ReInitStockInfo(); // Reserved function, not currently used
Craige_Hales
Super User

Re: How to receive messages from windows using JSL of JMP software?

The JMP C# automation examples might help. I think automation might be the keyword you are looking for.

Craige

Re: How to receive messages from windows using JSL of JMP software?

Thanks Experts!

 

https://community.jmp.com/t5/Discussions/Create-JMP-datatable-from-C-DataTable-variable/m-p/49392

https://community.jmp.com/t5/Discussions/Create-JMP-datatable-from-C-DataTable-variable/m-p/49392 

Re: How to receive messages from windows using JSL of JMP software?

Read these posts.But the subject is too difficult for me.No similar examples are found.


Thanks Experts!

Recommended Articles