|
Saurabh Srivastava wrote: have a mechanism through which the public IP of the router and Port number will be forwarded to me. But after that I am not sure that simple TCP/IP socket programming will suffice or I need to do something more for that.
That should work fine.
One additional comment, if only one host is behind NAT/firewall you don't even need to setup the forwarding. What I mean is the one that isn't can always directly connect to the other, it is just a question of who intialises the TCP connection. But if both hosts are NAT-ed you need to do something more elaborate, possible solutions are: set up forwarding on the router, use a host in the middle that serves as a hub, use UDP hole punching.
Hope it helps.
/M
|
|
|
|
|
Hi All,
Actually I like to represent a timeline visually using VC++ and MFC components. Is it possible to represent the Timeline that is available in Windows Movie Maker using VC++ and MFC? Can anyone give me some tips in creating Timeline(Front Design) visually?
Whether their is any ActiveX components to do this tasks?
Thank You in Advance
With regards
Raja Bose
|
|
|
|
|
Is there any way to get the total file count on specific drive without enumerating the files.
|
|
|
|
|
I think the answer is: "No".
After all, just imagine the book keeping headache if directories knew all about that contents lower directories have.
I'm also fairly sure that very small files in NTFS just get stored directly in the directory information, rather than having their one independent locations.
Also, what about reparse points? Stub files that have a placeholder on the disk, but really exist elsewhere?
Etc...
Iain.
Iain Clarke appears because CPallini still cares.
|
|
|
|
|
While I've never tried, this information might be in the file system tables (e.g., FAT, MFT). But if it were, I suspect that Windows Explorer would be using it rather than having to traverse all of the folders when you ask for a file count.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Did you try with DlgDirList?
|
|
|
|
|
Friends, I am working on the code, wrote by somebody.. I added a new menu Item in the resource.. say "xyz", during the runtime it is shown as "@xyz@".. I need it as "xyz",
can u pls help me out in this ..
|
|
|
|
|
did you put a space before the text and after the text?
It is never late to learn
|
|
|
|
|
No space, I added inthe menu editor directly
|
|
|
|
|
No space, I added inthe menu editor directly.. All the rest of the itemas are folowed by some integers in the caption, but looking normaal during run time, so I also tried adding some int but, did not work,
|
|
|
|
|
How do you add your item (i.e. please post relevant *.rc line and possibly the line corresponding to a working menu item)?
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
|
|
|
|
|
No not in .rc file directly , I added inthe menu editor. All the rest of the items are folowed by some integers in the caption, but looking normaal during run time, so I also tried adding some int but, did not work, I would like to know, where the manipulation has been dont
|
|
|
|
|
No space, I added inthe menu editor directly.. All the rest of the itemas are folowed by some integers in the caption, but looking normaal during run time, so I also tried adding some int but, did not work, I am looking around,, to find where the manipulation has been done..
|
|
|
|
|
ptr_Electron wrote: No space, I added inthe menu editor directly..
Eventually the menu editor writes inside the resource script (*.rc ) file hence, please, locate the entries inside it and post them.
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
|
|
|
|
|
yes, that is ture... please find the lines below
POPUP "&Window"
BEGIN
MENUITEM "&New Window", ID_WINDOW_NEW
MENUITEM "&Cascade", ID_WINDOW_CASCADE
MENUITEM "&Tile", ID_WINDOW_TILE_HORZ
MENUITEM "&Arrange Icons", ID_WINDOW_ARRANGE
END
POPUP "Help_203"
BEGIN
MENUITEM "Contents_204", ID_NAV_HELP_CONTENTS
MENUITEM "About_269", ID_APP_ABOUT
MENUITEM "Preferences_598", ID_NAV_PREFS, GRAYED
MENUITEM "Guide", ID_NAV_LG END
MENUITEM "LG", ID_MF_LG, this is the one I added, It is displayed as "@Guide@" instead og "Guide" during run time,
|
|
|
|
|
Maybe the application manipulates such strings at runtime. Check for menu API calls (such as GetMenu ) inside source code.
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
|
|
|
|
|
yes it manipulated internally,, thank you very much...
|
|
|
|
|
Hi
I am using ListControl in my project to show thumbnail view of jpeg images.ListControl displaying perfectly on Windows XP. Jpeg images are showing in multiple rows format, but when I used same code on Vista operating system, Listcontrol display with single column of images. So let me know that is there any setting need to work ListControl on Vista OS.
ABM
|
|
|
|
|
Hi,
I am working on property sheets. I have initially added 5 pages. I am using the SetWizardMode().
In the 3rd page, OnWizardNext(), based on some condition, I am trying to remove the 4th page using RemovePage(3). But I am unable to do so.
Please let me know as how this could be done at runtime.
Taruni
|
|
|
|
|
Taruni wrote: But I am unable to do so.
Why ? What is the exact problem ?
EDIT: by the way, do you know that you can return the ID of the page you want to be displayed when you hit OnWizardNext ? So you could do that instead of removing the page.
modified on Thursday, April 3, 2008 3:02 AM
|
|
|
|
|
I have a propertysheet with 5 pages. The following is the OnWizardNext() of page3.
LRESULT CPage3::OnWizardNext()
{
if(Value == 1)
{
sheet.RemovePage(&sheet.page4);
}
return CPropertyPage::OnWizardNext();
}
At run time, when the "Value" is 1, I shouldn't get page4 tab. I should remove that. But I am unable to do so.
Is my code correct? Please let me know.
Taruni
|
|
|
|
|
Taruni wrote: sheet.RemovePage(&sheet.page4);
What's that ? You said you were using RemovePage(3). What is page4 here ?
|
|
|
|
|
As the parameter to the RemovePage is 0 based index of the page, I have tried to remove the page 4 by saying, sheet.RemovePage(3) and also I have tried by passing the reference of the page.
sheet.RemovePage(&sheet.page4);
But I was unable to remove the page.
Taruni
|
|
|
|
|
Taruni wrote: sheet.RemovePage(&sheet.page4);
What happens if you ever need to re-add the page? Have you considered something like:
LRESULT CPage3::OnWizardNext()
{
if (Value == 1)
return 3;
else
return CPropertyPage::OnWizardNext();
}
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Your CPMRU is running low on power?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|