Elecard
May 24, 2013, 09:46:53 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Elecard Network Renderer  (Read 2120 times)
Arianit
Newbie
*
Posts: 30


View Profile
« on: February 01, 2010, 05:42:39 am »

I've created installer with VS2008 and added required filters neccessary for it to work. During my testing I've loaded this installer into two machines. In one it works just as expected in the other it loads all other filters appart from Elecard NWRenderer filter and so it doesn't work.
It fails during:

CFilterWrapper FilterNetRenderer;
_stprintf(tempPath, _T("%s%s"), m_BinPath, NETRENDERER_FILENAME);
FilterNetRenderer = CFilterWrapper(CLSID_NWRenderer, T2OLE(tempPath));
 ->
::CDllWrapper(LPOLESTR szLibraryName, HRESULT *pHr /* = NULL */)
{
   HRESULT hr = S_OK;

   USES_CONVERSION;
   TCHAR tempPath[MAX_PATH];

   HMODULE hModule = ::CoLoadLibrary(szLibraryName, TRUE);
   
   if (hModule < (HMODULE)HINSTANCE_ERROR) ...(it fails at this point)

I did double (multiple) check on the enwr.ax and .inc and they are included and the path seems to be correct (same as all other filters). Is there any specific requirement for Elecard NWRenderer in comparison to other filters? Would you know of any reason as to why it does so?
Logged
IrinaM
Moderator
*****
Posts: 139


View Profile
« Reply #1 on: February 01, 2010, 11:18:07 pm »

Hi Arianit,
I think the NW Renderer cannot find required libraries (msvcr71.dll and msvcp71.dll). Installer usually copies them to %SYSTEM% directory (for XP it is \Windows\system32\). What OS version do you use?

Please try to register NW Renderer using regsvr32.exe. If it fails, please specify error message.

Additionally specify:
1) value of hModule variable
2) add GetLastError function into IF block and specify the received value.
Logged
Arianit
Newbie
*
Posts: 30


View Profile
« Reply #2 on: February 03, 2010, 02:27:00 am »

Hi Irina,
I am developing in a windows 7 workstation and then deploying/installing to 2 different XP SP3 w'stations.
My development ws has msvcr71.dll and msvcp71.dll while other two xp ws don't.
In one of the XP ws the installer (and application) worked fine but could not view the graph. I did register ElGViewer.dll as per your suggestion using regsvr32.exe and now is ok. The other XP ws does not let me register enwr (.ax nor . dll) it syas: "LoadLibrary("enwr.dll")failed - The specified module could not be found."(it says exactly the same about enwr.ax module.
Any ideas?
Logged
IrinaM
Moderator
*****
Posts: 139


View Profile
« Reply #3 on: February 03, 2010, 10:10:55 pm »

Hi Arianit,

If I understood you correctly, the Elecard Codec SDK G4 is only installed on computer with OS Windows 7, and other two computers you use for testing of the program developed by you with help of SDK. When you move your program from one machine to another, please pay attention to the following:
1) the NWRenderer filter needs the following libraries for registration and correct work:
- enwr.ax;
- enwr.dll, it should be located in the same folder with enwr.ax;
- msvcr71.dll and msvcp71.dll, they should be located in the same folder with enwr.ax or in %SYSTEM % directory (for XP it is \WINDOWS\system32\).
If any of the specified files is absent, or doesn't have correct location - the NW Renderer filter will not work correctly.
Therefore first of all, check specified libraries and their location.

2) Please make sure that the components are located in the exact location, from which your application tries to load them (if you load filters without registration).

To work with Elecard Graph Viewer component - it should be registered in the system (if you use the default code from the Codec SDK).
Logged
Arianit
Newbie
*
Posts: 30


View Profile
« Reply #4 on: February 04, 2010, 01:16:51 am »

Hi Irina,
Thank you very much for your help. Yes, Elecard SDk is only installed on windows 7 ws. I did include in the installer all other filters needed apart from msvcr71.dll and msvcp71.dll. I created a special switch to choose bin-path when compiling for installer so that it looks for filters in a path/folder relative to installed application. After your suggestion I've included these two dlls and now everything works fine (until I find the next bug Smiley)
Logged
IrinaM
Moderator
*****
Posts: 139


View Profile
« Reply #5 on: February 07, 2010, 08:37:55 pm »

Hi Arianit,
This issue will be resolved in the new version of Elecard NW Renderer and corresponding libraries will be linked inside the filter.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!