Building libmysqlclient on Windows - mysql

ALL,
In the past mySQL provided Connector/C source code and there was a page on the website which explained how t build it.
Now mySQL deprecated Connector/C and instead it is called libmysqlclient and it looks like both source code is not available fr download and the page with the explanation of the build is taken off the site.
So now the question is - does anybody able to download the source code and build the library?
I even tried to talk to mySQL and filed a bug about missing the source code download/documentation but it got rejected.
In the bug I got a suggestion to se Connector/C++, but I don't know how it will work, since my code is using C API and not C++.
THank you for any pointers you can provide

Related

Mysql connector/c Version >=6 on Windows XP

I have to "downgrade" an existing apllication running fine on windows 7.
When starting in on Windows XP (SP3) it crashes with the comment The procedure entry point InitializeConditionVariable could not located in the dynamic library Kernel32.dll.
Reading the oracle forum tells that on needs mysql.dll in Version < 6.
But how to optain such a DLL? I'm not able to find it from the oracle website.
Are there official ressources?
Hi there, I need to push the question up. I'm sorry, I can't believe there is no one able to answer. The question is two weeks old. Any help over there?
And once again a need to push - two further weeks without any help.
I am the guy who posted on the Oracle forum. This is the last Windows XP 32 bit compatible libmysql.dll I could find anywhere on the Internet.
You may find the DLL at this URL.
The download link is working at the time I am posting this answer.
It's an unofficial, third party website, not endorsed by Oracle. I warmly encourage who downloads it to scan it for viruses etc.
Best regards,
dfumagalli
Dario, thank you for your helpful answer.
I did not mark it as an answer, as there is no guarantee, the dll is from mysql.
I asked at mysql and got the following answer (from Lenka Kasparova):
I asked my colleagues and got advised on following response:
=====
We offer archives of earlier versions of Connector/C from our download archive:
http://downloads.mysql.com/archives/c-c/
Unfortunately versions prior to 6.0 spans back quite far and is no longer supported for download.
=====
But inspired by that I found another solution: Visiting the page http://dev.mysql.com/downloads/mysql/ I found a way to download mysql-5.6.19-win32.zip (MD5: a855f736a676bd9b50b1a9a8c1b73065) from the Generally Available (GA) Releases. This file contains the wanted libmysql.dll.
You can see the crc checksum 53010E33 for the filesize 4 432 384 B in the screenshot:
For those, who do not want to download the big .zip (217 394 KB), feel free to ask me for the given DLL or search for that version on the net and be sure to compare the hashes. That should be a little bit more trustable.

How to install JSON for Visual Studio 2013?

I Installed the Nuget Package Installer thing, and it says it installed it.
However I can't find any references to JSON in Visual Studio.
I tried using System.JSON but I can't find it.
How can I use it?
Thanks
I have had been through the same trouble today, when I almost completed my Software Project and just had to use the File to use its contents to change the content of the Project.
For that I wanted to use JsonObject class to get the contents of the .json file. When I tried to write this
using System.Json;
It gave me the exact same error that you might have been going through. It asked for the Assembly files and DLLs.
I kept searching and I stumbled upon to this post, which was totally unhelpfull for me. So I searched and got what I was looking for. After that, I wanted to share that triumph with you people too so that next visitor must have an answer to his trouble on Stack Overflow.
Solution
What I did was, I went to the NuGet website for the System.Json extension package.
http://www.nuget.org/packages/System.Json
There, I capture the command for the installation.
I just click on the Tools --> NuGet package manager --> Package Manager Console and it gave me a new window in the bottom part of Visual Studio 2013.
There I typed (pasted) the link of command I copied. It started and installed the package for me. And now I can use it!
Further answer
I was told that it is a part of .NET v4.5, but I even have the v4.5.1 and still I don't get it why I don't have that package, maybe because on the Web page of the package it is shown deprecated. But still who ever needs it, can have the answer I have posted and it would help him out!
Good luck!
I think you can use the Newtonsoft JSON.NET package.
http://www.nuget.org/packages/newtonsoft.json/
I was also looking for a way to do JSON in C# and saw that they made it easier with .NET 4.5, couldn't do it and found this stack overflow question. I wasn't really satisfied with Afzaal Ahmad Zeeshan's answer so I kept searching and found this which I guess isn't depreciated and worked for me.
Steps in plain English (for .NET 4.5):
1.Add Reference to System.Runtime.Serialization
2.Add "using System.Runtime.Serialization.Json;" to your class
3.call "JsonReaderWriterFactory.CreateJsonReader()" or whatever methods you need to use to read/write json
Install latest VS 2017
Install-Package System.Runtime.Serialization.Json -Version 4.3.0
-- in PM console

