Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

App.hInstance for Access? 1

Status
Not open for further replies.

rssql

Programmer
Jul 22, 2002
87
US
I am trying to use the CSocketMaster code as found on to replace the winsock.

I didn't see anything about using this with Access specifically.

Declaration section includes:

Private Declare Function api_CreateWindowEx Lib "user32" Alias "CreateWindowExA" (ByVal dwExStyle As Long, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, lpParam As Any) As Long

It seems to have an error "Variable not defined" and highlights "App" in this following line which is found in a function.

m_lngWindowHandle = api_CreateWindowEx(0&, "STATIC", "SOCKET_WINDOW", 0&, 0&, 0&, 0&, 0&, 0&, 0&, App.hInstance, ByVal 0&)

Is there a different way to reference this with Access XP?
 
The equivalent of App.hInstance in Access is Access.hWndAccessApp (or, alternatively, Application.hWndAccessApp, it returns the same value).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top