|
break; wrote: // browser convert this to -->"›"
Isn't ">" is 62 in equivalient number ?
One more thing _wtoi (you have written _wctoi , but is there any such api?), internally calls atol , So I thing there is not way it would return 0155.
-- modified at 8:28 Friday 8th September, 2006
|
|
|
|
|
Hello,
sorry, my mistake!
It is of course _wtoi(); !
That symbol is smaler, than the normal > character, lock > and › (this ist in html-> &# 155)?!
This is not the normal "grater than" symbol!
Type in editor with [Alt + KeyPadNum] a number 155 and the same with [Alt + KeyPad] 0155, you will see they are two
different characters!?
Windows use the ANSI character set, and the are the same with ASCII in the first 128 chars, but the rest is different, also the rest 128 characters!
To best way to understand what i mean is when you take a lock at this two charsets?
regards
pixel
|
|
|
|
|
break; wrote: Type in editor with [Alt + KeyPadNum] a number 155 and the same with [Alt + KeyPad] 0155, you will see they are two
different characters!?
Actually, I was not aware of this.
If you see implementation of atol(called thorugh _wtoi),
it extract number using this loop
char* nptr="0155";
int total=0
int c=(int)(unsigned char)*nptr++;
while (isdigit(c)) {
total = 10 * total + (c - '0');
c = (int)(unsigned char)*nptr++;
}
return total;
using _wtoi , don't think it's possible.
|
|
|
|
|
hi all i had made a dialogbox using win32 not MFC based dialog i mean wizard,and there is checkbox on that now i want to know that whether check box is checked or not
i m using this code
CButton* pCheck = (CButton*)GetDlgItem(hwnd,IDCB_CANVOTE);
int checkState = pCheck->GetCheck();
but it did not work,i had used another code.
HWND hCbox = GetDlgItem(hwnd,IDC_CHKURL);
SendMessage(hCbox, , 0, 0);
but dont know what to pass the the message so that it gives me check box selected or not.
what i want to know is that whether it is checked or unchecked
Tasleem Arif
|
|
|
|
|
See SendMessage(hwndbutton,BM_GETCHECK ,0,0);
and return value BST_CHECKED or BST_UNCHECKED if its not gray
|
|
|
|
|
Thanks it worked;)
Tasleem Arif
|
|
|
|
|
Following code will work
CButton* pCheck = (CButton*)GetDlgItem( IDCB_CANVOTE );
int checkState = pCheck->GetCheck();
|
|
|
|
|
tasleem143 wrote: ...not MFC...
How is it that you are using CButton but not using MFC?
tasleem143 wrote: but it did not work
What did not work? checkState should have been BST_CHECKED , BST_UNCHECKED , or possibly BST_INDETERMINATE if using a 3-state button.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi All
I'm facing the following strange thing on my code!
I discovered that in my derived classes the keyword virtual has been deleted when the base class got it.
It's incredible because I have tons of code where this occurrs!!
Do you know a way to trap this in my source code?
Does exist some tool or trick or compiler option maybe?
Thanks to all
Manu
|
|
|
|
|
What do you mean by "has been deleted" - did the editor delete it or what?
Anyway, it really doesn't matter. If a method is declared virtual in a base class it is implicitly virtual in a derived class even if it is not declared as such in the derived class. This makes sense as the entry in the vtable is already there (from the base class declaration), no need to declare it again.
But I still don't understand how it got deleted...
Cheers
Steen.
"Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006
|
|
|
|
|
How can we enter buttons in titlebar:
|
|
|
|
|
|
|
Hi to you all,
I have a program that uses both microsoft word and outlook. I use them through automation, so I include both msword9.h and msoutl9.h. It turns out that both libraries define _Application, Panes, Selection and ApplicationEvents (and they do not seem to be identical either). I have now taken the easy route by renaming those 4 classes (to stuff like _Opplication, OSelection, etc). This does the trick, but it does not leave me with a good feeling.
Anyone have any better ideas?
Thanks in advance.
William
|
|
|
|
|
Did you use ATL via #import? You can control namespaces if you do that.
"Alot of the people on this forum are incredibly stupid, thinking that the internet is real" Score: 1.0 in the Soap Box
led mike
|
|
|
|
|
If i add different types of files to the list control,
How can i capture which type it is by selecting that item(file) in the list control, then how can i open it ,For ex if it is doc type ,if i double click on it then it opens with MSWord.
explain if any one knows
|
|
|
|
|
if you ::ShellExecute(null, "open", "myFile.ext", null, null, SW_SHOW); , then, ,the system opens automatically the program associated to the extension.
|
|
|
|
|
In the situation if i doesnot know which type of extension it is, then how can i?
|
|
|
|
|
do you know wich application has to open the file, and the program command line ??
|
|
|
|
|
Ya i know which application will open the file...
My Application is like this
I created one SDI application, with formviews, in that form view i added tree control and list control.
Now what i want is i want to add items to tree control and list control of different types.After adding to it open these file by double clicking,
|
|
|
|
|
This[^] articles series might interrest you...
|
|
|
|
|
In the example above, it did know.... It was ..."file.ext"...
If you are talking about files loading in your software, and you are using MFC, then CDocTemplate has a member function MatchDocType you may want to look at.
If you cannot tell the type by looking at the extension, or by looking inside the file, simply accept your PC does not have psychic powers.
Iain.
|
|
|
|
|
kiranin wrote: ...if i doesnot know which type of extension it is...
If you are adding file names to the control, how could you not know it's extension?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I have administrative access on the domain but mandatory profile on my login user is causing me not to see the display settings. When I right click in black area of the desktop to bring display properties windows, I can see just effects tab, all other tabs (for screensaver, coler scheme) are not seen. So I wanted to bring these windows by some other way and want to change the color scheme and save it. How may I do it programatically? My operating system is windows 2000.
thanks
Leya
|
|
|
|
|
Is it possible to know form which ip a connection request has been sent to our application which has been listening at a certain port, before accepting it?
Thank you.
KIRAN PINJARLA
|
|
|
|