Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Wireless in c++

142 views
Skip to first unread message

Arkady Frenkel

unread,
Feb 18, 2007, 2:50:30 AM2/18/07
to
You need to show which kind of the errors you have during compilation for
gurus to help
Arkady

"Milkas" <Mil...@discussions.microsoft.com> wrote in message
news:40B2FB18-9CD5-4832...@microsoft.com...
> In the near post named "wireless on /off control" has been discussed how
> to
> enable or disable wireless using Vista and its SDK. I've XP SP2 and I've
> downloaded all the SDK possibles for wireless managment. In the microsoft
> article about "Native Wi-FI" is described how to implement the SDK
> functions
> but without any example :-( and is very hard to use that SDK becouse if I
> try
> to compile the "wlanapi.h" header I've a lot of errors. Do you know others
> ways, if possible using basic C++ language, to manage wireless connection
> or
> if Is possible to use wlanapi.dll and wlanapi.lib with no problems? Any
> help or example is appreciate


Milkas

unread,
Feb 18, 2007, 4:42:08 AM2/18/07
to
Compiling...

...........\wlanapi.h(26) : fatal error C1083: Cannot open include file:
'l2cmn.h': No such file or directory

what is 'l2cmn.h'?

related to this code:

typedef ULONG NDIS_OID, *PNDIS_OID;

there is this error:

WRapi_dll_import.cpp
...........\ntddndis.h(79) : error C2146: syntax error : missing ';' before
identifier 'NDIS_OID'
...........\ntddndis.h(79) : fatal error C1004: unexpected end of file found


related to this code:

//
// Structure used to define a self-contained variable data structure
//
typedef struct _NDIS_VAR_DATA_DESC
{
USHORT Length; // # of octects of data
USHORT MaximumLength; // # of octects available
ULONG_PTR Offset; // Offset of data relative to the descriptor
} NDIS_VAR_DATA_DESC, *PNDIS_VAR_DATA_DESC;

there is this error:

...........\ntddndis.h(101) : error C2146: syntax error : missing ';' before
identifier 'Offset'
...........\ntddndis.h(101) : error C2501: 'ULONG_PTR' : missing
storage-class or type specifiers
...........\ntddndis.h(101) : error C2501: 'Offset' : missing storage-class
or type specifiers
...........\wrapi.h(61) : fatal error C1083: Cannot open include file:
'nuiouser.h': No such file or directory


etc....

Error executing cl.exe.

this errors code are related to the ntddndis.h file:

I use VC++ 6. Don't tell me that is impossible to compile wireless software
with VC++ 6.

Arkady Frenkel

unread,
Feb 18, 2007, 7:44:04 AM2/18/07
to
That mean that you need to install DDK for that
Arkady

"Milkas" <Mil...@discussions.microsoft.com> wrote in message

news:4C744FD5-4F00-476B...@microsoft.com...

Milkas

unread,
Feb 18, 2007, 1:14:05 PM2/18/07
to
DDK installed but the errors are there again.

Arkady Frenkel

unread,
Feb 19, 2007, 3:12:22 PM2/19/07
to
Did you set the path in project properties of the VS ? Just a hint
Arkady

"Milkas" <Mil...@discussions.microsoft.com> wrote in message

news:C637B3DB-E3AB-4AE4...@microsoft.com...

Milkas

unread,
Feb 20, 2007, 12:54:00 PM2/20/07
to
That path is in the list of paths in VC++. Now I've a doubt. In the page of
Microsoft download
"http://www.microsoft.com/downloads/details.aspx?FamilyID=c2b1e300-f358-4523-B479-F53D234CDCCF&displaylang=en"
I've downloaded the file at the link
"http://www.microsoft.com/downloads/details.aspx?FamilyId=10CC340B-F857-4A14-83F5-25634C3BF043&displaylang=en"
but not the SDK for Vista of about 1GByte becouse the page says:

......

This SDK is designed for use with Windows Vista (which includes Framework
3.0). The Windows SDK for Vista also supports creating applications for
Windows XP, Windows Server® 2003 SP1, and Windows Server 2003 R2.


This download contains the SDK only. To build .NET Framework 3.0
applications for Windows XP or Windows Server, the .NET Framework 3.0 Runtime
Components must be downloaded separately.


This release of the Windows SDK is compatible with Microsoft® Visual Studio®
2005 and the Visual Studio 2005 extensions for .NET Framework 3.0 (WCF &
WPF), November 2006 CTP.
......

I've VC++ 6 and XP. That SDK is not compatible with it. Right? In anyway,
what happen if I try to install that SDK?

I can't find the .h file 'l2cmn.h'. Maybe it is in the SDK for Vista.

Pavel A.

unread,
Feb 20, 2007, 11:16:09 PM2/20/07
to
Yes. The Vista SDK is (officially) no longer working with VC 6.
You need VC2005. Of course, some parts of it can still compile with VC6...
WCF and .NET3 is not needed for the Wlanapi.
Note that the SDK contains it's own compiler, you can use it instead of VC2005.

--PA


"Milkas" <Mil...@discussions.microsoft.com> wrote in message news:24E3DFDF-9271-4B60...@microsoft.com...


> That path is in the list of paths in VC++. Now I've a doubt. In the page of
> Microsoft download
> "http://www.microsoft.com/downloads/details.aspx?FamilyID=c2b1e300-f358-4523-B479-F53D234CDCCF&displaylang=en"
> I've downloaded the file at the link
> "http://www.microsoft.com/downloads/details.aspx?FamilyId=10CC340B-F857-4A14-83F5-25634C3BF043&displaylang=en"
> but not the SDK for Vista of about 1GByte becouse the page says:
>
> ......
>
> This SDK is designed for use with Windows Vista (which includes Framework
> 3.0). The Windows SDK for Vista also supports creating applications for

> Windows XP, Windows ServerR 2003 SP1, and Windows Server 2003 R2.


>
>
> This download contains the SDK only. To build .NET Framework 3.0
> applications for Windows XP or Windows Server, the .NET Framework 3.0 Runtime
> Components must be downloaded separately.
>
>

> This release of the Windows SDK is compatible with MicrosoftR Visual StudioR

Arkady Frenkel

unread,
Feb 21, 2007, 2:18:54 AM2/21/07
to
In addition :
Yes that file (l2cmn.h) you find in Vista SDK but I have it on OTOH in last
DDK too
on C:\WINDDK\6000\inc\api\l2cmn.h ( last version (1.5) of WDF )
Arkady

"Milkas" <Mil...@discussions.microsoft.com> wrote in message

news:24E3DFDF-9271-4B60...@microsoft.com...

Arkady Frenkel

unread,
Feb 21, 2007, 2:23:21 AM2/21/07
to
Good point, using environment window ( dos box ) of SDK set ll needed env
variables for you instead of VS where you have to set those additional paths
Arkady

"Pavel A." <pav...@NOwritemeNO.com> wrote in message
news:%23NnTt9W...@TK2MSFTNGP04.phx.gbl...

Milkas

unread,
Feb 26, 2007, 5:21:08 PM2/26/07
to
I'm thinking that Vista is a new OS and XP is from 2001. At that year the
wireless technology was on. using the c++ compiler of that time was possible
to develop code that managed wireless connection and different operations and
using, why not, VC6. How is possible to reply that projects using old APIs?

Arkady Frenkel

unread,
Feb 27, 2007, 4:00:39 AM2/27/07
to
I remember the days before SP1 where to configure wireless network was
terribly hard because there were few OID wireless vendors support and there
were almost no support for user level apps ( no old API )
Arkady

"Milkas" <Mil...@discussions.microsoft.com> wrote in message

news:7FE225DB-2826-4BA9...@microsoft.com...

Milkas

unread,
Feb 27, 2007, 11:18:18 AM2/27/07
to
Just a question: is possible to install SDK for Vista on a pc running XP? if
yes what happen at the "old" SDK? is possible, in a secondary moment, to
uninstall this SDK for Vista with no problems?

Arkady Frenkel

unread,
Feb 27, 2007, 11:25:34 AM2/27/07
to
Yes, you choose different directory and go
Arkady

"Milkas" <Mil...@discussions.microsoft.com> wrote in message

news:DC9376E1-2684-448D...@microsoft.com...

0 new messages