Thread

How can I execute "aworld.exe" in other program? (Sdk)

How can I execute "aworld.exe" in other program? // Sdk

1  |  

blueme

Nov 23, 1998, 4:17am
How can I execute "aworld.exe" in other program?
I try to execute in my program with ::CreateProcess() API.
But, I can see Just Welcome Dialog Box.
Never enter Active World.
I don't understand why can't.

edward sumerfield

Nov 23, 1998, 9:39am
There is a standard C library call system("command") that will start a program
for you. I seem to remember it is a blocking call, not sure if this is what
you want.

Edward Sumerfield

[View Quote] > How can I execute "aworld.exe" in other program?
> I try to execute in my program with ::CreateProcess() API.
> But, I can see Just Welcome Dialog Box.
> Never enter Active World.
> I don't understand why can't.

blueme

Nov 23, 1998, 10:08am
But, system() call is run only DOS mode.
I want to run Windows mode. And I success execute "aworld.exe".
But, just I can only see Welcome dialog box, can't see Active World's
secene.

Edward Sumerfield ÀÌ(°¡) <36594983.9D4F0636 at poboxes.com>
ÀÛ¼ºÇÏ¿´½À´Ï´Ù...
>There is a standard C library call system("command") that will start a
program
>for you. I seem to remember it is a blocking call, not sure if this is what
>you want.
>
>Edward Sumerfield
>
[View Quote]

roland vilett

Nov 23, 1998, 10:24pm
If the browser is stopping at the welcome screen then it is not finding a
citizen name and password in the aworld.ini file with which to log in
automatically. Make sure you are invoking aworld.exe in the proper
directory.

-Roland

>But, system() call is run only DOS mode.
>I want to run Windows mode. And I success execute "aworld.exe".
>But, just I can only see Welcome dialog box, can't see Active World's
>secene.
>
>Edward Sumerfield ÀÌ(°¡) <36594983.9D4F0636 at poboxes.com>
>ÀÛ¼ºÇÏ¿´½À´Ï´Ù...
>program
what
>
>

blueme

Nov 23, 1998, 11:23pm
Thank you. But, I can't ,too.
I invoked it "Active Worlds 2.0" directory.
And I passed citizen name and password dialogbox. If I wrote wrong name and
password, that dialogbox show again.
But, I entered correct name and password, so passed it.
I think that I pass that, but just I can't see World's screen.

Roland Vilett ÀÌ(°¡) <3659fc81.0 at homer> ¸Þ½ÃÁö¿¡¼­ ÀÛ¼ºÇÏ¿´½À´Ï´Ù...
>If the browser is stopping at the welcome screen then it is not finding a
>citizen name and password in the aworld.ini file with which to log in
>automatically. Make sure you are invoking aworld.exe in the proper
>directory.
>
>-Roland
>
>what
>
>

roland vilett

Nov 24, 1998, 3:20am
Okay, well something else must be going wrong with the process-launching
mechanism you are using, which must be confusing the AW browser at startup.
It's really not possible for me to say what without investigating the
problem in detail. I'm sorry but all I can suggest is that you keep trying
different things...

The upgrade.exe utility invokes the AW browser automatically after
completing an upgrade by calling WinExec() and this works fine. The exact
code is:

WinExec (execute, SW_SHOWNORMAL);

where 'execute' is a string containing the path to aworld.exe, typically
something like "c:\active worlds\aworld.exe".

I should mention that the Windows API docs say that WinExec() has been
replaced with CreateProcess() and that all Windows apps should use
CreateProcess() instead. However, in typical Microsoft fashion, they took a
straightforward and simple to use system call and replaced it with a
hopelessly complicated system call with a hundred billion new options. Your
problem is probably somewhere in one of the endless potential options to
CreateProcess(). Maybe you could try WinExec() instead.

-Roland

[View Quote]

blueme

Nov 24, 1998, 6:51am
Thank you very much.
I can success with WinExec() API.
I can't with Visual C++ 6.0. But, I success with C++ Builder 3.0.
It's bug of Microsoft.
Yhank you.

Roland Vilett ÀÌ(°¡) <365a41de.0 at homer> ¸Þ½ÃÁö¿¡¼­ ÀÛ¼ºÇÏ¿´½À´Ï´Ù...
>Okay, well something else must be going wrong with the process-launching
>mechanism you are using, which must be confusing the AW browser at startup.
>It's really not possible for me to say what without investigating the
>problem in detail. I'm sorry but all I can suggest is that you keep trying
>different things...
>
>The upgrade.exe utility invokes the AW browser automatically after
>completing an upgrade by calling WinExec() and this works fine. The exact
>code is:
>
> WinExec (execute, SW_SHOWNORMAL);
>
>where 'execute' is a string containing the path to aworld.exe, typically
>something like "c:\active worlds\aworld.exe".
>
>I should mention that the Windows API docs say that WinExec() has been
>replaced with CreateProcess() and that all Windows apps should use
>CreateProcess() instead. However, in typical Microsoft fashion, they took
a
>straightforward and simple to use system call and replaced it with a
>hopelessly complicated system call with a hundred billion new options.
Your
>problem is probably somewhere in one of the endless potential options to
>CreateProcess(). Maybe you could try WinExec() instead.
>
>-Roland
>
[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn