difficulties using 3rd party dll when creating an external
Posted: Thu Mar 19, 2009 9:04 pm
Runtime Revolution Ltd Forum Index Runtime Revolution Ltd
Questions and answers about the Revolution product family.
FAQFAQ SearchSearch MemberlistMemberlist UsergroupsUsergroups
ProfileProfile You have no new messagesYou have no new messages Log out [ grodrig ]Log out [ grodrig ]
rss
Inbox Inbox Sentbox Sentbox Outbox Outbox Savebox Savebox
Reply to message Runtime Revolution Ltd Forum Index
Inbox :: Message
From: grodrig
To: grodrig
Posted: Thu Mar 19, 2009 8:00 pm
Subject: 3rd party dll external help Quote message
Hi,
I've been going at this for various days. I read the tutorials on externals posted in the revolution front page and also the visual basic example too. I also downloaded the SDK example. Still it is not clear to me how to put it all together. This is what I have done so far and work.
1) I followed the tutorial and created the rnaHello example. It work as expected. Note I used the "External Creator V1.rev" provided in the tutorial.
2) I created a separate project in C++ which uses a 3rd party DLL to communicates to an USB device (FTDI device if you are curious). The program is pretty simple. All it does is get the device ID. This program works fine and I'm able to see the device ID.
So far so good eh!!
This is the part that doesn't work
3) I took the rnaHello example and added a function. All this function does is call the same commands that worked on step 2 above. The difference is that the code is now copied to the same file as the rnaHello. That is to say, step #2 above was just a sanity check and has no relation to this step. Under the project properties I included the necessary libraries needed to talk to my usb device. This was the same step I took when doing step #2 above. I compile the project to make sure there where no errors. It compiled fine. However when hit the debug button and revolution opens I get the followoing error:
In rnaHelloExternalWrapper:revolution.exe - unable to locate Com...
"This application has failed to start because FTCJTAG.dll was not found. Re-installing the application may fix the problem."
--where FTCJTAG is the DLL that controls my USB device.
4) To make sure I'm doing things right, I comented out part of the code that calls on the offending DLL. I left the rest of the code alone just to see if can call other functions or at least this particular function. This step works.
I put all the code including the 3rd party lib and dll file under the src folder created by the project. That did not work. I then move them to various other folder like the _build\Debug folder where the external DLL produce by revolution resides and that did not help either. I can't get rid of this problem.
Any clues cause I can't figure it out. The funny part is that another colleague tried the same thing in a different machine using the same exact step and it worked. The only difference was that he had an evaluation media version of revolution where I have the studio version. What gives? and yes, I copied and used his setup without making any change and that did not work either.
my system setup:
1) revolution studio 3.0
2) windows XP professional SP2
3) using visual c++ express 2008
View user's profile
Reply to message All times are GMT
Jump to:
Powered by phpBB © 2001, 2005 phpBB Group
Questions and answers about the Revolution product family.
FAQFAQ SearchSearch MemberlistMemberlist UsergroupsUsergroups
ProfileProfile You have no new messagesYou have no new messages Log out [ grodrig ]Log out [ grodrig ]
rss
Inbox Inbox Sentbox Sentbox Outbox Outbox Savebox Savebox
Reply to message Runtime Revolution Ltd Forum Index
Inbox :: Message
From: grodrig
To: grodrig
Posted: Thu Mar 19, 2009 8:00 pm
Subject: 3rd party dll external help Quote message
Hi,
I've been going at this for various days. I read the tutorials on externals posted in the revolution front page and also the visual basic example too. I also downloaded the SDK example. Still it is not clear to me how to put it all together. This is what I have done so far and work.
1) I followed the tutorial and created the rnaHello example. It work as expected. Note I used the "External Creator V1.rev" provided in the tutorial.
2) I created a separate project in C++ which uses a 3rd party DLL to communicates to an USB device (FTDI device if you are curious). The program is pretty simple. All it does is get the device ID. This program works fine and I'm able to see the device ID.
So far so good eh!!
This is the part that doesn't work
3) I took the rnaHello example and added a function. All this function does is call the same commands that worked on step 2 above. The difference is that the code is now copied to the same file as the rnaHello. That is to say, step #2 above was just a sanity check and has no relation to this step. Under the project properties I included the necessary libraries needed to talk to my usb device. This was the same step I took when doing step #2 above. I compile the project to make sure there where no errors. It compiled fine. However when hit the debug button and revolution opens I get the followoing error:
In rnaHelloExternalWrapper:revolution.exe - unable to locate Com...
"This application has failed to start because FTCJTAG.dll was not found. Re-installing the application may fix the problem."
--where FTCJTAG is the DLL that controls my USB device.
4) To make sure I'm doing things right, I comented out part of the code that calls on the offending DLL. I left the rest of the code alone just to see if can call other functions or at least this particular function. This step works.
I put all the code including the 3rd party lib and dll file under the src folder created by the project. That did not work. I then move them to various other folder like the _build\Debug folder where the external DLL produce by revolution resides and that did not help either. I can't get rid of this problem.
Any clues cause I can't figure it out. The funny part is that another colleague tried the same thing in a different machine using the same exact step and it worked. The only difference was that he had an evaluation media version of revolution where I have the studio version. What gives? and yes, I copied and used his setup without making any change and that did not work either.
my system setup:
1) revolution studio 3.0
2) windows XP professional SP2
3) using visual c++ express 2008
View user's profile
Reply to message All times are GMT
Jump to:
Powered by phpBB © 2001, 2005 phpBB Group