dll

Create DLL file from .c

北城以北 提交于 2021-02-10 12:07:31
问题 i'm tring to create a .dll file from this .c code (for Labview). http://www.mathworks.com/matlabcentral/fileexchange/26190-vchoosek But i'm not able to compile it nor with VisualStudio nor with "mcc" because both compilers return this error: VChooseK.obj : error LNK2019: unresolved external symbol mexErrMsgIdAndTxt referenced in function BadInputTypeError VChooseK.obj : error LNK2019: unresolved external symbol mxFree referenced in function ElemK_8Byte VChooseK.obj : error LNK2019: unresolved

Create DLL file from .c

好久不见. 提交于 2021-02-10 12:01:33
问题 i'm tring to create a .dll file from this .c code (for Labview). http://www.mathworks.com/matlabcentral/fileexchange/26190-vchoosek But i'm not able to compile it nor with VisualStudio nor with "mcc" because both compilers return this error: VChooseK.obj : error LNK2019: unresolved external symbol mexErrMsgIdAndTxt referenced in function BadInputTypeError VChooseK.obj : error LNK2019: unresolved external symbol mxFree referenced in function ElemK_8Byte VChooseK.obj : error LNK2019: unresolved

Create DLL file from .c

纵然是瞬间 提交于 2021-02-10 12:01:14
问题 i'm tring to create a .dll file from this .c code (for Labview). http://www.mathworks.com/matlabcentral/fileexchange/26190-vchoosek But i'm not able to compile it nor with VisualStudio nor with "mcc" because both compilers return this error: VChooseK.obj : error LNK2019: unresolved external symbol mexErrMsgIdAndTxt referenced in function BadInputTypeError VChooseK.obj : error LNK2019: unresolved external symbol mxFree referenced in function ElemK_8Byte VChooseK.obj : error LNK2019: unresolved

Create DLL file from .c

二次信任 提交于 2021-02-10 12:01:05
问题 i'm tring to create a .dll file from this .c code (for Labview). http://www.mathworks.com/matlabcentral/fileexchange/26190-vchoosek But i'm not able to compile it nor with VisualStudio nor with "mcc" because both compilers return this error: VChooseK.obj : error LNK2019: unresolved external symbol mexErrMsgIdAndTxt referenced in function BadInputTypeError VChooseK.obj : error LNK2019: unresolved external symbol mxFree referenced in function ElemK_8Byte VChooseK.obj : error LNK2019: unresolved

How to register a DLL with RegAsm in Build EventS VS2013

天涯浪子 提交于 2021-02-10 08:43:52
问题 In every compile, output dll is changed in my program and after every compile, I must register dll again. I can register it via Visual Studio Command Prompt as regasm mydll.dll. But I dont want to do it everytime and I want it as automatically. After some research, I have detected that it is possible with Visual Studio from Build Events (project>properties). But I have never used Build Events before and I really cannot understand how it will be. Should I write my dll path to pre-build event

How to register a DLL with RegAsm in Build EventS VS2013

五迷三道 提交于 2021-02-10 08:43:11
问题 In every compile, output dll is changed in my program and after every compile, I must register dll again. I can register it via Visual Studio Command Prompt as regasm mydll.dll. But I dont want to do it everytime and I want it as automatically. After some research, I have detected that it is possible with Visual Studio from Build Events (project>properties). But I have never used Build Events before and I really cannot understand how it will be. Should I write my dll path to pre-build event

using a dll with node-ffi

时光总嘲笑我的痴心妄想 提交于 2021-02-10 07:07:55
问题 I'm using node-ffi to access a dll supplied by a custom hardware i bought, the dll uses device driver to do things, they don't supply dll docs but they have a sample app in c#, the dll is used in c# like this: [DllImport("POS_CIDR.dll", CharSet = CharSet.Unicode)] private static extern IntPtr CIDR_Info(); ... result = Marshal.PtrToStringUni(CIDR.CIDR_Info()); ... now i try to access CIDR_Info function of dll with following node code: var ffi = require('ffi') var ref = require('ref') var int =

using a dll with node-ffi

对着背影说爱祢 提交于 2021-02-10 07:07:27
问题 I'm using node-ffi to access a dll supplied by a custom hardware i bought, the dll uses device driver to do things, they don't supply dll docs but they have a sample app in c#, the dll is used in c# like this: [DllImport("POS_CIDR.dll", CharSet = CharSet.Unicode)] private static extern IntPtr CIDR_Info(); ... result = Marshal.PtrToStringUni(CIDR.CIDR_Info()); ... now i try to access CIDR_Info function of dll with following node code: var ffi = require('ffi') var ref = require('ref') var int =

using a dll with node-ffi

最后都变了- 提交于 2021-02-10 07:07:09
问题 I'm using node-ffi to access a dll supplied by a custom hardware i bought, the dll uses device driver to do things, they don't supply dll docs but they have a sample app in c#, the dll is used in c# like this: [DllImport("POS_CIDR.dll", CharSet = CharSet.Unicode)] private static extern IntPtr CIDR_Info(); ... result = Marshal.PtrToStringUni(CIDR.CIDR_Info()); ... now i try to access CIDR_Info function of dll with following node code: var ffi = require('ffi') var ref = require('ref') var int =

Load same dll multiple times

瘦欲@ 提交于 2021-02-10 05:57:09
问题 I’m trying to load different versions of my dll while my host program is running. I can’t use different AppDomains and unload them, the reason is that my host program is just a test-setup and the real application (Autodesk 3ds Max) doesn’t support it and I can’t change anything about that. This is how I’m loading my dll in my test program: var testAssembly = Assembly.LoadFrom(textBox1.Text); var formObject = testAssembly.CreateInstance("Dll_Test.Form1"); (formObject as Form).Show(); I read