|
-Dy wrote: thought inlined functions basic replaced the _fstrchr token
He used this token, _fstrchr , in the entire source. There's a benefit from this way:
Some time later when there is a need to alter the implementation, he only needs to modify one line, instead of using the text search function to find out all the occurrences of strchr .
Similar concept as:
#ifdef UNICODE<br />
#define _tcscpy strcpyW<br />
#else<br />
#define _tcscpy strcpyA<br />
#endif
Maxwell Chen
|
|
|
|
|
Hi
( I posted this question a time ago but not get proper reply may be it was not much clear sorry for posting again )
In windows XP we get messagefrom firewall to allow the application to run or Block when we run any application other then microsoft application by default.
I want to do something programaticaly that firewal will not ask the message before running my application (EXE) . i think we need to add in allow list programaticly;
How ca I do ti .
any idea / help / link
Thanks
Regards.
|
|
|
|
|
zahid_ash wrote: In windows XP we get messagefrom firewall to allow the application to run or Block when we run any application other then microsoft application by default.
I want to do something programaticaly that firewal will not ask the message before running my application (EXE) . i think we need to add in allow list programaticly;
Add your application.exe path at the following location in the registry.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\
StandardProfile\AuthorizedApplications\List
i have not tried the code but hope so it work. As the windows firewall adds the authorised application list here.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Another way to modify the firewall settings is to use the following command(s):
netsh firewall add allowedprogram executablepath DisplayNameInExceptionList Enable All
If you just enter netsh firewall add allowedprogram in a CMD window it will bring up the help.
Kelly Herald
Software Developer
MPC
|
|
|
|
|
I am writing a game using Visual C++ (Windows Forms Applications). But I find some difficulty in playing music while the game is started.
Could anybody answer me which function should I use and how to ??
|
|
|
|
|
Squallkin84 wrote: But I find some difficulty in playing music while the game is started.
Music will only play if you post your question in the C++/CLI[^] forum.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
I am so sorry .....
|
|
|
|
|
i wants to find a file in a given directory on MAC OS so can anybody tell me how can i use this method or other method which is able to find the file on given directory on MAC OS
Thanks & Regards
Banks
|
|
|
|
|
|
i am allready know this function is not on mac that why i posted this question on this forum and also i have written in this paragraph what is other function .
so if u know the other function then reply .
Thanks & Regards
Banks
|
|
|
|
|
If MacOS is OS/X, then you should be able to use opendir(), readdir(), e.t.c.
In OS/9, it's a completely different story.
|
|
|
|
|
Dear all,
I want to display(draw) a scroll thumb inside a window. for that I have to calculte the rectangle to draw the thumb
i have following data
1. Scroll Range - returned from a controll which is assiciated with this scroll bar. im drawing the thumb according to this value
2. the client rect of the destination window ( scroll window)
using this data, how we can calculate the scroll position. pls help me in this regard.
I have done some calculations but its not as a normal scroll bar
SaRath
|
|
|
|
|
hi my client has asked me for an IP and port that he will be opening for me so i can make web service call to his machine..
after doing some monitoring and some help my conclusion is, when we are makeing soapclient web service call we cann't force soapclient for specific port (e.g. request should be sent using port 2345 etc..)
so what should be my reply to client
MY IP and port 80 ?
------------------------------
Its not the fall that kills you; it's the
sudden stop at the end.
|
|
|
|
|
I have used a combox control in my program.
When I select item in the combox control, the item will be highlighted.
How to solve this problem?
Please help!
|
|
|
|
|
What problem?
|
|
|
|
|
The selected item was always being highlighted.
It is possible to make it not be highlighted?
|
|
|
|
|
LaHaHa wrote: The selected item was always being highlighted.
Override the CBN_SELCHANGE, use SetFocus to set the focus on the other control.
Maxwell Chen
|
|
|
|
|
if you want the selected iTem should be highlighted then you can use:
GetCurSel and SetCurSel
Cheers
"Peace of mind through Technology"
|
|
|
|
|
I have tried it.
After the SelchangeCombox(), I use the GetCurSel and then SetCurSel it again.
Is there anything wrong?
Please help!
|
|
|
|
|
LaHaHa wrote: I have used a combox control in my program.
When I select item in the combox control, the item will be highlighted.
How to solve this problem?
Set its type as Droplist instead of Dropdown
and one more problem for us is clearly specify your problem .
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
After select the item, the item will remain highlighted.
Please help!
|
|
|
|
|
LaHaHa wrote: After select the item, the item will remain highlighted.
Add the handler for CBN_SELCHANGE of the your combo box
in that handler set the focus to other child window .
this will definatly solve your problem.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Thank you very much!
I set the focus to other button, then it solves the problem!
|
|
|
|
|
Hi LaHaHa
BY default when you slect the item from Combobox it will remain highlighted.
Now ,, PLease describe what are you trying to do...
Cheers
"Peace of mind through Technology"
|
|
|
|
|
I would like to know how to make it display my selection but not highlight it.
Now I set the focus to other button, it is alright.
Thanks!
|
|
|
|