|
Is it a test of your new Random Word Generator application?
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]
|
|
|
|
|
여기 아무도이 문제를 이해하는 것이다. 귀하의 네이티브 언어에 일부 다른 포럼보십시오.파일을 다운로드 후, 아무도 여기를 해결하는 것입니다.
죄송합니다!
Google translate
|
|
|
|
|
Hi all,
I'm trying to import in my MFC project some custom form user control made with c#. Now if I try to import them in a dialog following the msdn tutorial I have no problem. Instead If i try to import them in a cpanedialog I'm not able to initialize the control (if I look at the control value in debug mode it is always NULL). Now my question is:
It is possible to host the control or it is the same situation of the dialogbar in which as MSDN said can not be host form control?
PS To host the control I have included the clr support than I have made these three passage:
1) in header file I have add CWinFormsControl<mbrPropertyGrid::PropertyGrid> m_ctrl;
2)then to the cpp file of the panedialog I have added a DDX control where IDC_CTRL2 is a static tex used as placeholder DDX_ManagedControl(pDX, IDC_CTRL2, m_ctrl);
3) at least in a specific method I use the control
|
|
|
|
|
Excuse me If i redo my question. Please help me, if the problem is that the question is not clear me, tell me that and I will try to explain it better. Thank you in advance
|
|
|
|
|
Do you have the latest "Feature Pack" for Visual Studio 2008 that includes CMFCPropertyGridCtrl and CPaneDialog ?
This signature was proudly tested on animals.
|
|
|
|
|
Yes I have the feature pack installed but the controls provided are too limited...the propertygridcontrol doesn't offer the opportunity to make a tree like control in witch the line with the expansion marquee could locate also another control.
So to overcame this problem I have thought that a solution will be to import a c# control...
|
|
|
|
|
Hi,
I am Vinod. I want to have multiple windows in VC++.These windows should be able to display information receive messages from other PC.
Please reply if any one knows....please//
|
|
|
|
|
vinod shankar k wrote: Please reply if any one knows
Yes, somebody knows.
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]
|
|
|
|
|
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
|
|
|
|