|
Virtual PC can use the network facilities of the host PC right?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
hai,
i need to create a progress bar for my application.i tried the following code but this did not show the progress inside the bar while running the code.just the bar was displayed.what's wrong with this code???show any other coding must be added???and another doubt is how to show the status in a progress bar???
CProgressCtrl *Progress = new CProgressCtrl;
Progress->Create(WS_CHILD | WS_VISIBLE, CRect(10, 10, 288, 35), this,0x16);
Progress->SetRange(0, 100);
Progress->SetPos(0);
if (Progress->GetPos()!=100)
{
Progress->StepIt();
}
else
{
Progress->SetPos(10);
}
RAJA
|
|
|
|
|
Did you use of this code at a function and your code is working for me.
You must ask your questions on the correct forum not anywhere.
|
|
|
|
|
yes,i created a progress control in my dialog and wrote the code inside that.but iam able to see a blank progress bar only while i run the project,why is the progress not show while i run it???
void CmobtvapplicationDlg::OnNMCustomdrawProgress1(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMCUSTOMDRAW pNMCD = reinterpret_cast<LPNMCUSTOMDRAW>(pNMHDR);
// TODO: Add your control notification handler code here
CProgressCtrl *Progress = new CProgressCtrl;
Progress->Create(WS_CHILD | WS_VISIBLE, CRect(10, 10, 288, 35), this,0x16);
Progress->SetRange(0, 100);
Progress->SetPos(0);
if (Progress->GetPos()!=100)
{
Progress->StepIt();
}
else
{
Progress->SetPos(10);
}
*pResult = 0;
}
RAJA
|
|
|
|
|
Why you didnt declare CProgressCtrl *Progress = new CProgressCtrl; out of function?
|
|
|
|
|
did u mean this???i tried this but iam not able to view the progress in the bar while i run the project,i get a progress bar with only twwo incrementedpositions,how to view the progress in the bar???
void first::OnNMCustomdrawProgress1(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMCUSTOMDRAW pNMCD = reinterpret_cast<LPNMCUSTOMDRAW>(pNMHDR);
*pResult = 0;
progressbar.SetRange(0,1000);
progressbar.SetPos(0);
if (progressbar.GetPos()!=1000)
{
progressbar.StepIt();
}
else
{
progressbar.SetPos(100);
}
}
RAJA
|
|
|
|
|
Project RAJA wrote: why is the progress not show while i run it???
To find out, you'll need to ask in the correct forum.
"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
|
|
|
|
|
|
Using Regedit, add a key named HKEY_CLASSES_ROOT\*\shell. Under that key, add another key with the name you want displayed in the context menu (e.g., pack with CPACK). Under that key, add another key named command. Change the (Default) value of that key to whatever command is necessary to run your application (e.g., c:\some_folder\cpack.exe "%1").
You should end up with something similar to:
[HKEY_CLASSES_ROOT\*\shell\pack with CPACK\command]
@="notepad.exe %1"
"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
|
|
|
|
|
i am accessing another system through RDP.
when i connect to VPN ,RDP is disconnected.
Is there any way to run both VPN and RDP simultaneously?
|
|
|
|
|
This is likely to be a routing issue. Many VPNs will change the default gateway of the system to be the other end of the VPN tunnel, meaning that all packets that you don't have a specific route for go over the VPN. If there's no route out of that site to the system you're connecting to, or they have an outbound firewall that prevents RDP, or the site you're using RDP with restricts the addresses which can use RDP to access their servers, the packets will never reach their intended target.
You also have to remember that routing decisions are taken entirely on the basis of where the packet's going: while IP does have source routing capabilities (i.e. the creator of the packet dictates the route it takes), this feature is very rarely used and most routers will ignore it due to the risk of spoofing. Therefore it could be that RDP packets from your computer are reaching their server, but there's no way back from the server to your computer.
About all you can do is note what your default gateway is before creating the VPN connection (use route print and record the gateway value against the 0.0.0.0 route), turn on the VPN, then add a new route (with route add ) to the target server's IP address, and the previous default gateway. Packets for the target server should then take the same path as they would without the VPN enabled.
This assumes that the VPN is implemented as a separate network adapter. If it's implemented as a filter driver on your real network adapter, it may not be possible to circumvent it.
You could also have problems if the server you're trying to use RDP with is on your local subnet. This technique may still work, depending on your router.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
After you're connected to the VPN do you have ping reply from the machine you're trying to connect with RDP?
|
|
|
|
|
I have found this to happen when the VPN connection is set to use the default gateway on the remote network - ie. you internet access is adjusted to connect through the internet at the remote network, not your own.
To prevent your gateway from changing, go into the properties of the VPN connection, on the networking tab, goto the TCP/IP properties and into the advanced settings to deselect 'Use default gateway on remote network'. This option is selected by default as well, so it has to be switched off by the user.
------------------------
Luke Lovegrove
------------------------
|
|
|
|
|
Hi Friends,
I have a system which has installed windows server 2003 OS. In my system, IIS6.0 is installed also. I could not run my asp.net applications through the visual studio 2005. Because, "Default Website" (in IIS6.0) is display always stopped. I could not trying to start the default website. I was trying to start the default website when it has returned the error "The process cannot access the file because it is being used by another process". I did to restart the IIS admin service by more time.
How can i start the default website in IIS6.0?
Thanks in advance
Rameshkumar Thirumalaisamy
|
|
|
|
|
|
I have no need for Exchange on my home server and I'm wondering what is the safest way to remove it. My experience with SBS is almost entirely bad, and it's always been incredibly unstable, so I'm leery of uninstalling Exchange. I can't afford the several months it takes to rebuild a currupted server. I think there are two options - remove it through the Windows Add/Remove Programs panel, or use Services to change all Exchange services to manual start. Perhaps there's a third alternative I haven't thought of...
Has anyone tried this? Which is safest?
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Unless you know why your server is unstable, I would go by the second alternative.
Which version of SBS is it?
|
|
|
|
|
It's SBS 2003 Premium, and it's not currently unstable - just really slow. The previous versions I used all self-destructed from making even minor changes, especially those changes directed step-by-step by Microsoft. I just don't trust it.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
How much memory do you have on the server? You really need four GB on a Premium.
If you have 4 GB already, you might need some memory tuning[^]
Just remember that the SBS is also a Domain Controller so leave some memory for the AD
|
|
|
|
|
Jörgen Andersson wrote: four GB on a Premium.
If you have 4 GB already, you might need some memory tuning[^]
Holy Crap! When I built this thing I upgraded way beyond the norm - 1 GB - never imagining any version of Windows would want more. Maybe I should uninstall everything and go back to DOS.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
The exchange server have a tendency to consume all available memory up to a little less then 2GB during the nightly onlinedefrag and cleanup. This memory will only be released on demand with a lot of disk swapping as a result .
2 GB can therefore be considered a to be a practical minimum on the standard server. A Premium wants more
If you don't need the exchange server you can safely just set all exchange services on manual start. The only things you affect that way is the wizards that you anyway only run while installing the server.
|
|
|
|
|
|
Hmmm. Thanks for the link, and I may give it a try, but it's still scary. Microsoft always forgets some little detail, like "Following our instructions will probably destroy your PC, but you'll be offline so long rebuilding it that we'll never have to worry about hearing from you again." Still, I really can't think of anything that could be dependent on the Exchange system, since I've never implemented it fully. SBS is weird, though. They've bastardized the standard Win2003 so that certain assumptions are strictly enforced, and one or more of those invariably jumps up and bites me if I try to do anything outside of the defaults set by MS.
Thanks again!
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Hi All,
is there a way to zip a directory in windows through command prompt. Please help urgent.
thanks in advance.
- rajnish
|
|
|
|
|
Not without a third party program.
Try rar, the commandlineversion is for free.
|
|
|
|