Forum Replies Created
- AuthorPosts
Hello Gabe,
I lose focus in my main thread sometime between my background thread calling CallTwainProc with parameter MSG_ENABLEDS and CallTwainProc with parameter DAT_IMAGENATIVEXFER.Gabe, I’m not sure if I fully understand your question but I just pass in the dll name to Loadlibrary like so –>
strLibName = _T(“TWAIN_32.DLL”);
hTwainDLL = LoadLibrary(strLibName);LoadLibrary then searches through a whole raft of folders, in a particular order, to find the dll as below:
http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspxI am getting twain32.dll by using the LoadLibrary call and I am using C++.
I downloaded the twain developers toolkit and I am having the same problems trying to acquire an image over a citrix network using the twack_32 application. The error I got was ‘Error in Open, LoadLibrary, or GetProcAddress.Twain DLL may not exist’. I then copied twain_32.dll to the directory twack_32 exists and still get the same error.
My twain_32 dll is version 1.7.1.1.
Just to clarify, I don’t have a problem with other parts of my application, it is the image capture functionality that is not working over a citrix network.
Apologies or the late reply Gabe. The application I am working on is an exectuable residing on the server and each client runs it in a citrix environment.
Said application takes pictures or scans documents at some point and that is where I am encountering problems as doing either of those from the client returns the error I initially complained about.
Morning gabe,
I have a couple of devices. Sony Visual Communication Camera 1.0 AND Logitech Camera 1.3.
I am not too sure what you mean by whose CTwain you are using. It appears to be a ‘standard’ CTWain file with a few modifications, none if which are in the region of the OPEN_DSM call. I am calling it a ‘standard ‘file because like other external files in the project, it doesn’t strictly conform to our coding standards.
Come to think of it, the CTwain.cpp and h files I am looking at were incorporated into our projects circa 2003. Can anyone point me to an updated set of files (cpp, h and dll)?
Gabe (and anyone else interested),
The wiatwain.ds file was already in C:WindowsTwain and the user’s profile windows directory (in my case C:Documents and Settingstest1WINDOWS) on the Citrix machine.I then copied the 4 subdirectories from C:WindowsTwain. They are LogiVid, QuickCam, Sample and VM321) to the Citrix directories C:WindowsTwain and C:Documents and Settingstest1WINDOWS.
I ran the application again and am still getting the same issue, is there anything I have missed out?
Thanks for your post gabe. To answer your question, loadlibrary is succesfull and I think the issue might be with the ds. I have also had a further read of ‘Twain’ to better understand how it works and it appears that the Data Source Manager is the cause of my present woes in the Citrix environment.
In trying to locate the .ds as you kindly suggested in order to copy it/them on to the Citrix srever or client, I did a search on my laptop for various files (ds, dsm, twaindsm.dll) in my user profile (i.e. C:Documents and Settingstunji) but did not come up with anything.
There are some twain dll files in C:Windows but I believe those have nothing to do with my user profile and also suspect they might not be
the ones you meant. Those files also exist on both the Citrix server and client (under C:Windows) in any case.I believe if I can get the OPEN_DSM call to return true, I’ll have made enough progress by that stage to (hopefully) have enough knowledge of fixing any further issues with OPEN_DS.
Are there any files relating to the Data Source Manager that I need on the Citrix Server or Client AND where might they be located on my laptop?
I did a “GetStatus” in CTwain::CallTwainProc after the mesage fails and I get a TWCC_SEQERROR.
I guess my question is why what might cause that in a Citrix client server environment (with theserve being a virtual machine)w hen the same code doesn’t return an error running via winows.- AuthorPosts