|
In addition to what the other said and to remind you what I told some hours ago, GetDlgItem returns a pointer to a CWnd derived object. COleDateTime doesn't inherit from CWnd, so it is a completely different object. So, you can't cast your control to a COleDateTime object and expect everything to work.
And as I said David, why are you delegating that stuff to your application class ? Your dialog class should be responsible to manipulate its control, the application class has nothing to do with that.
|
|
|
|
|
I've been trying to figure this one out for the past couple of days with no success
Here's the relevant code: http://pastebin.ca/1419150
I'm testing this on a Windows XP SP3 virtual machine. I connect to it using mstsc from a Windows Vista Ultimate x64 machine (which is also the host for the XP virtual machine). The program running on the RDP host (the XP machine) also opens two other virtual channels in much the same way and they work fine.
Any help is much appreciated 
|
|
|
|
|
Sorry to wake this thread after 4 years, but did you find a solution to this problem?
I have a static virtual channel plugin, It works fine between Windows 7 machines, but when I run use an XP client, the server fails at WTSVirtualChannelWrite with "Incorrect function"
Please tell me if you found any clue!
|
|
|
|
|
How do i move file from one machine to another machine in network.
I used MoveFileEx but it is not working.
I used SHFileOperation but it is not working.
both of the function working only in local machine
“You will never be a leader unless you first learn to follow and be led.”
–Tiorio
"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford
|
|
|
|
|
You must do a copy and delete.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Mogaambo wrote: both of the function working only in local machine
Check whether you have permission(access rights) to move the files to remote machine...
|
|
|
|
|
Mogaambo wrote: I used MoveFileEx but it is not working.
I used SHFileOperation but it is not working.
Why not? Have you called GetLastError() ?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
I am geting the folowing error message while debugging my application. Can anyone please tell me how to solve this one.
"user breakpoint called from code at 0x7c90120e
Thanks
|
|
|
|
|
Without seeing any of your code, I can only suggest one thing that will solve this - remove the errors from your code.
Oh - and work out what bit of your code is being executed when this error occurs (hint - look at the call-stack to determine that).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I'm having the exact same problem.
I created a test program in Visual C++, and wrapped it with a licensing tool from Softkey.com, but when I run the executable, I get the error
dwwin.exe – Application Error
The exception Breakpoint
A breakpoint has been reached.
(0x80000003) occurred in the application at location 0x7c90120e.
Click on OK to terminate the program
Click on CANCEL to debug the program
The folks at Softwarekey.com don't know the answer. Microsoft suggested i disable Dr. Watson (http://support.microsoft.com/kb/188296/en-us), but that doesn't work.
|
|
|
|
|
Hi,
I want to list all applications that can be used to open a file based on the file extension.ie "Open With" list when we right click on a file in Windows Explorer. How windows manages this.
thanks
Nitheesh
Jose Jo Martin
http://www.simpletools.co.in
|
|
|
|
|
Check here:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.extension\OpenWithList
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
I have to read value of the registery so i am using RegQueryValueEx(),but it is returning value 6 which i have seen on msdn means :
ERROR_INVALID_HANDLE
6 (0x6)
The handle is invalid.
so what should i do to remove this error.
thanx in advance.
|
|
|
|
|
Well, what would you expect? Just provide it with a valid handle.
FYI - the doc page[^] contains an example as well.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
B0606115 wrote: so what should i do to remove this error.
I guess... pass a valid handle...?
Can you show how you called RegQueryValueEx?
|
|
|
|
|
HKEY hKey = GetRegistryKey(CString ("Connections") );
this has been successful as i have called RegEnumValue and thats working fine.
but problem is with RegQueryValueEx
int t= RegQueryValueEx( hKey, strValue, NULL, &Type,(LPBYTE)rgValue,&size1);
|
|
|
|
|
Documentation [^] states:
hKey [in]
A handle to an open registry key. The key must have been opened with the KEY_QUERY_VALUE access right. For more information, see Registry Key Security and Access Rights.
This handle is returned by the RegCreateKeyEx, RegCreateKeyTransacted, RegOpenKeyEx, or RegOpenKeyTransacted function. It can also be one of the following predefined keys:[...]
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]
|
|
|
|
|
B0606115 wrote: so what should i do to remove this error.
You may also choose to shut down the computer and go walking, if there is a sunny day (here is).
(or you may give us more info...)
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]
|
|
|
|
|
Hi can somebody Plzz Help me out wid my Project on c++...
Its a Guessing game.... 
|
|
|
|
|
Please guess yourself and figure it out
|
|
|
|
|
Junior Artist wrote: Hi can somebody Plzz Help me out wid my Project on c++...Confused
Its a Guessing game....
I guess you need to read this [^] .
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]
|
|
|
|
|
Junior Artist wrote: Its a Guessing game
It certainly is. Although your actual message is much more elaborate than your subject line...
|
|
|
|
|
Shall i send u my Project details....... 
|
|
|
|
|
On XP / Windows Server you can extend the address space from 2GB to 3GB. Two things are needed:
- you have to use the /3GB option in the boot.ini
- your program should be linked with the LARGEADDRESSAWARE option (could also be set via editbin)
I'm looking for c++ code to find out if both conditions are set.
The first condition can easily checked by looking to ullTotalVirtual from GlobalMemoryStatusEx call.
But I didn't find a way to dedect if the program uses the LARGEADDRESSAWARE option.
MSDN talks about an addressAwarenessType from 'VCLinkerTool Object':
http://msdn.microsoft.com/en-us/library/aa712546(VS.71).aspx[^]
How do I use this in a small C++ program (I'm using Visual Studio 2005)?
|
|
|
|
|
wilburke wrote: But I didn't find a way to dedect if the program uses the LARGEADDRESSAWARE option.
I am not sure whether there is an API for this, but you can find this by checking whether the IMAGE_FILE_HEADER::Characteristics variable contains IMAGE_FILE_LARGE_ADDRESS_AWARE flag.
|
|
|
|