Guest User

Untitled

a guest
Feb 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. using System.Windows.Threading;
  2. using System.Runtime.InteropServices;
  3.  
  4. namespace RF182CInterface
  5. {
  6. public class RFIDInterface
  7. {
  8. public RFIDInterface()
  9. {
  10. .
  11. .
  12. .
  13.  
  14. // RFIDWrapper.h
  15.  
  16. #pragma once
  17.  
  18. using namespace System;
  19.  
  20. namespace RFIDWrapper {
  21.  
  22. class RFIDWrapperIFacePrivate;
  23.  
  24. class __declspec(dllexport) RFIDWrapperIFace
  25. {
  26. private:
  27. RFIDWrapperIFacePrivate* _private;
  28.  
  29. public:
  30. RFIDWrapperIFace();
  31. ~RFIDWrapperIFace();
  32. };
  33. }
  34.  
  35. // This is the main DLL file.
  36. #using "RF182CInterface.dll";
  37.  
  38. #include "stdafx.h"
  39. #include <msclrauto_gcroot.h>
  40. #include "RFIDWrapper.h"
  41.  
  42. using namespace System::Runtime::InteropServices; // Marshal
  43.  
  44. class RFIDWrapperIFacePrivate
  45. {
  46. public:
  47. msclr::auto_gcroot<RF182CInterface::RFIDInterface^> rf182CInterface;
  48. };
Add Comment
Please, Sign In to add comment