Gamestudio Links
Zorro Links
Newest Posts
zorro license, IB connection
by miwok. 12/06/23 16:32
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (miwok, AndrewAMD, TipmyPip, 3run, Quad, 1 invisible), 645 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
SDK DLL FROM C++ Help with return Array #402273
06/01/12 13:22
06/01/12 13:22
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
Hi Guuuyyss.

I am writing a DLL to connect to mysql on the A8 Litec from C + +.

Here is my first implementations in the DLL.
This works ok

Download for Test:
LiteC_ Connector_Mysql

Files on Zip:
> libmysql.dll
> mysql_v0.1.dll
> litec_connector_ot.c

Function:

Initialize.
Connect
Return Collation type
Close Connection
///////////////////////////////////////////////////////////////////

Could someone give a help?
How do I "return" of C + + return an array? and Litec, as would be to get these values


now I need implement the functions of research in the database, and for this I will need return arrays containing the results.



Last edited by NeoNeper; 06/01/12 13:24.

Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________
Re: SDK DLL FROM C++ Help with return Array [Re: NeoNeper] #402274
06/01/12 13:26
06/01/12 13:26
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
If your array is static:

Code:
int *someFunction()
{

int yourarray[YOUR_ARRAY_SIZE];

return yourarray;

}



if your array is dynamic:

Code:
int *someFunction()
{

int *yourarray = new int[someSize];

return yourarray;

}




Last edited by Rei_Ayanami; 06/01/12 13:27.
Re: SDK DLL FROM C++ Help with return Array [Re: Rei_Ayanami] #402288
06/02/12 00:30
06/02/12 00:30
Joined: Nov 2007
Posts: 318
Brasil, Paraná
NeoNeper Offline OP
Senior Member
NeoNeper  Offline OP
Senior Member

Joined: Nov 2007
Posts: 318
Brasil, Paraná
Ohhhhhhhhh tanks man. ^^
It workkkkk!.


Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1