Click to See Complete Forum and Search --> : visual studio .net 2003-error compiling
blu_oreo
December 31st, 2003, 05:24 AM
Hi,
I'm trying to develop an application using Visual Syudio .NET 2003
using visual C++.
I followed all the rules SDK help say: included all ".h" needed and
"irprops.lib" .... but I only wrote a few lines of code initializing a
structure, and when I try to compile the project there are 102 errors!!!
But these errors found are in SDK libraries!
Can anyone help me to find what I missed?
Thanks & Happy new year
Andreas Masur
December 31st, 2003, 09:17 AM
Well..without tellung us what compiler errors you have nobody can basically help... :cool:
Mick
December 31st, 2003, 09:47 AM
I assume .NOT still has a tools->options->directories?
if so, set the proper paths for the SDK (include/exe/libs) as the topmost.
and like Andreas said post a snippet of the complier errors, along with double clicking on the error line in the build output (which will take you to the source of the error post that line also), I would assume they are mostly missing typedefs...like DWORD
blu_oreo
December 31st, 2003, 01:13 PM
well, my application is for bluetooth and should use :
"Ws2bth.h"
"BluetoothAPIs.h"
"Winsock2.h"
"bthdef.h"
"bthsdpdef.h"
as SDK help say.
When I try to compile the compiler show many (102) errors (I'll report some):
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\bthsdpdef.h(9): error C2146: syntax error: ";" missing before identifier "LowPart"
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\bthsdpdef.h(9): error C2501: "SDP_LARGE_INTEGER_16::ULONGLONG": identifier missing
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\bthsdpdef.h(9): error C2501: "SDP_LARGE_INTEGER_16::LowPart": identifier missing
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\bthsdpdef.h(10): error C2146: syntax error: ";" missing before identifier "HighPart"
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\bthsdpdef.h(29): error C2501: "PSDP_ERROR": identifier missing
---------------------------------------------------
I don't know what to do and how to manage those errors that refers to built-in libraries.
Please help!
thanks
bocha
November 24th, 2004, 08:39 AM
Yuo should resort the include's lines, like this:
#include <winsock2.h>
#include <Ws2bth.h>
#include <BluetoothAPIs.h>
blu_oreo
November 25th, 2004, 06:24 PM
Well, I solved that problem and it was because I was using a protocol stack that wasn't by microsoft. Then I changed to microsoft's and it compiled alright, and my simple code worked. Thanks anyway
tanavir2006
May 23rd, 2006, 02:00 PM
can anyone tell me that how can i find "BluetoothAPIs.h" , "Ws2bth.h" and other .h files related to bluetooth.
i have also installed XP Service pack 1 & 2 And Visual studio.NET 2003 but i was unable to find these files.
Hi,
I'm trying to develop an application using Visual Syudio .NET 2003
using visual C++.
I followed all the rules SDK help say: included all ".h" needed and
"irprops.lib" .... but I only wrote a few lines of code initializing a
structure, and when I try to compile the project there are 102 errors!!!
But these errors found are in SDK libraries!
Can anyone help me to find what I missed?
Thanks & Happy new year
Andreas Masur
May 24th, 2006, 02:06 PM
From the top of my head....they should be part of the Platform SDK (http://www.microsoft.com/msdownload/platformsdk/sdkupdate/)
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.