Embedding one dll inside another as an embedded resource and then calling it from my code

Once you’ve embedded the third-party assembly as a resource, add code to subscribe to the AppDomain.AssemblyResolve event of the current domain during application start-up. This event fires whenever the Fusion sub-system of the CLR fails to locate an assembly according to the probing (policies) in effect. In the event handler for AppDomain.AssemblyResolve, load the resource … Read more

installing JDK8 on Windows XP – advapi32.dll error

This happens because Oracle dropped support for Windows XP (which doesn’t have RegDeleteKeyExA used by the installer in its ADVAPI32.DLL by the way) as described in http://mail.openjdk.java.net/pipermail/openjfx-dev/2013-July/009005.html. Yet while the official support for XP has ended, the Java binaries are still (as of Java 8u20 EA b05 at least) XP-compatible – only the installer isn’t… … Read more

std::vector needs to have dll-interface to be used by clients of class ‘X warning

Exporting from a DLL is platform-specific. You will have to fix this for Windows (basically use declspec(dllexport/dllimport) on the instantiated class template) and encapsulate the required code in your Windows-specific preprocessor macro. My experience is that exporting STL classes from DLLs on Windows is fraught with pain, generally I try to design the interface such … Read more

what does “error : a nonstatic member reference must be relative to a specific object” mean?

EncodeAndSend is not a static function, which means it can be called on an instance of the class CPMSifDlg. You cannot write this: CPMSifDlg::EncodeAndSend(/*…*/); //wrong – EncodeAndSend is not static It should rather be called as: CPMSifDlg dlg; //create instance, assuming it has default constructor! dlg.EncodeAndSend(/*…*/); //correct

MS C++ 2010 and mspdb100.dll

try running path\to\VC\bin\vcvars32.bat from within your current shell first. This should ensure your command-line setup will match the IDE-setup. This is not a permanent fix — you need to do it every time you launch a new shell. You could probably also find some way to add everything that’s in that .bat permanently to the … Read more

No creation of a WPF window in a DLL project?

Make sure the project type is WPF User Control Library when you create your project. If it isn’t then no sweat, just edit the csproj file and make sure the <ProjectTypeGuids> element under Project/PropertyGroup contain the following GUIDs <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> Also, make sure you reference PresentationFramework and System.Xaml in your project, or you will not get … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)