pasturryx / avesta74

Automatically exported from code.google.com/p/avesta74
0 stars 0 forks source link

Compiling problem! #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The problem with compilation:
1. databasemysql.cpp can't be compiled.
2. ..\databasemysql.cpp(195): error C2440: initialization: can not to transform 
"MySQLResult *" to "DBResult *"
3. i found the solution on 
http://msdn.microsoft.com/en-us/library/sy5tsf8z(v=vs.80).aspx
4. anyway it not helps.

What is the expected output? What do you see instead?
1>------ Построение начато: проект: ShineOT, 
Конфигурация: Release Win32 ------
1>  databasemysql.cpp
1>..\databasemysql.cpp(195): error C2440: инициализация: 
невозможно преобразовать "MySQLResult *" в "DBResult *"
1>          Типы, на которые указывают 
указатели, не связаны; для преобразования 
требуется reinterpret_cast, приведение в стиле С 
или приведение в стиле функции
========== Построение: успешно: 0, с ошибками: 1, 
без изменений: 0, пропущено: 0 ==========

What version of the product are you using? On what operating system?
Microsoft Visual C++ 10 [Russian]. Microsoft Windows XP SP 3

Please provide any additional information below.
i know what usually that problem with unicode char set, but i set it to 
Multi-Byte and now i have no idea to fix that... Please little help...

P.S. Sorry for English.

Original issue reported on code.google.com by Ary...@gmail.com on 8 Jan 2013 at 6:55

GoogleCodeExporter commented 9 years ago
Well it's been a long long time, but maybe someone will find this useful :P

In databasemysql.cpp instead of:
DBResult* res = new MySQLResult(m_res);
return verifyResult(res);

Paste this:    
return verifyResult((DBResult*)(m_res));

It compiled for me, wish you luck :D

Original comment by wolkpiot...@gmail.com on 12 Jan 2015 at 7:38

GoogleCodeExporter commented 9 years ago
well i agree about long time :) i did that you say and it worked :D

thanks a lot ^_^

maybe you can say me how to give this distro access to read files and write 
content to them ? i tryed lua libraries and io.read io.write... but server 
can't recognize this functions...

Or if it cannot possible, can we make sql queries from lua scripts ??

Thanks a lot!! ^_^

Original comment by Ary...@gmail.com on 12 Jan 2015 at 9:01

GoogleCodeExporter commented 9 years ago
Well bro, so far I had fun with Avesta only for couple of days so can't tell 
you much. I am making my own server based this distro, so as the time passes I 
hope I could answer your questions :P

So you are planning to edit this engine for XML? And if yes, then why? :D

Original comment by wolkpiot...@gmail.com on 12 Jan 2015 at 10:42

GoogleCodeExporter commented 9 years ago
why you think it must be xml?? i asked about sql :D
i need lua scripts what can use sql connections :D so i can implement my ideas 
more usebility..

^_^ im owner of tibia76.com and no have time to work on it lol :D

Original comment by Ary...@gmail.com on 15 Jan 2015 at 10:27