I'm using VB6 and trying to determine which operating system the software is running on via API call:
GetVersionExA
The problem that I am having is that both Windows 7 and Windows Server 2008 return the same value: "6.1.7601"
Can anyone please tell me how to tell the difference of windows 8 and windows 7 using this API, or even another way for VB6?
Thanks in Advance!
Make sure you get the OSVERSIONINFOEX structure (by setting the dwOSVersionInfoSize member of the structure to sizeof(OSVERSIONINFOEX)) before calling GetVersionEx. As you can see from the link you can use the wProductType member of the struct to help distinguish between OSs.
Related
Am using MS Access 2016 to develop an application managing images. But some of my users are still using MS Access 2007 on their computers. And the receive the error "unrecognized database format".
So I would like to know if there is any solution for this. Like making my application compatible for previous versions.
I did some researches for days but not satisfied yet.
Need any help, solution or advice please. Thanks
Develop using the lowest version that your application will address, here 2007.
A newer version - 2010 and onwards - will run an older with no problems. However, 2007 is 32-bit only, thus - if you use API calls and some users run Access 64-bit - you must take care of that.
I hope you can help me solving this problem
Every day a friend of mine has to fill the same field in AS400 using data that are stored in excel spreadsheet. I am pretty advanced programmer in VBA so I was wandering if there is a way to make vba and as400 interact
any ideas?
thank you very much in advance
EDIT:
in the meanwhile I am doing some digging and I found this
http://www.ibm.com/support/knowledgecenter/SSEQ5Y_5.9.0/com.ibm.pcomm.doc/books/html/host_access08.htm
Dim autECLConnList as Object
Dim Num as Long
Set autECLConnList = CreateObject("PCOMM.autECLConnList")
autECLConnList.Refresh
Num = autECLConnList.Count
but when I try to exectu the following code I get runtime error 249 saying that ActiveX Component couldn't create the object
If you want to load data directly to the tables, than the ODBC, OLEDB, or .NET driver would be the way to go. In fact, IBM provides functions to transfer data directly to/from Excel.
If you must load data through the existing screen, then you're on the right track. However, note that Personal Communications (PCOMM) is a stand-a-lone product different that the more prevalent Client Access (CA) product.
It's a bit confusing as CA includes a a subset of PCOMM as the CA emulator.
And there's two variants of CA
- older IBM i Access for Windows (originally Client Access (CA) for Windows)
- new Java based IBM i Access Client Solutions (ACS)
The older CA product included APIs for enabling workstation programs to interact with IBM i host systems. You'll need to install the Programmer's Toolkit component of IBM i Access for Windows. The toolkit is basically just documentation. Included in the toolkit is a link to some sample applications
Now the new ACS product is Java based. However IBM packages some windows specific components for ACS under the Windows Application Package. That apparently includes the aforementioned programmers toolkit.
I'm honestly not sure how that works given that the ACS emulator is Java based, instead based on the native windows PCOMM like the older emulator was.
You can do that with IBM Client Access ODBC Driver.
https://www-304.ibm.com/support/docview.wss?uid=swg21418043
Then use this connection string:
Driver={iSeries Access ODBC Driver};System=my_system_name;Uid=myUsername;
Pwd=myPassword;
As usual I found it here: https://www.connectionstrings.com/as-400/
I am trying to add local database functionality to app Universal Windows 10 app. I've been told the simplest method is using SQLite.
I followed the tutorial up at: http://igrali.com/2015/05/01/using-sqlite-in-windows-10-universal-apps/ although it was in C# I did think this would be an issue to translate.
I installed the VS2015 Add-on, have the reference set, but cannot create a database at all!
Does anyone know how to set up the project correctly and create a database to work with in VB?
Below is an example. I have SQL.Net.Attributes imported, but it wont recognise [Primary Key]
In Visual Basic, an attribute is enclosed in angle brackets (<>). You can find more information here :https://msdn.microsoft.com/en-us/library/z0w1kczw.aspx
I now have a working example. I used SQLiteStudio to create a Database and used the SQLite-PCL library to create a connection for CRUD operations
Hi there and many thanks in advance, Im veeery newby.
I am building a small visual basic 2010 application and I need a better choice for my database (around 20 tables), since now Im using SQL server express 2008 and as far as I understand it is too big and complicated for me (just installing it was a pain for me)
I am looking for an application that will be easy to distribute (maybe just an installer and thats it!) and that can run without problems on old computers with windows xp.
The last thing is that I want to have to chance to install just a client version of my app on a computer and tell it to connect to the database wich will be running on other computer on the same LAN (or maybe on a web server on the future!).
In other words I would like to have the option of selecting "where" is the database to read/write on.
I will thank advices for this implemtation and will respond if somebody needs more details before answering.
Well installing sqlserver in not rocketscience al you need to execute .exe .
Though if you looking for opensource database then have a look at mongodb
MySql is open source and quite easy to use, especially with a tool like PHP MyAdmin:
http://www.mysql.com/
We've found that Windows Server 2008 SP2 doesn't contain QEDIT.DLL.
This 'DirectShow Editing' DLL contained several useful DirectShow filters, namely SampleGrabber, that we had been using.
I found some references to this issue during the Windows Server 2008 beta cycle, but it was supposed to have been added back for release.
Does anyone have any current knowledge of this, and if there are any workarounds other than copying a version from Vista or Win2003?
The SampleGrabber filter is one of the MSDN sample filters. I'm not sure whether all the filters that you need are available as samples though.