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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:20:47+00:00 2026-05-22T16:20:47+00:00

How to properly declare this function inside this header file? CString ExecuteExternalProgram(CString pictureName); #pragma

  • 0

How to properly declare this function inside this header file?

CString ExecuteExternalProgram(CString pictureName);

#pragma warning( disable: 4049 )  /* more than 64k source lines */
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif

#include "rpc.h"
#include "rpcndr.h"

CString ExecuteExternalProgram(CString pictureName);   //<---- THIS LINE IS ERROR?

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__


#ifndef __Example1_h__
#define __Example1_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifdef __cplusplus
extern "C"{
#endif 


#ifndef __Example1_INTERFACE_DEFINED__
#define __Example1_INTERFACE_DEFINED__

void Output( 
    /* [string][in] */ const char *szOutput);


extern handle_t hExample1Binding;


extern RPC_IF_HANDLE Example1_v1_0_c_ifspec;
extern RPC_IF_HANDLE Example1_v1_0_s_ifspec;
#endif /* __Example1_INTERFACE_DEFINED__ */


#ifdef __cplusplus
}
#endif

#endif
  • 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-22T16:20:47+00:00Added an answer on May 22, 2026 at 4:20 pm

    I created an Empty Project in Visual Studio and I didn’t have any problem compiling:

    #include <atlstr.h>
    
    #include "Example1.h" // Direct copy of your code from above
    
    int main(int argc, char **argv) {
        return 0;
    }
    

    I was tipped off about atlstr.h from http://www.codeguru.com/forum/showthread.php?t=231164.

    Is that what you mean by “properly” declare?

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

Sidebar

Related Questions

This is my function: DECLARE f_ids integer[] := '{}'; BEGIN SELECT INTO f_ids fileId
I'm having difficulty using MooseX::Declare properly when calling BUILDARGS. I'm trying to create an
I want to declare three properties in my MSBuild file and overwrite one property
Why is not possible to initialize a property to a function when you declare
The usual definition for a specialization of a template function is something like this:
I'm having trouble with running a bare example. I'm using this to declare a
My code: Ext.onReady(function() { // Every property is declared inside the class Ext.define('MyCustomPanel1', {
Consider this first Javascript snippet, which only uses var and this to declare scope:
I have a div with float:right (no position property declared). This div has some
In C#, if I declare an auto-implemented property, why do I have to declare

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.