|
|
Search
|
|||||||
| Home | Register | Downloads | FAQ | Members List | Calendar | Arcade | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2008
Location: South Korea, Seoul
Posts: 4
|
I am interested in integrating the no$gba as a easter egg inside my Windows C++ application -- a semi-commercial tool. However, I need to hide it inside my executable... Can I get a static lib of this? Then, I can invoke it from some secret key strokes inside my application, and play some cool handmade game..... |
|
|
|
| Advertisement | [Remove Advertisement] | ||
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Jul 2008
Location: South Korea, Seoul
Posts: 4
|
I think I know how to do steps #1 and #2. But I am not sure how to do #3... Can you post source code sample or references on this? and.. sorry for asking these questions without researching myself.. (I am short on time before the software gets released)... How does a person build a homebrew game for this emulator? My dream game would look like matrix or quake, where there is some monsters that look like my team mates.... Last edited by seankang; July 8th, 2008 at 06:41.. Reason: Automerged Doublepost |
|
|
|
|
|
#4 (permalink) | |
|
Banned
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2007
Location: Lost.
Posts: 1,767
|
Code:
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include <conio.h>
void _tmain( int argc, TCHAR *argv[] )
{
STARTUPINFO si;
PROCESS_INFORMATION pi;
STARTUPINFO sj;
PROCESS_INFORMATION pj;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
ZeroMemory( &sj, sizeof(sj) );
sj.cb = sizeof(sj);
ZeroMemory( &pj, sizeof(pj) );
// Start the child process p1.exe. Make sure p1.exe is in the
// same folder as current application. Otherwise write the full path in first argument.
if(!CreateProcess(L".\\p1.exe", NULL, NULL, NULL, FALSE, 0, NULL, NULL, &sj, &pj))
{
printf( "Hello CreateProcess failed (%d)\n", GetLastError() );
getch();
return;
}
// Start child process p2.exe. Make sure p2.exe is in the
// same folder as current application. Otherwise write the full path in first argument.
if(!CreateProcess(L".\\p2.exe", NULL, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
{
printf( "CreateProcess2 failed (%d)\n", GetLastError() );
getch();
return;
}
// Wait until child processes exit.
WaitForSingleObject( pi.hProcess, INFINITE );
WaitForSingleObject( pj.hProcess, INFINITE );
// Close process and thread handles.
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
CloseHandle( pj.hProcess );
CloseHandle( pj.hThread );
getch();
}
Quote:
Last edited by mudlord; July 8th, 2008 at 07:11.. Reason: Automerged Doublepost |
|
|
|
|
|
|
#9 (permalink) |
|
Behind ur girlfriend :D
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2006
Location: Sydney, Australia
Posts: 18,950
|
NoGBA cannot be distributed with commercial software.
__________________
![]() ![]() VBA-M | Xtemu | NGOHQ | Post Impact Productions | TNHW | XBCD 0.2.6 | Satanic666's Emulator Compiles Don't be a NOOB, READ THE NGEmu/EmuForums Rules of Conduct Need Help with ePSXe? This is your first stop!. If you don't post all the required information, you don't get help. Everytime someone posts a romsite, God kills a beautiful woman. |
|
|
|
|
|
#10 (permalink) |
|
Emulation Master
![]() ![]() ![]() Join Date: Mar 2004
Location: in-hell
Posts: 389
|
Yeah, I thought the same. He could use parts of VBA instead, because it's open source.
__________________
The Future of Emulation: Emulate a High End Computer on a Low End System
Current PC specs: ![]() Portable: Intel C2D T7250 (2x2.0Ghz, 800Mhz) | 2048 MB DDR2 PC800 | Geforce Go 7950 GTX PCI-E | Realtek HD Audio | 180Gbyte Internal SATA2 + 4x500GB external | Windows Vista Business X64 MSDNAA Desktop: AMD Athlon 64 X2 4200+ (2x2.5Ghz, S939) | MSI KbT Neo2-F V2.0 | 2x1GB Corsair Value VS1GBKIT400 | MSI Geforce NX 7800GS-TD256/AGP8x | Creative SB Audigy LS | 2,5TB (4 SATA2 HDDs in Raid0) | Windows Vista Business MSDNAA ![]() Visit my Blog |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|