473,385 Members | 1,606 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,385 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 2760
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.