win 64 bit application using lotus C API (v8.5) - c

I need to export Lotus NSF database documents to XML. I am using Lotus C API (8.5). I have already build a 32 bit windows application and now I need to port it to 64 bit application. I am not sure if 64 application is supported. If possible, I would like to know how to build it in visual studio.
Thanks

This might have some useful information as well: http://www-10.lotus.com/ldd/ddwiki.nsf/dx/C-Callouts_on_non-32-bit_Platforms

Related

c-icap with Windows Defender

I was tasked to set up an open-source icap-server to scan files that are uploaded in one of our web applications.
The files base64-encoded withing the upload method and this seems to lead to the fortigate not being able to scan it properly.
Now I managed to set up an icap-server using "c-icap" and tested it with "clamav". So far it seems to work, at least EICAR files are detected.
Now the problem is, that my boss is basically a "Windows-only" person who says that any open-source AV can´t be trusted enough.
He wants me to try to have the requests/uploads sent to the c-icap server, but scanned with Windows Defender. ß Is there any - useful - way to accomplish this? Also, since I am super new to ICAP - are there any restrictions regarding which icap-server can be used?Like, is there any way to force requests to be handled with a metadefender-icap only, and not any other icap server?
Sorry if these questions are a bit unspecific and basic, but just started with ICAP yesterday!
Thank you!
Check out this link: https://techcommunity.microsoft.com/t5/windows-it-pro-blog/metadefender-icap-with-windows-defender-antivirus-world-class/ba-p/800234 to see what Microsoft offers regarding Defender+ICAP.
I have used commercial ICAP solutions in the past (like Bluecoat) that allow plugging in multiple commercial virus engines (Kaspersky, Sophos, ...).
These are appliances, and you don't need to tell your boss their internals are probably some sort of Linux ;-)
You can probably also set up a commercial antivirus solution on your Linux system and use that.
Looking at this link: https://learn.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/microsoft-defender-atp-linux it may even be possible to run Microsoft's Defender on Linux. I haven't tried it myself though.
Unlike your boss, Microsoft realizes software shouldn't be made to just run on Windows anymore (even MS-SQL Server now runs on Linux).

The 'OraOLEDB.Oracle' provider is not registered on the local machine? VBScript

I am attempting to connect to a DB in a VBScript application I am writing and this is the error I get upon trying to connect.
The 'OraOLEDB.Oracle' provider is not registered on the local machine.
I am running Windows 7 64-bit.
I attempted to register OraOLEDB11.dll by doing the following in cmd ran as admin:
C:\Windows\System32\regsvr32.exe \path\to\dll\OraOLEDB11.dll
A dialog popped us indicating it successfully registered, but the error remained, so I did more research and found that for 32-bit dll files, you must do:
C:\Windows\SysWOW64\regsvr32.exe \path\to\dll\OraOLEDB11.dll
Same result, got a dialog saying success, but the error persists.
Not sure what to try at this point. I've seen some people say to install both 32 and 64 bit versions but I want to see if there's anything else I can try before doing that.
If You are using Visual Studio, Just check the Build platform (Active Solution Platform) is Any CPU then change it to "x86" it will work.
If still not working then check for your Oracle is 32 bit or not, If not then install 32 bit
The architecture has to match all cases, i.e. all following must be the same either 32 bit or 64 bit, you cannot mix any.
The VBScript interpreter (%windir%\System32\cscript.exe vs. %windir%\SysWOW64\cscript.exe)
%windir%\System32\regsvr32.exe vs. %windir%\SysWOW64\regsvr32.exe
The DLL OraOLEDB11.dll you want to register
The installed Oracle Client
Just a note, it does not matter whether your Oracle Database is 32 or 64 bit.
You have to install both 32 and 64 bit versions of Oracle client only if you require to use either of them.
When you run your VBScript by simple double-click on it, then it will run in 64-bit mode.

windows communication between two applications

I want to create two applications running on the same device (windows rt).
One application would be the app for inputting strings (example is string "235").
The second application would be the output for the first application. (showing "235").
Is it possible to do this in visual studio?
Yes this is possible to do in Visual Studio and to run on a development machine using the loopback adapter, however the loopback adapter is disabled for release builds. You can use the share contract to share your content as a custom object that only your intended application knows how to consume as a share target to accomplish this. A little more about your scenario is needed to provide proper guidance.
John Wiese
Microsoft - Sr. Technical Evangelist
jwiese#microsoft.com
#johnwiese
Try using DLL files.
More info: https://support.microsoft.com/kb/815065

Read excel file in C# by avoiding "Microsoft .Jet.OLEDB.4.0"

I have been using the method to import excel data to my WPF application as mentioned in
Import Excel file into Microsoft SQL Server using C#
and
Reading Excel files from C#
it works great on debug mode but on release mode it dies!
The problem is my client has moved to x64 based machines and the application works fine but just that this piece of code is not working on x64 just because there is no more "Microsoft .Jet.OLEDB.4.0" drivers made available for x64 machines any more.
I dont want to use office interop or provide any dependency for the user to have office installed on the machines.
So any suggestion to avoid this?
Try using Microsoft.Ace.OLEDB.12.0 drivers instead
When we started upgrading all our machines, all my queries using Microsoft.Jet.OLEDB.4.0 stopped working and I had to upgrade them to use Microsoft.Ace.OLEDB.12.0. You shouldn't need to do anything other than change your connection string for it to work.
You could also try using the OpenXML SDK 2.0!
Here's an article that explains reading an excel file using the SDK: http://debugmode.net/2011/10/08/reading-excel-file-in-a-collection-using-open-xml-sdk-2-0/
Getting started and best practices: http://blogs.msdn.com/b/erikaehrli/archive/2009/05/14/open-xml-format-sdk-2-0-getting-started-best-practices.aspx
Hope this helps! ;)
I am using Aspose.cells library. It works pretty good and really easy to work. you can give it a try!
http://www.aspose.com/.net/excel-component.aspx

Run .Net application on XP,Vista,Windows7 ... 32 and 64 bit

I got an application from a client. The application has 2 setup files one for 32 bit OS and other for 64 bit windows OS.
I want to combine them and i want to make 1 exe that runs on all the windows OS and on 32 and 64 bit.
What i need to do ?
Regards,
Behroz
Since: "I got an application from a client."
I would recommend using DotNetInstaller which is a bootstrap for installers.
Then just package both setup files and configure DNI to run the correct setup depending upon the target machine. (It can also be used to install the correct .NET version.)
.. or, ask the client to produce a unified installer :)

Resources