Windows API calls to ODBC manager are not functional in Wine

View: New views
7 Messages — Rating Filter:   Alert me  

Windows API calls to ODBC manager are not functional in Wine

by Soulcage :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have configured Wine in Ubuntu 9.04 to use the built-in odbc32.dll which in turn uses the Linux's unixodbc package. When I am trying to run my windows application which actually uses Windows API to ODBC manager is not working. If I create a system DSN my application is able to list. But I am trying to crate a DSN using the Windows API calls it fails.

Since wine is clone to Windows API any application using that API should run also in Wine. Please let me know if wine windows API has any issues with  unixODBC. Please advise how should I proceed here.

Warm Regards

Supratik






Re: Windows API calls to ODBC manager are not functional in Wine

by Soulcage :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


supratik_sekhar wrote:
>  But I am trying to crate a DSN using the Windows API calls it fails.

Which exact functions are you calling? Lots of functionality is not implemented in Wine's odbc32.dll.






Re: Windows API calls to ODBC manager are not functional in Wine

by Soulcage :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The person above me is right, I think.
:-D






Re: Windows API calls to ODBC manager are not functional in Wine

by Soulcage :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am calling SQLCreateDataSource Function from the application.

Warm Regards

Supratik






Re: Windows API calls to ODBC manager are not functional in Wine

by Soulcage :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


supratik_sekhar wrote:
> I am calling SQLCreateDataSource Function from the application.

Exactly what I thought: http://source.winehq.org/source/dlls/odbccp32/odbccp32.c#L245

However that's part of odbccp32.dll Try native one (from windows). Don't forget to set it to native in winecfg.






Re: Windows API calls to ODBC manager are not functional in Wine

by Soulcage :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it not possible with the Wine's built-in odbc32.dll which use the Linux's unixodbc package ?

Warm Regards

Supratik






Re: Windows API calls to ODBC manager are not functional in Wine

by Soulcage :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


supratik_sekhar wrote:
> Is it not possible with the Wine's built-in odbc32.dll which use the Linux's unixodbc package ?

Why not? I didn't say that. Re-read again my post above.