hmm can some one help me in this code
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: hmm can some one help me in this code

  1. #1
    Join Date
    Mar 2014
    Posts
    2

    hmm can some one help me in this code

    Code
    Code:
    int Main()
    {
        Application::EnableVisualStyles();
        Application::SetCompatibleTextRenderingDefault(false); 
        Application::Run(gcnew Form1());    return 0;
    }
    This Code Should Run Form from dll i put it in Form1.cpp but i got Error [C3861 Run : idetifier not found c2061 and other ]

  2. #2
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,604

    Re: hmm can some one help me in this code

    Your code has nothing to do with the Visual C++. Nor is it a native C++ one.
    So I move it to the most appropriate Forum to discuss...
    Victor Nijegorodov

  3. #3
    Join Date
    Mar 2014
    Posts
    2

    Re: hmm can some one help me in this code

    Quote Originally Posted by VictorN View Post
    Your code has nothing to do with the Visual C++. Nor is it a native C++ one.
    So I move it to the most appropriate Forum to discuss...
    ok thanks you

  4. #4
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,594

    Re: hmm can some one help me in this code

    What is the overall configuration of your project, in particular, what type of project is it and what modules does it contain? A DLL just by itself, even if it compiles and links, doesn't run anything. What is the context of your Main() function? How s it meant to be called?

    And what is the intention behind that project? Why a DLL and not simply an EXE file?
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center