|
Correct.
WSARecv() is IPv6 and is used under non-blocking I/O models.
Kuphryn
|
|
|
|
|
Here's some of my code:
...
BtCard = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
if(WSAGetLastError() == 10047)
{
cout << "Address family not supported by protocol family!" << endl;
goto GetOut;
}
...
The socket function call above gives me the error message listed.
Checked the help documentation. Here's what "they" says on the use of the function:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/bluetooth/bluetooth/bluetooth_and_socket.asp[^]
Me, wrong!?! Nah, you just need to change your thinking to make me right.
|
|
|
|
|
That's kinda strange.
Do you need a bluetooth update maybe?
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
hi,my friends.
Ijust meet one problem,I hope here must be someone that can help me!
In one of my programs, I use the MFC Grid control 2.24 which is one popular Grid on Codeproject.com.Now I want to place a background Image under the grid.But the CGridCtrl don't have such a function.
and how can I do?
I hope to get your help!
thanks anyway!
|
|
|
|
|
Hello all:
How can I delete the corrupted file ? DeleteFile fails for this file with unknown error code.
Thanks in advance
|
|
|
|
|
What does GetLastError() return?
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
just 0, I am on Windows 98.
Thanks.
|
|
|
|
|
Are you sure you're calling GetLastError() immediately after calling DeleteFile() ?
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi all
Can a static function call a non-static function inside the same class?
or
Can a static function call a non-static function in different class?
Thanks
|
|
|
|
|
wow9999 wrote:
Can a static function call a non-static function inside the same class?
no
or
Can a static function call a non-static function in different class?
no
|
|
|
|
|
Yes, no problem. As long as you have the object you wish to invoke the function.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Dear Tim Smith
can you show me a example or hint to see a static or non-static funciton to call a static or non-static function.
Thanks
|
|
|
|
|
|
A static method doesn't have a this reference. Hence, it can only call other static methods of its class. However, if the static method has access to an instance of a class, it can call that instance's static or non-static method.
class Foo {
...
public:
static void staticFuncA();
static void staticFuncB();
void nonStaticFunc();
}
void Foo::staticFuncA()
{
staticFuncB();
nonStaticFunc();
Foo f;
f.nonStaticFunc();
} /ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
1)Yes, if I pass to the function object of its class.
2) By a same way.
================================
Useful links
|
|
|
|
|
Anyone has handy library fuction to copy CMenu or HMENU???
Thanks,
Brian
P.S.
I know how, just to lazy to iterate menues & submenus & states...
|
|
|
|
|
do you mean the resource?
If so, open the *.rc file which contains the menu resource you want in visual studio while the destination project is opened. click on the resource ID, drag it to your destination project. That's it.
|
|
|
|
|
>do you mean the resource?
Nope
Dynamic CMenu/HMENU....
|
|
|
|
|
No, but could you be more specific.
Trust in the code Luke. Yea right!
|
|
|
|
|
Hi,
I have a application which doesn't have proper window name
and class name(Class name will be #32770(Dialog) and Window name was "").So i can't use FindWindow(). Application is a third party application,about which we don't have much information. Now i want to check for existance of that application. How can i do that?
Regards
|
|
|
|
|
If you have the name of application exe file, you can find it using the following functions:
EnumProcesses
For each enumerated process
OpenProcess
EnumProcessModules
GetModuleFileNameEx
|
|
|
|
|
Hi
How do you read bytes from the harddisk using Visual C++ 6.0? (Used for reading filesystems)
I know you can use _bios_disk() with the bios.h include, but VC++ doesn't have this file or it's functionality. Is there another way to do it in windows, without using assembler?
Cheers
|
|
|
|
|
|
Anonymous wrote:
I know you can use _bios_disk()
You can only do this in winodows 9X or lower. Win NT, 2k or XP will not allow this because you cannot access the bios interrupts directly.
John
|
|
|
|
|
Be more specific. What is your goal? As for using the bios and asymbly, that is why we have so many versions of 9.x (direct access without security).
Trust in the code Luke. Yea right!
|
|
|
|