dbserverenum
-
I'm trying to use this function, but my debugger doesn't recognize it. Is there something I need to define or add to my stdafx? Or, is there a better way to find out the name of the SQL server if it isn't local? halblonious
-
I'm trying to use this function, but my debugger doesn't recognize it. Is there something I need to define or add to my stdafx? Or, is there a better way to find out the name of the SQL server if it isn't local? halblonious
-
I'm trying to use this function, but my debugger doesn't recognize it. Is there something I need to define or add to my stdafx? Or, is there a better way to find out the name of the SQL server if it isn't local? halblonious
Are you getting a compiler, linker, or runtime error? If it's a compiler error, be sure to include Sqlfront.h and Sqldb.h. If it's a linker error, be sure to link with Ntwdblib.lib.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Are you getting a compiler, linker, or runtime error? If it's a compiler error, be sure to include Sqlfront.h and Sqldb.h. If it's a linker error, be sure to link with Ntwdblib.lib.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
Thanks, that did seem to work. The sweet irony is, though, that the Sqlfront.h has a compiler error itself: Compiling... testLibraryDlg.cpp c:\program files\microsoft visual studio\vc98\include\sqlfront.h(126) : error C2146: syntax error : missing ';' before identifier 'LPINT' c:\program files\microsoft visual studio\vc98\include\sqlfront.h(126) : error C2040: 'PTR' : 'int' differs in levels of indirection from 'void *' c:\program files\microsoft visual studio\vc98\include\sqlfront.h(126) : fatal error C1004: unexpected end of file found Error executing cl.exe. I'm trying to use SQLBrowseConnect to connect to an unknown server name now, but I'm having even less luck with that. I cut and pasted the example in the MSDN help, but it's got it's own compile errors. halblonious
-
Thanks, that did seem to work. The sweet irony is, though, that the Sqlfront.h has a compiler error itself: Compiling... testLibraryDlg.cpp c:\program files\microsoft visual studio\vc98\include\sqlfront.h(126) : error C2146: syntax error : missing ';' before identifier 'LPINT' c:\program files\microsoft visual studio\vc98\include\sqlfront.h(126) : error C2040: 'PTR' : 'int' differs in levels of indirection from 'void *' c:\program files\microsoft visual studio\vc98\include\sqlfront.h(126) : fatal error C1004: unexpected end of file found Error executing cl.exe. I'm trying to use SQLBrowseConnect to connect to an unknown server name now, but I'm having even less luck with that. I cut and pasted the example in the MSDN help, but it's got it's own compile errors. halblonious
Try moving
#include <sqlfront.h>
down a few lines (i.e., so thatwindows.h
is included first).
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Try moving
#include <sqlfront.h>
down a few lines (i.e., so thatwindows.h
is included first).
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
Thank for responding. Somehow, I got SQLBrowseConnect to work for me, so that serves the purpose I needed. Thanks, though. --Evan halblonious
-
Thank for responding. Somehow, I got SQLBrowseConnect to work for me, so that serves the purpose I needed. Thanks, though. --Evan halblonious
halblonious wrote: Somehow... You don't remember what you did to squelch the errors with sqlfront.h?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
halblonious wrote: Somehow... You don't remember what you did to squelch the errors with sqlfront.h?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
No, I never figured it out. I just gave up and moved on to a different function. It took me a while, but I got SQLBrowseServer to work for me. halblonious