分类
打造被動收入超過薪水

如何在 Quotex 存入和交易数字期权

Binary Options - IQ Option(binäre Optionen)

Windows CE串口通訊類的實現

我目前正在找 如何在 Quotex 存入和交易数字期权 WinCE 上可以控制 serial port 的方式.
只有限定語言為 C/C++, 其他以方便為主.
我 google 一些 example, 目前只找到我正在測試的 CreateFile, Serial Communictaions Functions, 以及 ReadFile/WriteFile 的 如何在 Quotex 存入和交易数字期权 example.

如果比較熟悉C/C++那麼 cmf大上面提到的smaple裡面就有呼叫Win API的部分了,您可以參考看看(我只大概瀏覽了一下,C我不熟);而 C#/VB 的話跑在compact framework 2.0上面是有serialport的控制項可以用會比較容易一些底層通訊都幫你包裝起來了;而以往在VS2003+compact framework 1.0的時候也是直接去呼叫Win API,上面我連結中到MS的下載中心,第二頁裡面也有一個sample可以參考(如何在 Quotex 存入和交易数字期权 compact framework的部份)。

要不用 CETK 先 make sure serial port is ok?

感謝各位熱心的回覆, 加強我對 WinCE 的興趣~

我看了 cmf 建議的文章, 跟我之前參考的類似, 也是使用到 win32 API.
但我卻發生問題, 應該是我哪邊出了錯沒注意.

至於 CETK 的部份, 我還不會用, 但我使用 CreateFile 去開 COM1 時, 有檢查回傳值都沒問題.

底下, 我先 post 出我的 code, 還請各位多多指教. 謝謝!

// test com port.cpp : 定義主控台應用程式的進入點。
//

int _tmain(int argc, _TCHAR* argv[])
HANDLE hCom1, hCom2, hCom9;
DCB dcb;

hCom1 = CreateFile(TEXT("COM1:"),GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);
if( hCom1 != INVALID_HANDLE_VALUE )
printf("Create COM1: OK, handel = %p\n",hCom1);
else
printf("Create COM1 failed. \n");

hCom2 = CreateFile(TEXT("COM2:"),GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);
if( hCom2 != INVALID_HANDLE_VALUE )
printf("Create COM2: OK, handel = %p\n",hCom2);
else
printf("Create COM2 failed. \n");

dcb.BaudRate = CBR_9600;
dcb.fBinary = TRUE;
dcb.fParity = TRUE;
dcb.fOutxCtsFlow = FALSE;
dcb.fOutxDsrFlow = FALSE;
dcb.fDtrControl = DTR_CONTROL_ENABLE;
dcb.fDsrSensitivity = FALSE;
dcb.fTXContinueOnXoff = TRUE;
//dcb.fTXContinueOnXoff = FALSE;
dcb.fOutX = FALSE;
dcb.fInX = FALSE;
dcb.fErrorChar = FALSE;
dcb.fNull = FALSE;
dcb.fRtsControl = RTS_CONTROL_ENABLE;
dcb.fAbortOnError = FALSE; 如何在 Quotex 存入和交易数字期权
dcb.ByteSize = 8;
dcb.Parity = NOPARITY;
dcb.StopBits = ONESTOPBIT;

SetCommState(hCom1,&dcb);
printf("SetCommState OK\n");
printf("BaudRate = %d\n",dcb.BaudRate);

如何在 Quotex 存入和交易数字期权
COMMTIMEOUTS CommTimeouts;
GetCommTimeouts (hCom1, &CommTimeouts);

// Change the COMMTIMEOUTS structure settings.
CommTimeouts.ReadIntervalTimeout = MAXDWORD;
CommTimeouts.ReadTotalTimeoutMultiplier = 0;
CommTimeouts.ReadTotalTimeoutConstant 如何在 Quotex 存入和交易数字期权 = 0;
CommTimeouts.WriteTotalTimeoutMultiplier = 10;
CommTimeouts.WriteTotalTimeoutConstant = 1000;

// Set the timeout parameters for all read and write operations
// on the port.
if ( SetCommTimeouts (hCom1, &CommTimeouts) != 0 )
printf("SetCommTimeOuts OK\n");

//if( TransmitCommChar(hCom1,'a') != 0 )
// printf("TransmitCommChar() OK\n");

EscapeCommFunction (hCom1, SETDTR);
EscapeCommFunction (hCom1, SETRTS);

int rc;
DWORD cBytes;
BYTE ch;

ch=TEXT('A');;
rc=WriteFile(hCom1 , &ch , 1 , &cBytes , NULL );
printf("Write to COM1, %s\n",ch);如何在 Quotex 存入和交易数字期权

rc=ReadFile(hCom2,&ch,1,&cBytes,如何在 Quotex 存入和交易数字期权 NULL);
printf("Read from COM2, 如何在 Quotex 存入和交易数字期权 %s\n",ch);

如何在 Quotex 存入和交易数字期权

Binary Options - IQ Option(binäre Optionen)

如何在 Quotex 存入和交易数字期权

Binary Options - IQ Option(binäre Optionen)

如何在 Quotex 存入和交易数字期权

Gray Pipe

Es tut uns leid. Der angeforderte Inhalt wurde entfernt. Sie werden in 1 Sekunde automatisch umgeleitet.

Fragensteller

Frage

Alle Antworten

The geometry datatype relies on Microsoft.SqlServer.Types.dll, which is a managed assembly. Therefore, you can only use geometry methods from within managed .NET code, e.g. C# or VB.Net. I don't think you can use it within C++.
Beginning Spatial with SQL Server http://www.apress.com/book/view/1430218290

If the question is what you're (Tanoshimi is) implying by the answer (i.e. can I use SQL spatial types from C++), you could use managed extensions for C++ which allows you to use the 如何在 Quotex 存入和交易数字期权 C++ langauge with .NET code.

Entwicklungscenter

Lernressourcen

  • Microsoft Virtual Academy
  • Channel 9
  • MSDN Magazine

Community

Support

Programme

  • BizSpark (für Startups)
  • Microsoft Imagine (for students)
  • FacultyConnection
  • Impressum
  • Newsletter
  • Datenschutz & Cookies
  • Nutzungsbedingungen
  • Marken

logo

© 2022 Microsoft