|
Hi All,
When I use GetComputerNameEx in my code, I am getting an error stating that the function does not exist. But, its given in MSDN that the function is declared in Winbase.h. I got through Winbase.h also but I dont find such a function declared. Can you please suggest if I shld include any other header file??
NOTE : I have already included Windows.h(which in turn includes Winbase.h) in my code.
Awaiting your earliest response.
Thanks..
|
|
|
|
|
What Win OS you are using...
for GetComputerNameEx(..) minimum requirement is Win XP or Win 2000 Professional
Do your Duty and Don't expect the Result
|
|
|
|
|
Windows XP Professional with service pack 2.
Is it specific to Visual Studio installation( I have Visual Studio 6) as I dont find the function in Winbase.h?
|
|
|
|
|
|
I need to get the HostName.DomainName (ComputerNameDnsFullyQualified) so I am using GetComputerNameEx. GetComputerName will give only the hostname.
|
|
|
|
|
Did you see MSDN
From the MSDN:
"To compile an application that uses this function, define the _WIN32_WINNT macro as 0x0500 or later"
whitesky
|
|
|
|
|
Hi
I have tried giving #define _WIN32_WINNT 0x0501, but still it throws the same error.
|
|
|
|
|
Whats application type?I used this file wihout problem
whitesky
|
|
|
|
|
You must've missed the
#if (_WIN32_WINNT >= 0x0500) directive in that same header file.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
You need a newer windbase.h - this wasn't supported in VC98.
winbase.h
WINBASEAPI
BOOL
WINAPI
GetComputerNameExA (
IN COMPUTER_NAME_FORMAT NameType,
OUT LPSTR lpBuffer,
IN OUT LPDWORD nSize
);
WINBASEAPI
BOOL
WINAPI
GetComputerNameExW (
IN COMPUTER_NAME_FORMAT NameType,
OUT LPWSTR lpBuffer,
IN OUT LPDWORD nSize
);
#ifdef UNICODE
#define GetComputerNameEx GetComputerNameExW
#else
#define GetComputerNameEx GetComputerNameExA
#endif // !UNICODE
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Hi All,
Pls send me the code or adress or information on sending and receiveing the messages between two applications.
Thanks in advance,
Ashok Reddy
Ashok
|
|
|
|
|
Interprocess Communications (IPC) comes in several flavors.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
If it is a small amount of data you can also use WM_COPYDATA.
AliR.
|
|
|
|
|
Is it possible and if so how can I sense if the microfone is in use? Is there any good exemple?
|
|
|
|
|
Try using mixerGetLineInfo() with MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE .
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Last time I wrote a program to use the microphone, if the mic was busy then when I tried to open the device returned an error.
AliR.
|
|
|
|
|
hie
please help me get the code for the following questions in c++.
1)Write a recursive function that searches for a target in a sorted array using binary search, where the array, its size and the target are given as parameters.
2)Write a recursive function that lists all anagrams of a given word.
-- modified at 8:11 Tuesday 18th July, 2006
|
|
|
|
|
Assignment questions?
|
|
|
|
|
Do you not even have the knowledge to reword the questions so that they are not screaming "homework!" See #9 here.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
you are sooo lazy!
If you don't want to learn how to program then take a different course, if you do want to learn then try to learn it by having a go yourself first.
Darka [Xanya]
|
|
|
|
|
Or he could cheat like someone with integrity and *pay* to have his homework done for him
earl
|
|
|
|
|
|
earl wrote: Or he could cheat like someone with integrity...
How can you cheat and have integrity? They are mutually exclusive things.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Eh, mostly being sarcastic, but if the OP wants someone to do his (her?) work for him/her, the least he or she can do is pay someone...
earl
|
|
|
|