How to create a PPAPI plugin for Google Chrome in Windows?

I am new to PPAPI development and have downloaded the already examples from here
However, even after coming across the documentation,
I am not able to build the project.
I have Microsoft Visual Studio 2010, Windows OS and Chrome:30.0.1599.65
I understand that once a dll is created, using the regsvr32 command will register the plugin, although getting the dll, even with available code, seems tough for me. Any help for building the dll is appreciated.
You will want to start here to download the and set up the SDK: https://developers.google.com/native-client/sdk/download
This page will take you through how to build and run the examples: https://developer.chrome.com/native-client/sdk/examples
This page goes over how to actually create your own plugin: https://developer.chrome.com/native-client/devguide/tutorial/tutorial-part1
And then you should read this entire section to code and structure your application: https://developer.chrome.com/native-client/devguide/coding/application-structure
If you need any third party libraries be sure to check here: https://chromium.googlesource.com/webports
Edit: Forgot to mention that you will want to use the same version of the pepper api as the version of chrome you're running (in this case pepper_30). Also, you have to use the NaCl toolchain (one of either glibc, newlib, or pnacl); you can't use the Visual C/C++ toolchains. I recommend trying pnacl now that it is available, as that is by far the most cross platform version, but if you run into trouble, you'll probably want to use the newlib toolchain as it has better support.

php 4 / mysql jstree example from luban.danse.us - Anyway to port this functionality to the new version of jstree? (v1)

Having tried to use the example for php/mysql at http://jstree.com/demos I have realized that I needed extra functionality and as well noticed that this works only with PHP 5 due to some errors that Firebug was prompting for the output. I then started to look for more documentation on jstree and found in here someone suggesting to review the example on the following page:
http://luban.danse.us/jazzclub/javascripts/jquery/jsTree/reference/_examples/7_full.html
I did find it very close to what I need for a personal project, however the example is fixed for one DB interaction from what I was able to see in the core dependencies (full/script.js). I'm trying to port this example to PHP 5, but at the moment just would like to know if there is a possibility to extend this to use new plugins such as 'checkbox' even-though this is an earlier version.
I've posted this question in the forums to see if there is any possibility to recreate a PHP/mySQL example using the 'contextmenu' and as well the options at the top of the panel, but since this apparently is not supported by what I was able to understand from the documentation, I thought perhaps someone have tried something similar to this?
Thanks in advance,
JP-

How to sign a binary as part of post build step using sn.exe from Windows SDK?

I am a totally unfamiliar in this C# Visual Studio programming environment but I am required to finish a task.
I am sorry if my question seems silly. But I really could not understand what other posts on this site or other site on the net explaining. I need a step by step guide to do this final step to accomplish my task.
I have been given an application called MCC written using Visual Studio 2008. However, this application could not run properly in Window Vista due to the issue of DEP. MCC has a function to display video from an IP camera. This required the ActiveX control of AxGif89aLite. However, DEP in Vista is by default enabled. The flag IMAGE_DLLCHARACTERISTICS_NX_COMPAT in PE header do not allow this control to be used. Several tests have been run and identified this is the problem.
From an article online,
http://blog.dyadica.net/archives/data-execution-prevention-workaround, they suggest I need to add the below to MCC post build event.
call $(DevEnvDir).. \tools\vsvars32.bat
editbin.exe /NXCOMPAT:NO $(C:\Program Files\Aerocut\MCC\MCC2.exe)
So, I add this and rebuild the MCC solution file. Then, I cannot get what this last step required me to do.
Please note that if you sign the binary in Visual Studio, flipping the IMAGE_DLLCHARACTERISTICS_NX_COMPAT flag in the post build step after the binary has been signed will result in an assembly that will fail strong name validation. To work around this sign your binary as part of the post build steps.
To do this, use SN.EXE from the Windows SDK.
I am really confused what is this signing binary.
From information that I googled, signing an application is getting a certificate for the program so that it is more secured, am I right here?
I got the SN.EXE in my computer. But, how do I sign my binary as post build step? The binary should be my compiled execution file right?
I reinstalled the MCC with the rebuilt setup file. It still give me the following error:
Unable to get the window handler for the 'AxGif89aLite' control. Windowless ActiveX controls are not supported.
Help is very much appreciated. I would like to express thank you in advance here first.
If you're not signing the executable already as part of the compilation then you don't need to worry about it.