|
|
|
Max++ wrote: Debug Assertion fail!!
What line of what file asserted?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
|
Ok, so have you bothered to look at line 494 of dlgcore.cpp?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Dear All,
I need to display a hyperlink text over a dialogbox?.
How can i do this ?
Kindly Help me
Thanks.
|
|
|
|
|
search codeproject for hyperlink, there are tons of them.
|
|
|
|
|
|
I want to block some packets in network card to a particular port.there is a
library winpcap by which we can view the contents of packets from network card.Is there any method to block packets.Please help me with this topic.
vimal
|
|
|
|
|
Hi.,
there is no way to block packets using WinPcap. If you need to block packets, you have to use driver development.
Bye.
|
|
|
|
|
Hi All,
I am creating a desktop from a service and i have to start the explorer shell in the newly created desktop.
I am able to create the desktop but when i use createprocess to run explorer.exe in the newly created desktop i am getting application error.
Can anybody help me in solving this issue....
And to note, i am creating the desktop from a service app...
My motive is to create a global desktop like winlogon. Is it feasible to create one such thing?
Thanks.
~ Selva
|
|
|
|
|
|
try
Malini Nair wrote: gethostbyname()
gethostbyname()for better you just search google by this string
gethostbyname() in vc++
vimal
|
|
|
|
|
Hi,
gethostbyname ... has been deprecated
use:
int getaddrinfo(
const char* nodename,
const char* servname,
const struct addrinfo* hints,
struct addrinfo** res
);
addrinfo host;
LPADDRINFO res;
...
host.ai_flags = AI_CANONNAME;
host.ai_protocol = IPPROTO_TCP;
host.ai_family = PF_INET;
host.ai_socktype = SOCK_STREAM;
getaddrinfo( strMachineName, NULL, &host, &res );
...
-----------
Mila
|
|
|
|
|
I want to add multilanguage support to my mfc application.How can i proceed with it.
Thanks
|
|
|
|
|
to give unicode support just define _UNICODE and UNICODE in the preprocessor definition of the project settings.
nave
|
|
|
|
|
|
Stephen Hewitt wrote: And remove _MBCS.
We don't need to remove _MBCS. If we remove it, we will lose MBCS support. Just to add unicode support, defining _UNICODE will be sufficient.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Defining both _UNICODE and _MBCS may cause problems if you use "tchar.h". For example many people use the _T macro and the "_t" string functions so the same code can be used for Unicode and non-Unicode builds. Take the _tcscmp function for example. Here's a table from the documentation for this function:
|----------------------------------------------------------------------------
|TCHAR.H routine|_UNICODE & MBCS not defined|_MBCS defined |_UNICODE defined|
|---------------------------------------------------------------------------|
|_tcscmp |strcmp |_mbscmp |wcscmp |
-----------------------------------------------------------------------------
As you can see the results are not specified if both are defined. Already defining both leaves you in the reals of undocumented behaviour. In this case, with my header files, the Unicode version will be used. However, It's never a good idea to reply on undocumented behaviour in computer programming if you don't have a compelling reason.
In general, I remove the _MBCS .
Steve
|
|
|
|
|
Naveen R wrote: just define _UNICODE and UNICODE in the preprocessor definition
Defining _UNICODE will implicitly define UNICODE.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
thanks. I didnt know that. Can u tell me where it is defined?I mean which header file have the code for that?
nave
|
|
|
|
|
Naveen R wrote: I mean which header file have the code for that?
I don't know, but I am very sure about the point. Defining _UNICODE will implicitly define UNICODE too. I've been noticing sometimes people suggesting questioners to define both UNICODE and _UNICODE. But defining _UNICODE will suffice. I thought will point this out now.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
u r right..
i found code like this in some header file
#if defined(_UNICODE) && !defined(UNICODE)<br />
#define UNICODE
nave
|
|
|
|
|
how to find the IP address of systems connected to a LAN
|
|
|
|