Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Kal Online
You last visited: Today at 13:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Proxydll console problem

Discussion on Proxydll console problem within the Kal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 170
Received Thanks: 4
Proxydll console problem

Hello guys.
I have problem with proxy dll console , the program is success created the console but i cant print or write to it , i searched in google but i cant find anything to solve the problem maybe can anyone help me .
Picture:


IDE : Visual studio Enterprise 2015
OS : Windows 7 ultimate 64 bit

Near 60 Views until now and no one help me
MenPirate is offline  
Old 06/18/2016, 21:35   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 72
Received Thanks: 70
you didnt show what CommandComm() is doing.
I think u didnt set console as default input / output.

btw do it like everyone here show in sources:

void DOS()
{
int hCrtIn, hCrtOut;
FILE *conIn, *conOut;

AllocConsole(); // show console
hCrtIn = _open_osfhandle((intptr_t)GetStdHandle(STD_INPUT_H ANDLE), _O_TEXT);
hCrtOut = _open_osfhandle((intptr_t)GetStdHandle(STD_OUTPUT_ HANDLE), _O_TEXT);
conIn = _fdopen(hCrtIn, "r");
conOut = _fdopen(hCrtOut, "w");
*stdin = *conIn;
*stdout = *conOut;
}

and in main input thread:

void MainThread(void* lpArg)
{
char key = 0;

while( !showCmdReady)
{
Sleep(50);
}
Sleep(1000);
DOS(); //My CMD-DOS
MainDosTitle(); // set console title
while (1)
{
if (_kbhit())
{
key = _getch();
if (key == 'h')
{
//do something when pressed 'h'
}
}
}
}
nokia999 is offline  
Old 06/18/2016, 22:48   #3
 
elite*gold: 0
Join Date: Nov 2007
Posts: 170
Received Thanks: 4
same thing, nothing new btw this's Thiesius source code and i checked ZeroTen source code and i got same problem, this problem happen when i use Visual studio Enterprise 2015 or Windows 7 ultimate 64 bit.
MenPirate is offline  
Old 06/18/2016, 23:54   #4
 
meak1's Avatar
 
elite*gold: 220
Join Date: Jun 2007
Posts: 3,768
Received Thanks: 1,126
Thiesius works i think and im just using visual c++ 2010
but yeah use the func above your post, easy to use
meak1 is offline  
Old 06/19/2016, 01:45   #5
 
elite*gold: 0
Join Date: Nov 2007
Posts: 170
Received Thanks: 4
it's work in visual c++ 2010 without any problem, but i was trying to know why this wont work in visual c++ 2015 there is no logical reason !
MenPirate is offline  
Old 06/19/2016, 06:41   #6
 
elite*gold: 0
Join Date: Sep 2008
Posts: 108
Received Thanks: 23
Did you try printf() instead of printf_s()? You can also try cout.
luki180pl is offline  
Old 06/19/2016, 15:20   #7
 
elite*gold: 0
Join Date: Oct 2009
Posts: 72
Received Thanks: 70
Windows 7 x64 ultimate isnt problem cuz i have it and its work.
Im using visual studio 2012 and 2013 both working with above solution.

so myby its 2015 problem or you need digg deeper in ur code for some bug...
nokia999 is offline  
Old 06/19/2016, 23:22   #8
 
elite*gold: 0
Join Date: Nov 2007
Posts: 170
Received Thanks: 4
Quote:
Did you try printf() instead of printf_s()? You can also try cout.
yes, and don't work also .

Quote:
Windows 7 x64 ultimate isnt problem cuz i have it and its work.
Im using visual studio 2012 and 2013 both working with above solution.

so myby its 2015 problem or you need digg deeper in ur code for some bug...
yes, the problem in Visual c++ 2015 i installed 2010 in OS win7 64bit and this work without any problem now , anyway thanks guys for help <3
MenPirate is offline  
Old 06/20/2016, 08:01   #9
 
elite*gold: 0
Join Date: Sep 2008
Posts: 108
Received Thanks: 23
You can keep using 2015 and change build tools in project settings to 2010
luki180pl is offline  
Old 06/20/2016, 20:11   #10
 
elite*gold: 0
Join Date: Nov 2007
Posts: 170
Received Thanks: 4
Quote:
You can keep using 2015 and change build tools in project settings to 2010
yes but i must install 2010 to do that .
thanks for help
MenPirate is offline  
Reply


Similar Threads Similar Threads
SREVOLUTION/SRX GM CONSOLE PROBLEM
12/14/2011 - SRO Private Server - 0 Replies
Hi. So i just set up my own Server and everything worked out fine, but i just can't open the gm console. My char is a GM. checkinfo is set to 3 and gm to 1. My keyboard is also in english (USA). but the gm console doesn't appear, when i press " SHIFT + ~" or "SHIFT + 0" or "SHIFT + anything else" -.- please help me. what is wrong? EDIT got it, dont know what the problem was. working fine now.
SSE GM console problem.
12/01/2011 - SRO Private Server - 2 Replies
Hi all, U guys probably think i'm a noob cause i can't open the f**king GM console.. I'm from the netherlands and i allready have my keyboard on the usa international. I tried shift + ` .. didn't work.. Please can someone help me cause i wanna spawn some uniques =) tyvm
Console Problem
11/26/2011 - SRO Private Server - 1 Replies
Hey guys I've made an vsro files server and i made an "user content gm" in smc and i cant open console so i have edited media.pk2 and made it work but no commands work at all and i am a gm like whenever i type /LOADMONSTER MOB_CH_CHAKJI 1 CHAMP it says success but nothing happens :mad: no monster loaded at all and i cant make items i cant do nothing :facepalm: so i think that the problem is with media.pk2 :o i need the real console how to open it i've tried Shift+~ Shift+Alt and nothing...
Problem Console :(
10/14/2011 - Aion Private Server - 0 Replies
Hello, here is my problems with the console ImageShack&#174; - Online Photo and Video Hosting I understand not much to console you can help me please



All times are GMT +1. The time now is 13:16.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.