|
You could start by using CreateWindow .
Call it as many times as you want.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
vinod shankar k wrote: These windows should be able to display information receive messages from other PC.
Depending on how many other PCs are involved, you might consider an SDI or MDI application.
"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
|
|
|
|
|
my function f_my() receive identifier
of control, for example
IDC_DATETIMEPICKER1
How do set type of argument?
And how this function to call for execution?
As show - unproperly:
error C2660: 'GetDlgItem' : function does not take 1 arguments
void CADO_MDIApp:: f_my (long identifier)
{
COleDateTime* p1 = (COleDateTime*) GetDlgItem(identifier);
}
|
|
|
|
|
durban2 wrote: COleDateTime* p1 = (COleDateTime*) GetDlgItem(identifier);
You are trying to call GetDlgItem() which resides in the global namespace (since CADO_MDIApp is not derived from CWnd ). That version requires 2 arguments.
Why are you wanting to do this? The application object should not need to know about controls on a dialog.
"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
|
|
|
|
|
durban2 wrote: my function f_my() receive identifier
of control, for example
IDC_DATETIMEPICKER1
How do set type of argument?
Maybe an int .
durban2 wrote: As show - unproperly:
error C2660: 'GetDlgItem' : function does not take 1 arguments
void CADO_MDIApp:: f_my (long identifier)
{
COleDateTime* p1 = (COleDateTime*) GetDlgItem(identifier);
}
GetDlgItem function takes actually 2 parameters [^]. Possibly you want to call CWnd::GetDlgItem method.
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]
|
|
|
|
|
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
|
|
|
|