I am trying to make a Win32 using C++.Net. Below is my code in VB6.0.
Thus far this is what I came up with.Code:Public Function PokerGetPercentage(pocket As String, board As String, opponents As Long, accuracy As Long) As String Dim sPocket As String Dim sBoard As String Dim result As String Dim Poker As PokerHand Set Poker = New PokerHand sPocket = StrConv(pocket, vbUnicode) sBoard = StrConv(board, vbUnicode) result = Poker.GetHandStrength(sPocket, sBoard, opponents, accuracy) PokerGetPercentage = StrConv(result, vbFromUnicode) End Function
My C++ is very basic and I find it difficult to convert my VB6.0 code to C++. Could anyone help? Poker is actually a class from a C# project.Code:extern LPSTR PokerGetPercentage(LPSTR pocket, LPSTR board, long opponents , long accuracy ) { return "ss"; }
Thanks for any help.


Reply With Quote