Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7418763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:56:36+00:00 2026-05-29T07:56:36+00:00

when i run the compieled .exe-file it shows the commandline, and I wish to

  • 0

when i run the compieled .exe-file it shows the commandline, and I wish to remove it.. But I don’t know nothing about C++, so I wonder how one can do it?

This is not my script… Just so you know.

#include <iostream>
#include <windows.h>

using namespace std;

typedef long (*GetFunctionCount) (void) __attribute__((stdcall));
typedef long (*GetFunctionInfo)(int, void*&, char*&) __attribute__((stdcall));
typedef void (*Setup)(char*,char*,long,long,char*) __attribute__((stdcall));

int main(int argc, char** argv) {
    HMODULE libsmart = LoadLibrary("./libsmart.dll");
    cout << "Library: " << libsmart << '\n';
    cout << "GetFunctionCount: " << (void*)GetProcAddress(libsmart, "GetFunctionCount") << '\n';
    cout << "GetFunctionInfo: " << (void*)GetProcAddress(libsmart, "GetFunctionInfo") << '\n';
    GetFunctionCount count = (GetFunctionCount) GetProcAddress(libsmart, "GetFunctionCount");
    GetFunctionInfo info = (GetFunctionInfo) GetProcAddress(libsmart, "GetFunctionInfo");

    int exports = count();
    cout << "#Exports = " << count() << '\n';
    for (int i = 0; i < exports; i++) {
        char* def = new char[1024];
        void* addr;
        info(i,addr,def);
        cout << '\t' << addr << " = " << def  << '\n';
        delete def;
    }
    cout << "Starting SMART...\n";
    Setup setup = (Setup) GetProcAddress(libsmart, "std_setup");
    setup((char*)"http://world19.runescape.com/", (char*)",f5", 765, 503,(char*)"");

    while (true) Sleep(1000);

    return 0;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:56:39+00:00Added an answer on May 29, 2026 at 7:56 am
    #define _WIN32_WINNT 0x0500
    #include <iostream>
    #include <windows.h>
    
    
    
     using namespace std;
    
        typedef long (*GetFunctionCount) (void) __attribute__((stdcall));
        typedef long (*GetFunctionInfo)(int, void*&, char*&) __attribute__((stdcall));
        typedef void (*Setup)(char*,char*,long,long,char*) __attribute__((stdcall));
    
        int main(int argc, char** argv) {
        HWND hWnd = GetConsoleWindow();
        ShowWindow( hWnd, SW_HIDE );
            HMODULE libsmart = LoadLibrary("./libsmart.dll");
            cout << "Library: " << libsmart << '\n';
            cout << "GetFunctionCount: " << (void*)GetProcAddress(libsmart, "GetFunctionCount") << '\n';
            cout << "GetFunctionInfo: " << (void*)GetProcAddress(libsmart, "GetFunctionInfo") << '\n';
            GetFunctionCount count = (GetFunctionCount) GetProcAddress(libsmart, "GetFunctionCount");
            GetFunctionInfo info = (GetFunctionInfo) GetProcAddress(libsmart, "GetFunctionInfo");
    
            int exports = count();
            cout << "#Exports = " << count() << '\n';
            for (int i = 0; i < exports; i++) {
                char* def = new char[1024];
                void* addr;
                info(i,addr,def);
                cout << '\t' << addr << " = " << def  << '\n';
                delete def;
            }
            cout << "Starting SMART...\n";
            Setup setup = (Setup) GetProcAddress(libsmart, "std_setup");
            setup((char*)"http://world19.runescape.com/", (char*)",f5", 765, 503,(char*)"");
    
            while (true) Sleep(1000);
    
            return 0;
        }
    

    Should work. Don’t forget the definition at the top.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would one go about loading compiled C code at run time, and then
I know I can spawn new process using compiled exe file. Suppose I have
During our build process we run aspnet_compiler.exe against our websites to make sure that
I know that PHP is compiled to byte code before it is run on
I have an *.exe project that was written in one solution under vs2005 and
I'm using a pre-build event in Visual Studio to run a batch (.bat) file
I have this WxWidgets test source code that compiles, and when run, it shows
I have running process but it's executable file has got deleted. If I try
I'm trying to make a program, which would run cl.exe (C/C++ compiler) and compile
I have python script that works fine but only when run as stand-alone, while

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.