Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Error C2061: syntax error : identifier 'StdDDECallback'

Error C2061: syntax error : identifier 'StdDDECallback'

Scheduled Pinned Locked Moved C / C++ / MFC
helpdelphi
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pankaj Jain
    wrote on last edited by
    #1

    Hi, I m trying to complile a code. Some errors are there and I m not able to understand why it is so please help me. Errors are error C2061: syntax error : identifier 'StdDDECallback' c:\pankaj\STDDDE.C error C2059: syntax error : ';' c:\pankaj\STDDDE.C error C2059: syntax error : 'type' c:\pankaj\STDDDE.C error C2065: 'StdDDECallback' : undeclared identifier c:\pankaj\STDDDE.C error C2061: syntax error : identifier 'StdDDECallback' c:\pankaj\STDDDE.C error C2059: syntax error : ';' c:\pankaj\STDDDE.C error C2059: syntax error : 'type' c:\pankaj\STDDDE.C error at this point HDDEDATA FAR PASCAL __export StdDDECallback(WORD wType, WORD wFmt, HCONV hConv, HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2); The Definition is HDDEDATA FAR PASCAL __export StdDDECallback(WORD wType, WORD wFmt, HCONV hConv, HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2) { HDDEDATA hDdeData = NULL; switch (wType) { case XTYP_CONNECT_CONFIRM: // // Add a new conversation to the list // AddConversation(hConv, hsz1); break; case XTYP_DISCONNECT: // // Remove a conversation from the list // RemoveConversation(hConv, hsz1); break; case XTYP_WILDCONNECT: // // We only support wild connects to either a NULL service // name or to the name of our own service. // if ((hsz2 == NULL) || !DdeCmpStringHandles(hsz2, ServerInfo.hszServiceName)) { return DoWildConnect(hsz1); } break; case XTYP_ADVSTART: case XTYP_CONNECT: case XTYP_EXECUTE: case XTYP_REQUEST: case XTYP_ADVREQ: case XTYP_ADVDATA: case XTYP_POKE: if (DoCallback(wType, wFmt, hConv, hsz1, hsz2, hData, &hDdeData)) { return hDdeData; } // // Fall Through to allow the custom callback a chance // default: if (ServerInfo.pfnCustomCallback != NULL) { return(ServerInfo.pfnCustomCallback(wType,

    P K 2 Replies Last reply
    0
    • P Pankaj Jain

      Hi, I m trying to complile a code. Some errors are there and I m not able to understand why it is so please help me. Errors are error C2061: syntax error : identifier 'StdDDECallback' c:\pankaj\STDDDE.C error C2059: syntax error : ';' c:\pankaj\STDDDE.C error C2059: syntax error : 'type' c:\pankaj\STDDDE.C error C2065: 'StdDDECallback' : undeclared identifier c:\pankaj\STDDDE.C error C2061: syntax error : identifier 'StdDDECallback' c:\pankaj\STDDDE.C error C2059: syntax error : ';' c:\pankaj\STDDDE.C error C2059: syntax error : 'type' c:\pankaj\STDDDE.C error at this point HDDEDATA FAR PASCAL __export StdDDECallback(WORD wType, WORD wFmt, HCONV hConv, HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2); The Definition is HDDEDATA FAR PASCAL __export StdDDECallback(WORD wType, WORD wFmt, HCONV hConv, HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2) { HDDEDATA hDdeData = NULL; switch (wType) { case XTYP_CONNECT_CONFIRM: // // Add a new conversation to the list // AddConversation(hConv, hsz1); break; case XTYP_DISCONNECT: // // Remove a conversation from the list // RemoveConversation(hConv, hsz1); break; case XTYP_WILDCONNECT: // // We only support wild connects to either a NULL service // name or to the name of our own service. // if ((hsz2 == NULL) || !DdeCmpStringHandles(hsz2, ServerInfo.hszServiceName)) { return DoWildConnect(hsz1); } break; case XTYP_ADVSTART: case XTYP_CONNECT: case XTYP_EXECUTE: case XTYP_REQUEST: case XTYP_ADVREQ: case XTYP_ADVDATA: case XTYP_POKE: if (DoCallback(wType, wFmt, hConv, hsz1, hsz2, hData, &hDdeData)) { return hDdeData; } // // Fall Through to allow the custom callback a chance // default: if (ServerInfo.pfnCustomCallback != NULL) { return(ServerInfo.pfnCustomCallback(wType,

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      Keyword __export is obsolete. Use _declspec(dllexport) instead.


      Prasad MS MVP -  VC++

      1 Reply Last reply
      0
      • P Pankaj Jain

        Hi, I m trying to complile a code. Some errors are there and I m not able to understand why it is so please help me. Errors are error C2061: syntax error : identifier 'StdDDECallback' c:\pankaj\STDDDE.C error C2059: syntax error : ';' c:\pankaj\STDDDE.C error C2059: syntax error : 'type' c:\pankaj\STDDDE.C error C2065: 'StdDDECallback' : undeclared identifier c:\pankaj\STDDDE.C error C2061: syntax error : identifier 'StdDDECallback' c:\pankaj\STDDDE.C error C2059: syntax error : ';' c:\pankaj\STDDDE.C error C2059: syntax error : 'type' c:\pankaj\STDDDE.C error at this point HDDEDATA FAR PASCAL __export StdDDECallback(WORD wType, WORD wFmt, HCONV hConv, HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2); The Definition is HDDEDATA FAR PASCAL __export StdDDECallback(WORD wType, WORD wFmt, HCONV hConv, HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2) { HDDEDATA hDdeData = NULL; switch (wType) { case XTYP_CONNECT_CONFIRM: // // Add a new conversation to the list // AddConversation(hConv, hsz1); break; case XTYP_DISCONNECT: // // Remove a conversation from the list // RemoveConversation(hConv, hsz1); break; case XTYP_WILDCONNECT: // // We only support wild connects to either a NULL service // name or to the name of our own service. // if ((hsz2 == NULL) || !DdeCmpStringHandles(hsz2, ServerInfo.hszServiceName)) { return DoWildConnect(hsz1); } break; case XTYP_ADVSTART: case XTYP_CONNECT: case XTYP_EXECUTE: case XTYP_REQUEST: case XTYP_ADVREQ: case XTYP_ADVDATA: case XTYP_POKE: if (DoCallback(wType, wFmt, hConv, hsz1, hsz2, hData, &hDdeData)) { return hDdeData; } // // Fall Through to allow the custom callback a chance // default: if (ServerInfo.pfnCustomCallback != NULL) { return(ServerInfo.pfnCustomCallback(wType,

        K Offline
        K Offline
        Karismatic
        wrote on last edited by
        #3

        Hey, The problem to ur solution is that if StdDDECallback is a library function then u must include the coressponding library and the .H file at the top of ur program or if it is a user defined function then ur have to give the prototype of that function. Regards, Pankaj Sachdeva

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups