473,322 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

weird error when precompiling genwin.mak with nsqlprep

I am trying to compile the sample program genwin.sqc, using nsqlprep
which is used to precompile embedded sql in C. I am getting weird
errors and that is because windows.h is included in the genwin.sqc
file. I am using

Setting the lib and include path:

set INCLUDE=C:\Program Files\Microsoft SQL
Server\80\Tools\DevTools\include;C:\Program Files\Microsoft SQL
Server\80\Tools\DevTools\Samples\esqlc;%include%
set LIB=C:\Program Files\Microsoft SQL
Server\80\Tools\DevTools\lib;%lib%
Precompiling:

nsqlprep genwin /NOACCESS

Microsoft (R) Embedded SQL for C Pre-Compiler. Version 8.00.194.
Copyright (c) Microsoft Corp 1993-1998. All rights reserved.
Warning: genwin.sqc, line 7978: syntax error.
}
Warning: genwin.sqc, line 7987: syntax error.
}
Warning: genwin.sqc, line 71840: syntax error.
__declspec void __stdcall DragAcceptFiles(HWND,BOOL
Warning: genwin.sqc, line 71842: syntax error.
__declspec HINSTANCE __stdcall ShellExecuteA(HWND hwnd
Warning: genwin.sqc, line 71843: syntax error.
__declspec HINSTANCE __stdcall ShellExecuteW(HWND hwnd
Warning: genwin.sqc, line 71858: syntax error.
__declspec INT __stdcall ShellAboutA(HWND hWnd
Warning: genwin.sqc, line 71859: syntax error.
__declspec INT __stdcall ShellAboutW(HWND hWnd
Warning: genwin.sqc, line 71941: syntax error.
HWND
Warning: genwin.sqc, line 71946: syntax error.

As soon as i remove windows.h, the errors disappear. It seems nsqlprep
doesnt like windows.h. How do i get over this.
Would really appreciate if u can help me out.

versions:
OS: windows 2000 server service pack 2
VC++: version 6.0
SQLserver 2000: 8.00.194, RTM, Standard edition

Thank you
Amit
Jul 20 '05 #1
1 2757
amit (ak*****@mn.rr.com) writes:
I am trying to compile the sample program genwin.sqc, using nsqlprep
which is used to precompile embedded sql in C. I am getting weird
errors and that is because windows.h is included in the genwin.sqc
file. I am using

Setting the lib and include path:

set INCLUDE=C:\Program Files\Microsoft SQL
Server\80\Tools\DevTools\include;C:\Program Files\Microsoft SQL
Server\80\Tools\DevTools\Samples\esqlc;%include%
set LIB=C:\Program Files\Microsoft SQL
Server\80\Tools\DevTools\lib;%lib%


Since windows.h is not in any of the directories above, you must have it
somewhere else.

I have also had problems with getting funny errors with various include
files for a DB-Library module that I have. Since I am not really a C
programmer, I just moved the include files around, until I had things
working.

As I recall, when I started to use VC7, I got into new problems. So, if
you are using VS .Net, but also have VC6 available, try using VC6 instead.

--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: redneck_kiwi | last post by:
Hi all: I have a really weird problem. I am developing a customer catalog system for my company and as such have delved into sessions for authentication and access levels. So far, I have managed...
1
by: Endif | last post by:
Hello, I am on creating a new Logical file (View) using the ISeries Windows Navigator for DB2/400 V8. It is based on SQL Query. when the physical files in SQL Query are updated, the View fails and...
0
by: Alan Silver | last post by:
Hello, I have two weird problems here. I have a master page file that works absolutely fine. When I load it up in VWD, I get a couple of weird (to me) errors. First, I get the error...
2
by: Balasubramanian Ramanathan | last post by:
I am getting this error while precompiling a website for deployment. Errorstack information error ASPRUNTIME: Object '/c107cdc3_b65c_4b6c_9d8f_82fe5a457fdb/ctofbyvagqsbvrgsc7xzxa5o_9.rem' has...
3
by: archsg | last post by:
Hello, I have an ASP.Net 1.1 application that I need to move to a production server on a customer's network. I do not want the customer to have access to any code. It looks like VS2003 does...
4
by: invy | last post by:
Hi, I'm experiencing a problem while declaring scroll cursor. I'm using Embeded SQL with C. my code is given below. #ifdef SQLSRVR_RDBMS EXEC SQL DECLARE CUR_DWNLD SCROLL CURSOR FOR SCURS;...
0
by: P Pulkkinen | last post by:
Dear all, sorry, i know this code is far little too long to debug here, but there is really annoying logical error. If someone debugs this, I really offer warm virtual handshake. What this...
7
by: dtschoepe | last post by:
Hi, I am working on a project for school and I am trying to get my head around something weird. I have a function setup which is used to get an input from stdin and a piece of memory is created...
0
by: Pao | last post by:
Hi all, If I compile WITH the -u option I get no error, but when compiling WITHOUT -u option, I get this error message: "error ASPRUNTIME: Object reference not set to an instance of an...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.