{"action":"created","issue":{"url":"https://api.github.com/repos/3F/DllExport/issues/71","repository_url":"https://api.github.com/repos/3F/DllExport","labels_url":"https://api.github.com/repos/3F/DllExport/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/3F/DllExport/issues/71/comments","events_url":"https://api.github.com/repos/3F/DllExport/issues/71/events","html_url":"https://github.com/3F/DllExport/issues/71","id":314889807,"number":71,"title":" Both key values: KeyContainer \"Mono.Cecil.CustomAttributeArgument\" and KeyFile ","user":{"login":"maguirem","id":37127865,"avatar_url":"https://avatars0.githubusercontent.com/u/37127865?v=4","gravatar_id":"","url":"https://api.github.com/users/maguirem","html_url":"https://github.com/maguirem","followers_url":"https://api.github.com/users/maguirem/followers","following_url":"https://api.github.com/users/maguirem/following{/other_user}","gists_url":"https://api.github.com/users/maguirem/gists{/gist_id}","starred_url":"https://api.github.com/users/maguirem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maguirem/subscriptions","organizations_url":"https://api.github.com/users/maguirem/orgs","repos_url":"https://api.github.com/users/maguirem/repos","events_url":"https://api.github.com/users/maguirem/events{/privacy}","received_events_url":"https://api.github.com/users/maguirem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-17T03:14:07Z","updated_at":"2018-04-17T22:08:50Z","closed_at":null,"author_association":"NONE","body":"### How to reproduce\r\n\r\n... I am trying to write a wrapper around some XML tools.  The Wrapper has to be called by a \"C\" function hence using DLLExport.\r\n\r\nI have used the DLLExport bat file to configure and it does not compile.  My interface to \"C\" is (currently) very simple.\r\n\r\nHere is my Class\r\n\r\n```csharp\r\nusing System;\r\nusing System.Net;\r\nusing System.Security.Cryptography;\r\nusing System.Xml;\r\nusing CyberSource.Clients;\r\nusing System.Runtime.InteropServices;\r\n\r\nnamespace CyberSource.FPWrapper\r\n{\r\n    public class FPWrapperSystem\r\n    {\r\n        [DllExport]\r\n        public static void FPRefund()\r\n        {\r\n            XmlDocument request = new XmlDocument();\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n    \r\n### What version and selected configuration ?\r\n\r\nVS17 DLLExport 1.6 (downloaded today)\r\n\r\n### Can you provide detailed log of your build ?\r\n\r\n[@maguirem_build.log](https://github.com/3F/DllExport/files/1919098/maguirem_build.log)\r\n\r\n-----\r\nupdated by @3F because of '@maguirem_build.log'\r\n"},"comment":{"url":"https://api.github.com/repos/3F/DllExport/issues/comments/382170877","html_url":"https://github.com/3F/DllExport/issues/71#issuecomment-382170877","issue_url":"https://api.github.com/repos/3F/DllExport/issues/71","id":382170877,"user":{"login":"maguirem","id":37127865,"avatar_url":"https://avatars0.githubusercontent.com/u/37127865?v=4","gravatar_id":"","url":"https://api.github.com/users/maguirem","html_url":"https://github.com/maguirem","followers_url":"https://api.github.com/users/maguirem/followers","following_url":"https://api.github.com/users/maguirem/following{/other_user}","gists_url":"https://api.github.com/users/maguirem/gists{/gist_id}","starred_url":"https://api.github.com/users/maguirem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maguirem/subscriptions","organizations_url":"https://api.github.com/users/maguirem/orgs","repos_url":"https://api.github.com/users/maguirem/repos","events_url":"https://api.github.com/users/maguirem/events{/privacy}","received_events_url":"https://api.github.com/users/maguirem/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T22:08:48Z","updated_at":"2018-04-17T22:08:48Z","author_association":"NONE","body":"Hi Denis,\n\nYes, sorry about the monster dump into the message.\n\nIssue #48 did resolve the issue with compiling thanks so much.\n\nI am now trying to call the Exported function from a \"C\" program and it is\ncurrently crashing.  I am not sure how to step into the function address.\n\nI am using a Windows Console app to try and call my FPRefund C# \"function\"\nwith no paramters  like:\n\n\n\n#include \"stdafx.h\"\n#include <windows.h>\n#include <stdio.h>\n\ntypedef int (__cdecl *MYPROC)( );\n\n\nint _tmain(int argc, _TCHAR* argv[])\n{\nHMODULE hDLLInstance;\nMYPROC ProcAdd;\n\nif((hDLLInstance = LoadLibrary(TEXT(\"C:\\\\Cybersource\\\\cybersource-sdk-\ndotnet-master\\\\CyberSourceSamples\\\\bin\\\\FPCybersource.dll\")))==NULL)\n    {\n\nMessageBox(NULL,(LPCWSTR)L\"FPCybersource.dll Could not be found. Please\nNotify MIS\",(LPCWSTR)L\"dll Not Found\", MB_ICONEXCLAMATION);\n            return(0);\n    }\n    //\n    // -Get the memory location of the Entry Point. If NULL is returned,\nthere is no\n    // such routine in the dll.\n    //\n        ProcAdd = (MYPROC)GetProcAddress(hDLLInstance,(\"FPRefund\") ) ;\nif (ProcAdd == (MYPROC) NULL)\n{\n   MessageBox(NULL, (LPCWSTR)L\"FPCybersource.dll Entry Point not found.\nPlease Notify MIS\",(LPCWSTR)L\"dll Not Found\", MB_ICONEXCLAMATION);\n   return(0);\n}\nelse\n{\n    //\n    //    -Call your dll.\n    //\n        ProcAdd();\n}\n\n\nreturn 0;\n}\n\n\nAny suggestions?\n\nCheers\n\nMike\n\nOn 17 April 2018 at 22:01, Denis Kuzmin <notifications@github.com> wrote:\n\n> @maguirem <https://github.com/maguirem> thanks for the report. But please\n> use attachments for the next time, because 112 Kb of text information it's\n> really a lot for reading from email or even inside this page.\n>\n> Did you see issue #48 <https://github.com/3F/DllExport/issues/48> ?\n> Please check this out, and let me know if this is not the same problem for\n> you.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/3F/DllExport/issues/71#issuecomment-381930594>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AjaGuZP4qkCEvbhxBv-l-8pxl7Ig6b6sks5tpb1ggaJpZM4TXkbf>\n> .\n>\n\n\n\n-- \nMike Maguire\nSoftime Publishing Co (NZ) Ltd\nEmail: mike.maguire@softime.co.nz\nph (NZ) +64 21 494 099\n"}}
{"actor":{"display_login":"maguirem"}}