CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    18

    komunikations USMCDLL.dll

    Kod:
    // Motory.cpp : main project file.
    #pragma warning(disable : 4996) // Disable warnings about some functions in VS 2005
    #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers

    #include <stdio.h>
    #include <tchar.h>
    #include <conio.h>
    #include <process.h>
    #include "USMCDLL.h"
    #include "stdafx.h"
    #include "Form1.h"


    [STAThreadAttribute]

    USMC_Devices DVS;
    DWORD Dev;

    using namespace System;
    using namespace Motory;

    Chybová hlášky(Error):
    .\Motory.cpp(14) : error C2337: 'STAThreadAttribute' : attribute not found
    .\Motory.cpp(16) : error C2146: syntax error : missing ';' before identifier 'DVS'
    .\Motory.cpp(16) : error C2470: 'USMC_Devices' : looks like a function definition, but there is no parameter list; skipping apparent body
    .\Motory.cpp(16) : fatal error C1004: unexpected end-of-file found

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: komunikations USMCDLL.dll

    I think your program contains errors.

  3. #3
    Join Date
    Nov 2006
    Posts
    1,611

    Re: komunikations USMCDLL.dll

    Also, your application is written in managed C++ (C++/CLI), and there's a forum devoted to that language extension. You'll need to post in that forum to continue in managed C++ or C++/CLI.
    If my post was interesting or helpful, perhaps you would consider clicking the 'rate this post' to let me know (middle icon of the group in the upper right of the post).

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured