From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-10-2016 06:34 AM
Hello,
How do we proceed to modify DBLog.dll to release the connection between TestStand 4.2.1 and MS Access (our database)?
Do we have all the needed files in Components\Models\TestStandModels\Database\DBLog to regenerate the dll?
Thibault
03-10-2016 09:08 AM
You have all the source code. the vcproj file should be able to build it exactly back to how it should be. If you google around for how to use a vcproj file it should be pretty straight forward. It's basically xml that contains instructions and settings on how to rebuild the dll.
Regards,
03-11-2016 04:04 AM
Thank you for your quick reply.
We want to load the TestStand 2014 DBLog.dll modified in TestStand 4.2.1.
When I load the project with MSVS 2012, there are 2 files missing which prevent me to compile it:
DBLog.h and DBLog_i.c
Where can I find these files?
Regards,
Thibault
03-11-2016 09:06 AM
I honestly couldn't tell you where to get them. They are not on my machine anywhere. Can you still build without them? maybe they are legacy? It almost feels like this utililty used to be written in C and then they redid it in C++. And this just seems to be left over. But I could be wrong about that.
Sorry I'm not more help than that. Have you tried contacting NI directly to get them?
Regards,
03-15-2016 03:17 PM
These files should be located at: <TestStand>\Components\Models\TestStandModels\Database\DBLog. You should have DBLog.h and DBLog.cpp in that directory. If they are not there, let me know and we'll take a look to figure out why they are not in that location.
03-15-2016 04:27 PM
Daniel,
Those files are not in my folders anywhere in both TS 2014 and TS 2010. FYI.
Cheers,
03-16-2016 02:58 AM - edited 03-16-2016 02:59 AM
I have contacted NI directly and they have sent me the 2 files missing. (DBLog.h & DBLog_i.c)
To obtain these files, they told me to:
- Go into the directory "C:\Program Files (x86)\National Instruments\TestStand 2014\Components\Models\TestStandModels\Database\DBLog" (I have 32 bit version)
- Launch the project "DBLog.vcxproj" with MS VS
- Save the project
- Then the files appear in DBLog directory
I didn't do it yet.
Regards
ThibaultMM
03-16-2016 07:55 AM
That works, but there is another problem..
These lines give me errors:
// This line declares classes to access the NI Session Manager server, typically located at C:\Program Files\National Instruments\Shared\Session Manager\NISessionServer.dll" #import "SessionMgr.tlb" no_registry implementation_only rename_namespace("SM") rename("GetObject", "TSRenamed_GetObject") // This line declares classes to access Microsoft ADO // don't use this hardcoded path because it needs to be C:\Program Files (x86)\ on a 64 bit machine, instead used the guid //#import "C:\Program Files\Common Files\System\ado\msado15.dll "implementation_only inject_statement("#undef EOF") no_namespace #import "libid:2A75196C-D9EB-4129-B803-931327F72D5C" implementation_only inject_statement("#undef EOF") no_namespace"Error: cannot open source file
Error: cannot open source file "C:/Program Files (x86)/National Instruments/TestStand 2014/Components/Models/TestStandModels/Database/DBLog/Win32/Debug/SessionMgr.tlh"
&
Error: cannot open source file "C:/Program Files (x86)/National Instruments/TestStand 2014/Components/Models/TestStandModels/Database/DBLog/Win32/Debug/libid:2A75196C-D9EB-4129-B803-931327F72D5C.tlh"
I added SessionMgr.tlb & msado15.dll in my project. I can see those files in my object explorer, but it doesn't work anyway.
Do you know how to resolve this issue?
Regards,
Thibault
03-16-2016 01:38 PM
Thibault,
You might be able to resolve this by changing the project settings in Visual Studio. Specifically, you should go into the project settings, then Configuration Properties » C/C++ General » Additional Include Directories to include this search directory:
..\..\..\..\..\API\VC;..\..\..\..\..\bin
It appears that the project is configured to look in a subdirectory of the \bin folder, which may be causing these files to not be found. After making this change on my test system, I was able to build the project successfully. Let me know if this works on your end.
09-17-2020 04:51 PM
Hello Thibault,
Did you ever figure out how to make these changes to DBLog.dll?
I need to do the same, any info would be appreciated. regards