compatibility

.lib and .dll Backward Compatibility

本秂侑毒 提交于 2019-12-05 18:16:26
问题 I currently have a VS6 unmanaged C library that I deliver as either a .lib or .dll. I want to upgrade to VS2010 but I still have users that are in VS6, VS2005, and VS2008. Can a .lib or .dll built in VS2010 be used in VS6, VS2005, or VS2008? Thanks! 回答1: It depends on the runtime used to build the libraries. I would typically run into this problem when upgrading solutions from VS2005 to VS2008. The default runtime libraries are different from edition to edition. When you're building the .lib

Best Practice for JS - window.open() in href or in onclick?

半城伤御伤魂 提交于 2019-12-05 18:06:06
Just a question about optimization, between : <a href="#" onClick="javascript:window.open('myUrl.com');">link-1</a> and : <a href="javascript:window.open('myUrlBis.com');">link-2</a> Is one better than the other ? Or more compatible ? Thanks. Best practice is to use the target attribute : <a href="http://myUrl.com" target="_blank">link-1</a> If that doesn't suit, a click handler (ideally not assigned via attribute) would be my take. Neither one Make it a regular link using href and target <a id='my-link' target="_blank" href="http://myUrlBis.com">link-2</a> If you need to do some processing of

When/where should I check for the minimum Python version?

大城市里の小女人 提交于 2019-12-05 17:25:48
This question tells me how to check the version of Python. For my package I require at least Python 3.3: MIN_VERSION_INFO = 3, 3 import sys if not sys.version_info >= MIN_VERSION_INFO: exit("Python {}.{}+ is required.".format(*MIN_VERSION_INFO)) but where/when should this check occur? I want to produce the clearest possible error message for users installing via pip (sdist and wheel) or python setup.py install . Something like: $ pip -V pip x.x.x from ... (Python 3.2) $ pip install MyPackage Python 3.3+ is required. $ python -V Python 3.2 $ python setup.py install Python 3.3+ is required. The

Using a kotlin library in java code

为君一笑 提交于 2019-12-05 08:11:32
I have a kotlin library FlowLayout lib as aar , and want to use it in my java code (android) but can not to resolve kotlin.Pair . FlowLayoutManager layoutManager=new FlowLayoutManager(3, RecyclerView.HORIZONTAL, new FlowLayoutManager.Interface() { @Override public kotlin.Pair<Integer, Integer> getProportionalSizeForChild(int i) { return null; } }); I have tried android.support.v4.util.Pair but is not compatible. How can I use a kotlin lib in java code with their object dependencies? Class kotlin.Pair belongs to the standard library org.jetbrains.kotlin:kotlin-stdlib:1.0.0 , so you must have

Why my iOS app is not compatible with old devices(e.g. iPhone 4S, 5, iPad 2)?

余生长醉 提交于 2019-12-05 06:54:32
I created app with xcode and selected universal as device and deployment target is iOS 8.0. I sent my app to App Store and approved but I see that list at app page. Requires iOS 8.0 or later. Compatible with iPhone 5s, iPhone 6, iPhone 6 Plus, iPhone 6s, iPhone 6s Plus, iPhone SE, iPad Air, iPad Air Wi-Fi + Cellular, iPad mini 2, iPad mini 2 Wi-Fi + Cellular, iPad Air 2, iPad Air 2 Wi-Fi + Cellular, iPad mini 3, iPad mini 3 Wi-Fi + Cellular, iPad mini 4, iPad mini 4 Wi-Fi + Cellular, 12.9-inch iPad Pro, 12.9-inch iPad Pro Wi-Fi + Cellular, 9.7-inch iPad Pro, 9.7-inch iPad Pro Wi-Fi + Cellular,

Oracle equivalent of PostgreSQL INSERT…RETURNING *;

别说谁变了你拦得住时间么 提交于 2019-12-05 05:23:23
I've converted a bunch of DML (INSERT/UPDATE/DELETE) queries from Oracle into PostgreSQL and now I need to check whether they produce the same set of rows, i.e. that delete removes the same rows, assuming the oracle and postgresql databases contain the same data initially, update updates the same rows etc. On PostgreSQL side, I can use the returning clause with DML statements, i.e. INSERT INTO test(id, name) VALUES(42, 'foo') RETURNING *; What's good about the statement above is that I can prepend 'returning *' to any DML statement without knowing the structure or even the name of the table it

Compatibility problem with .xcdatamodeld between Xcode 4.1 (Lion) and Xcode 3.2.5 (snow leopard)

淺唱寂寞╮ 提交于 2019-12-05 03:22:38
I have a problem with a Data Model using Core Data. 1/ I've created a data model on xcode 4.1 (on lion) with my entities and their relationships. In the inspector on the right i've checked "Tools version" : Minimum : Xcode 3.2 instead of Xcode 4.1. 2/ When i try to reopen my project, in Xcode 3.2.5 (on snow leopard), I click on "mydatamodel.xcdatamodeld", then on "mydatamodel.xcdatamodel", but nothing happen ! It's like my xcdatamodel file was empty but it's a 4.9 Mo file ! My xcdatamodel file refuses to open and it's very frustrating. 3/ I've tried just to add only the xcdatamodel file which

webapp2 with python3

徘徊边缘 提交于 2019-12-05 02:29:36
I use webapp2 with python 2.7 with or without googleAppEngine. I'm now trying to use it with Python 3.3 I've used PIP to install webapp2 Install run with success but when I try to import webapp2 from IDLE gaves me the folowing error: File "<pyshell#0>", line 1, in <module> import webapp2 File "C:\Python3\lib\webapp2.py", line 571 except Exception, e: ^ I suspect it's a thing that must be updated in order to work with Python3... ?anybody done this already or should I wait for an updated version of webapp2 ?is there any a beta version for Python 3 that we can access Indeed, webapp2 is not Python

Android - Google Play filtering out xxhdpi

有些话、适合烂在心里 提交于 2019-12-05 02:10:34
I currently have a problem with Google Play filtering and the new density class xxhpdi, which was introduced in API Level 16. My app is splitted into 3 APK files (I know that is not the best practice, but due to a bad planning, I have to do it like this at the moment). The interesting part is the version for Android 4.0, Smartphones only. I have setup market filter in AndroidManifest.xml like this: <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="17"/> <compatible-screens> <screen android:screenDensity="ldpi" android:screenSize="small"/> <screen android:screenDensity="mdpi"

Html5 (audio) on Safari & iOS

核能气质少年 提交于 2019-12-05 02:09:45
I am working on a web application and I have one compatibility problem with Apple devices & Safari on PCs. Html5 audio tag: <audio controls> <source src="/audio/en/file.mp3" type="audio/mpeg"> <source src="/audio/en/file.ogg" type="audio/ogg"> Your browser does not support the audio element. </audio> I just want to play an audio file with basic controls. The previous code works perfectly on Chrome, Opera, Firefox ( Windows & Android devices ). But controlers do no appear with Safari ( tested with the latest version on PC, iPad & iPad mini ). Audio player have a grey background with only "play