dll

vb6 to vb.net dll compatibility version

若如初见. 提交于 2021-01-27 13:32:53
问题 I explain my problem : I have some program (5-6) in vb6, and a lot of DLL in vb6. We will perform a migration of these DLL and program in Vb.Net. We want to start with DLL, and each program references 2 or 3 DLL. I want to perform the migration of the DLL in vb.net (no problem for that) but i want to keep the (binary) compatibility between my old vb6 DLL and the new one in vb.net Because without that i will have to re build each application using this DLL because the compatibility is broken.

vb6 to vb.net dll compatibility version

旧城冷巷雨未停 提交于 2021-01-27 13:24:10
问题 I explain my problem : I have some program (5-6) in vb6, and a lot of DLL in vb6. We will perform a migration of these DLL and program in Vb.Net. We want to start with DLL, and each program references 2 or 3 DLL. I want to perform the migration of the DLL in vb.net (no problem for that) but i want to keep the (binary) compatibility between my old vb6 DLL and the new one in vb.net Because without that i will have to re build each application using this DLL because the compatibility is broken.

“New” operator works in extern “C”

百般思念 提交于 2021-01-27 13:08:47
问题 Im using a C++ DLL for my C# project, DLL has a class inside which is created and destroyed by outer functions such as: class myClass { int N; public: //some elements and some functions myClass(int n) { N=n; } }; __declspec(dllexport) myClass * builderF(int n) { return new myClass(n); } __declspec(dllexport) void destroyerF(myClass * c) { delete c; } and these are in extern "C" {} body. How does the compiler let me use C++ features is "C" space? Isnt it for only C code? This is tested and

combase error (CoInitialize has not been called)

时光总嘲笑我的痴心妄想 提交于 2021-01-27 12:50:30
问题 onecore\com\combase\objact\objact.cxx(812)\combase.dll!00007FF8BD322169: (caller: 00007FF8BD320F78) ReturnHr(1) tid(b54) 800401F0 CoInitialize has not been called. I'm using Visual Studio 2015 and have started receiving the following error message. I'm not trying to write dll's or using COM objects or whatever. It's just a simple OpenGL program. I have no idea where this error message has come from. How do I get rid of it? 回答1: You are using COM implicitly. Without code, we don't know exacly.

C DLL In Code::Blocks

房东的猫 提交于 2021-01-27 12:36:30
问题 I can't find anything about how to make a C DLL in Code::Blocks. Whenever I try and look it up it shows links to using C++ DLLs in managed programming languages. And Code::Blocks doesn't give an option for a C DLL. What do I do? 回答1: File->New->Project to show this dialog: Then select Dynamic Link Library and away you go. 回答2: In Code::Blocks you create a new project, then select Dynamic Link Library (note: you can also, more easily create a Static Link Library, which is also available) and

Are inline static variables unique across modules in visual c++?

孤街醉人 提交于 2021-01-27 12:23:25
问题 c++17 introduce inline (static) variables. It is said that "The compiler will guarantee that a variable has only one definition and it’s initialised only once through all compilation units." I am wondering if visual c++ guarantee inline static variable will be unique across multiple modules (dlls and exe). //cat.h class __declspec(dllexport) Cat { public: inline static int var = 0; }; If cat.h is included in multiple dlls and one exe, is Cat::var unique in the application ? 回答1: Your question

Why do I get UnsatisfiedLinkError when calling a MinGW-compiled function (not loading the library) on Windows?

♀尐吖头ヾ 提交于 2021-01-27 09:04:04
问题 I'm making a simple JNI test app using Eclipse on Windows. My C++ compiler is MinGW 4.6.2. Java is throwing an UnsatisfiedLinkError when I try to invoke a function in my test DLL (the DLL itself loads without problem). I have verified that my DLL exports a "C" function with the same name as the function generated by the javah utility. How could trying to invoke the function possibly generate a link error? (Also, is there any way to get more detail as to what symbol isn't being found? A bald

Why do I get UnsatisfiedLinkError when calling a MinGW-compiled function (not loading the library) on Windows?

余生长醉 提交于 2021-01-27 09:03:41
问题 I'm making a simple JNI test app using Eclipse on Windows. My C++ compiler is MinGW 4.6.2. Java is throwing an UnsatisfiedLinkError when I try to invoke a function in my test DLL (the DLL itself loads without problem). I have verified that my DLL exports a "C" function with the same name as the function generated by the javah utility. How could trying to invoke the function possibly generate a link error? (Also, is there any way to get more detail as to what symbol isn't being found? A bald

Why do I get UnsatisfiedLinkError when calling a MinGW-compiled function (not loading the library) on Windows?

我只是一个虾纸丫 提交于 2021-01-27 09:01:07
问题 I'm making a simple JNI test app using Eclipse on Windows. My C++ compiler is MinGW 4.6.2. Java is throwing an UnsatisfiedLinkError when I try to invoke a function in my test DLL (the DLL itself loads without problem). I have verified that my DLL exports a "C" function with the same name as the function generated by the javah utility. How could trying to invoke the function possibly generate a link error? (Also, is there any way to get more detail as to what symbol isn't being found? A bald

How to make LoadLibrary to show error dialog when there are missing dependencies

老子叫甜甜 提交于 2021-01-27 07:36:15
问题 Suppose we have two dynamic libraries libfoo.dll and libbar.dll , given that libbar.dll depends on libfoo.dll . Further we compile an executable test.exe that loads our libbar.dll using WinAPI function LoadLibrary() . If we run text.exe on Windows XP with missing libfoo.dll , LoadLibrary() shows dialog box alerting than libfoo.dll is actually missing and sets LastError to ERROR_MOD_NOT_FOUND (126). If we run same text.exe in same conditions on Windows 10, LoadLibrary() sets LastError to ERROR