|
hi,
COuld someone tell me how to get the IPX Address.
I tried to use GetAdapterInfo but for some reason the api is not getting recodnised though have have included the header file and given the path in the project settings.
maybe somebody could point out the reason for the ehader not being recognised.
Thanks
U get wht u Give
|
|
|
|
|
|
hi
In this function wht value do i pas fos s
int getsockopt(
SOCKET s,
int level,
int optname,
char* optval,
int* optlen
);
U get wht u Give
|
|
|
|
|
|
Could anyone plz tell me soon how to convert a string to an unsigned char using vc++ code?
|
|
|
|
|
nehathoma wrote:
how to convert a string to an unsigned char using vc++ code?
you have to use typecasting for that,something like this way
unsigned Char* to char*
unsigned char *uStr=(unsigned char*)"alok gupta";
char *str=(char*)uStr;
Char* to unsigned char*
char *uStr="alok gupta";
unsigned char *str=(unsigned char*)"alok gupta";
[Vote One Here, Complete my Survey....]
Alok Gupta visit me at http://www.thisisalok.tk
"I Think Believe this Will Help"
|
|
|
|
|
const unsigned char *uch = reinterpret_cast<const unsigned char*>(str.c_str());
suhredayan
|
|
|
|
|
|
Yeah, nice to be back and see you all here with same passion.
suhredayan There is no spoon.
|
|
|
|
|
Went for my Project Viva to College
|
|
|
|
|
|
nehathoma wrote:
Went for my Project Viva to College
suhredayan There is no spoon.
|
|
|
|
|
I'll assume you mean an unsigned character string.
1) A string (by default) is a signed character array ending with a null character ('\0').
2) "string" is of type (char*).
3) To treat a string as an unsigned character string:
char* pStr = "string";
unsigned char* puStr = (unsigned char*)pStr;
3) To convert and individule character (in a string) from signed to unsigned:
unsigned char uch = (unsigned char)pStr[i];
That's all there is to it.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Hi,
I have an application (in VC++ 6.0) wherein it displays the images in ListView. So the application starts displaying the images from the Top left corner (0,0).
Now I have added the manifest file (to give XP look to application) in applicatoin resource successfully. (as outlined in the below mentioned link http://www.codeguru.com/Cpp/controls/controls/article.php/c5227/[^])
The application is having the XP look but the images are displayed from the Bottom left corner.
Question:How to set the origin of the ListCtrl to top left corner (0,0) so that the images are displayed from the top left corner (0,0) ?
Thanks & Regards,
Neeraj
Thanks & Regards,
Neeraj
|
|
|
|
|
hi
I have problem in setting the link to the lable having the text .
or is there any way i can set the link to the text and open the explorer for that url.
Need it urgent.waiting for reply as soon as possible
Best Regards
ganesh
|
|
|
|
|
|
Man are you in the wrong place!
Links to 'lable'?
This forum is for much lower level programmers than you; in other words, people who make code that makes your code work.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
hi..
i m not angry with your reply but for your kind information you should not reply such things if you don't like just ignore..
thanx..
xyz
|
|
|
|
|
Does any one have a set of REs that will give an RE-parser a good workout?
Prefered:
A set of REs and a set of test strings, to varify them.
Thanks, all!
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Just search on the web for tutorials on regular expressions, you can even limit it to well-known programs like perl, sed, awk, etc...
Check out The Regulator. It's a free regular expression tester and more, it's written in .NET, source code is available too.
|
|
|
|
|
Surely 'written in .NET' is only a bonus if the guy is going to be using .NET ?
I did a rentacoder job to deliver some regexes, and when I did, they didn't test them in the tool they were going to use them in ( written in C# ). No, they used a C++ program with it's own regex flavour. Then they complained that the regexes didn't work. idiots.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Ahhhh! I'm right here!
I am looking for REs to test my parser, written in C/C++, not the one that comes with .NET.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
:-DThanks! That is a new one that I've not seen.
Tutorials are great, but I'm not looking for how to use REs. I am looking for test REs to verify that my RE parcer works.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
I Solved this Problem, Thankyou
|
|
|
|
|
Learn to program without the wizard, it will make you a much better coder.
I'm not sure this is what you want though, I thought there was an overall setting for controls to send messages to their parent, or is that just in C# ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|