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 8247951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:01:54+00:00 2026-06-07T23:01:54+00:00

I am newbie in C ,with Mingw32 compiler. Right now i am creating decompiler

  • 0

I am newbie in C ,with Mingw32 compiler.
Right now i am creating decompiler from IL to C (Native)

The code generated (Without System.Object):

DecompileTestApplication_Program.c

#include "DecompileTestApplication_Program.h"
DecompileTestApplication_Program* DecompileTestApplication_Program__ctor( ) {
    if (array__DecompileTestApplication_Program == 0) {
        array__DecompileTestApplication_Program=(void**)malloc(sizeof(void*)*(capacity__DecompileTestApplication_Program=4));
    }
    DecompileTestApplication_Program* this;
    //error: 'this' undeclared (first use in this function)
    if (count__DecompileTestApplication_Program==0) {
        this=(DecompileTestApplication_Program*)malloc(sizeof(DecompileTestApplication_Program));
        goto RealConstructor;
    }
    this=(DecompileTestApplication_Program*)array__DecompileTestApplication_Program[--count__DecompileTestApplication_Program];
    RealConstructor:
    this->ind = 0;
    this->a = 1;
    this->b = 3;
    //this._inherit_object_( ); //this is OOP tests ,still working on it
    return this;
}
void DecompileTestApplication_Program_Main( ) {
    int var_0_02;
    var_0_02 = 0;
    var_0_02 = ( var_0_02 + 1 );
    int var_1_08;
    var_1_08 = 1;
    int var_2_0A;
    var_2_0A = 3;
    var_1_08 = ( var_1_08 + var_2_0A );
    var_0_02 = ( var_0_02 + ( var_1_08 + var_2_0A ) );
    DecompileTestApplication_Program_blat = ( DecompileTestApplication_Program_blat + ++DecompileTestApplication_Program_bpa );
}
void DecompileTestApplication_Program__cctor( ) {
    DecompileTestApplication_Program_blat = 1;
    DecompileTestApplication_Program_bpa = 4;
}

DecompileTestApplication_Program.h

#ifndef DecompileTestApplication_Program
#define DecompileTestApplication_Program
/*
Type's Name: DecompileTestApplication.Program
Time to Parse: 40.0023ms
*/
#include <stdio.h>
typedef struct {
    //Variables
    int ind;
    int a;
    int b;
} DecompileTestApplication_Program;
static int DecompileTestApplication_Program_blat;
static int DecompileTestApplication_Program_bpa;
//Methods
void DecompileTestApplication_Program_Main( );
DecompileTestApplication_Program* DecompileTestApplication_Program__ctor( );
void DecompileTestApplication_Program__cctor( );
static int count__DecompileTestApplication_Program=0;
static int capacity__DecompileTestApplication_Program=0;
static DecompileTestApplication_Program** array__DecompileTestApplication_Program=0;
#endif

@main.h

void main();

@main.cpp

//bookmart for includes
#include "DecompileTestApplication_Program.h"


void main() {
    //bookmark for initialize
    DecompileTestApplication_Program__cctor();
    DecompileTestApplication_Program_Main();
}

The error found in the first file.
I searched the resolve for this error for awhile ,
but didn’t found any.

  • 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-06-07T23:01:56+00:00Added an answer on June 7, 2026 at 11:01 pm
    #define DecompileTestApplication_Program
    

    That means that everywhere you see the word DecompileTestApplication_Program, it gets removed. As such, your attempted declaration of this:

    DecompileTestApplication_Program* this;
    

    expands to

    * this;
    

    which attempts to dereference the undeclared variable this. To fix this, change the macro name.

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

Sidebar

Related Questions

Newbie still learning, been trying to search and hack code together for hours now,
Newbie in testing. I generated a test case using Selenium, and then exported it
newbie for clearcase. Since clearcase's config is rather different from other concept in git,
Newbie here (to C, objective-C, and iOS)... For this code in my AppDelegate.m, why
Newbie here. I am looking at company code. It appears that there are NO
Newbie question. I want to do something like: SELECT c1,c2,c3 FROM TABLE t1 UNION
newbie here .. wondering why in the table i get something called '[object node]'
Newbie to C++ but I am a Java programmer. Trying to learn C++ now.
Newbie question on Rails 3 development. I am creating my first app and planning
Newbie to .NET data apps here, coming from a Visual Foxpro background. I'm planning

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.