- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had to modify the f90sql.f90 file to get it to compile.I defined all of the interfaces after the module and implicit statements, then added a"contains" before all the functions/subroutines. After I did this it compiles, but it doesn't do anything.
I looked at the subroutines and functions in f90sql.f90, and there is nothing to them. For example, the first subroutine called in ExcelReadLite.f90 is "f90AllocHandle". It looks like this:
subroutine f90SQLAllocHandle(HandleType, InputHandle, OutputHandle, iRet)
!DEC$ ATTRIBUTES STDCALL,REFERENCE,MIXED_STR_LEN_ARG,DECORATE,ALIAS:"F90SQLALLOCHANDLE" :: f90SQLAllocHandle
!SQLAllocHandle allocates an environment, connection, statement, or descriptor handles.
!f90SQLAllocHandle
use f90SQLConstants
integer(SQLSMALLINT_KIND),intent(in)::HandleType !Type of handle
integer(SQLHANDLE_KIND),intent(in):: InputHandle !parent handle (for hdbc and stmt handles only)
integer(SQLHANDLE_KIND),intent(out):: OutputHandle !output handle
integer(SQLRETURN_KIND),intent(out):: iRet
end subroutine f90SQLAllocHandle
This subroutine doesn't do anything. Am I missing something?
Thanks in advance
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are supposed to USE the module to make the declarations visible, then call the routine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Arjen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I started out by creating a new project and adding the ExcelReadLite.f90 file. I am using VS .NET 2003, so I added the lib and include folders from the .zipin Tools->Options->Intel Fortran. When I tried to compile, I got a bunch of unresolved external errors, i.e.:
unresolved external symbol _F90SQLALLOCHANDLE@16 referenced in function _MAIN__
There were quite a few others as well. What could be causing this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was able to get it to compile. The ExcelRead and ExcelWrite examples are working fine, but the ExcelUpdate examlpe is not. I'm getting an error when it executes the UPDATE statement. The statement is:
UPDATE [Sheet1$] SET X=x, Y=y WHERE ID=i
where i, x, and y are variables
Example then calls f90SQLExecDirect, this returns an error, -1.
Is there a way I can tell what the error is from the error dialogs it prints out?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page