|
Maybe you are trying to change "C:\temp\temp.txt" in your source code to "C:\\temp\\temp.txt"?
If that is the case, you may use "Find/Replace" in your development environment and some regular expression tricks to achieve that. However, I doubt that you can completely automate this process in a very simple way. Manual intervention is probably still needed.
|
|
|
|
|
put it in a CString then call string.Replace("\\", "\\\\");
|
|
|
|
|
In addition to this answer... watch out, you should check if it is already double or still a single one. Or you can get a c:\\\\...\\\\... string.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
What is the meaning of build and revision parts of the version number?
When the increase in these numbers is performed?
Does the build number increase without reset despite the change in major or minor? Does it relate to program or module every recompilation?
Is there any standard description of MMBR values apart from wiki available?
Чесноков
|
|
|
|
|
Chesnokov Yuriy wrote: What is the meaning of build and revision parts of the version number?
These are just arbitrary values set by the developer to identify a particular build. Microsoft seems to invent a different standard for every product it releases so they are no help. I have seen them use the date and time in some cases, so build would be the number of days since 0 January 2000 (or whatever Epoch you use), and revision is (seconds since midnight)/2 on that day. Can't remember where I found this but I suspect it was somewhere in Google land.
|
|
|
|
|
Hi, I have many checkbox button.I want to know which button was clicked when user clicked one of them.
How can I use One handle function response the click message,and can get which button has been clicked?
Thanks!
|
|
|
|
|
|
Thank you Naveen,I read the MSDN page you showed me.I think using ON_CONTROL_RANGE can solve my problem.Thanks a lot!
|
|
|
|
|
Do this[^] or this[^]help you?
On the other hand, it would be nice to know a bit more...
Which language are you using?
Are all the checkbox independant? or if you select one, some others get unselected (as Radio-buttons)?
To handle them you can use a variable to handle all, or each checkbox can have its own variable.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Thanks Nelek for your infomation.I use Ms VC6,and I hope when I select one all the others get unselected ( AS you guess ).
I think ON_CONTROL_RANGE can solve the problem.I will test it.
Good luck!
|
|
|
|
|
If you don't get that solution working. I suggest you to use radiobutton. Radiobutton is more for exclusive selections and checkbox for multiple selections.
Here[^] (section "Using the Dialog in Your Application") you have an example (you can also take a look on the whole contents, it may have infos for other questions you have).
[quote from chapter 2]
The Check Box Control
A check box is a square that the user can click to check or uncheck. The check box control is used to turn a particular value on and off. They are basically on/off switches with an occasional third, in-between state. You normally use check boxes to control discrete, on/off-type variables.
The Radio Button Control
A radio button is a circle that the user can click to fill with a black spot. The radio button is similar to the check box control, but it is used in a group of two or more where only one of the values can be in the on state at a time. You normally use radio buttons in groups of at least three, surrounded by a group box. The group box allows each group of radio buttons to be independent so that only one radio button in each group can be in the on state at any time.
[/quote]
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Thanks Nelek for your detailed advice.I will try Radio Button Control.
|
|
|
|
|
You are welcome
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hi Expert,
Please help me
How to set a tooltipCtrl to be popped up from the system tray ?
Thanks,
Spk
|
|
|
|
|
|
Just adding to the above reply, you could consider using CPPToolTip v2.1[^], which I thought was very good.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
I'm trying to use my own image (.png) as a ribbon button.
I've managed to place a windows icon on my custom button using this code
<code>
STDMETHODIMP CConnect::GetCustomUI(BSTR RibbonID, BSTR * RibbonXml)
{
if (!RibbonXml)
return E_POINTER;
*RibbonXml = SysAllocString(
L"<customUI xmlns=\"http://schemas.microsoft.com/office/2006/01/customui\"\>"
L"<ribbon>"
L"<officeMenu>"
L"<menu idMso=\"FileSendMenu\">"
L"<button id=\"OfficeButton1\" imageMso=\"HappyFace\" label=\"Happy Print\" description=\"Prints a random joke in the footer of each document\" onAction=\"ButtonClicked\"/>"
L"</menu>"
L"</officeMenu>"
L"</ribbon>"
L"</customUI>"
);
return (*RibbonXml ? S_OK : E_OUTOFMEMORY);
}
</code>
From what I've googled, I'm supposed to create GetImage or LoadImage callbacks. How to do this?
|
|
|
|
|
he:
How many files can be created by methord "GetTempFileName()"
wait answer.
|
|
|
|
|
See here[^], looks like as many as you want.
|
|
|
|
|
65,535 if the path and prefix are the same.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
In practice when a folder contains more then 6-9000 files Windows isn't happy anymore..
|
|
|
|
|
I have Resource ID (for a stringtable value)in string format. ex ("IDS_VALUE").
How can i convert it into ID format (UINT) to get the the string using LoadString method.
If anybody come across the problem .pls let me know the solution.
Advance thanks!
|
|
|
|
|
Just curiosity: how can be you have just the string?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
the string containing the ID was "composed" using predefined strings from a XML file.
modified on Thursday, January 7, 2010 3:36 AM
|
|
|
|
|
Intead of "IDS_VALUE", you can keep the actual integer values like "2344" in the XML file. And you can easily convert the "2344" to 2344 by using atoi().
|
|
|
|