|
hi friends!
im using SDI Form based application with internet Rebar toolbar. i need to pass the values from that toolbar into main window (Cform view).
how?
please let me know as soon as possible.
thanks in advance..
Abdul Khathar
|
|
|
|
|
At this point you need to stop expecting more from App Wizard (done its job), you need to code now.
|
|
|
|
|
hi friends!
im using MFC SDI Application (with CForm view). i have also added two dialogs into my project. and those dialogs are used like toolbox.
the problem is if i try to send values from that dialog to main Form or another dialog. its giving obnormal termination error.
u please let me know wats the solution for that error.
thanks in advance.
Abdul
|
|
|
|
|
There's a nice toxcct's article about [^].
That article is actually undervoted (thanks to Mr. Univoter), but believe me, it is very good.
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]
|
|
|
|
|
|
Well, (IMHO) while the advanced articles are quite enjoyable for the few of us able to understand them, the (well written) articles for beginners are the most valuable here.
Unfortunately, if you write a good article (as, for instance, another of yours: , your "The Beginner's Guide to Using Enum Flags" - Disclaimer: I'm not the toxcct's publisher ) for beginners then you'll got a lot of attacks by the 'experts'.
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]
modified on Wednesday, October 29, 2008 9:19 AM
|
|
|
|
|
|
Khathar wrote: u please let me know wats the solution for that error.
Debugging would be the best possible solution.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: Debugging would be the best possible solution.
so plz u debug my code, plz sir, itz very urgent.
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]
|
|
|
|
|
Dont problem I can compile it for you.
|
|
|
|
|
How did you create the dialogs?
And how did you try to set/get the values?
Are you sure that the dialogs are created at that time?
|
|
|
|
|
use PostMessage to send messages between the different windows. In the message you can update the windows. Think about a global data object which data is represented by all windows.
Greetings from Germany
|
|
|
|
|
You can use of like this code for dialog box
CMain* m_Main=(CMenu*)GetParent();
m_Main->yourcontrols();
|
|
|
|
|
How Can I compress the Avi to RLE8 ?
As I want to play avi using CAnimationCtrl provided by MFC, and it's requirements are-
- avi should be in RLE 8 compression or not compressed
- avi should be of 8-bit color depth
Please help to solve this problem...
|
|
|
|
|
maheshbhoir.home wrote: How Can I compress the Avi to RLE8 ?
1. Use a video editting tool.(may be the one that created the current file)
2. There is AVI file management support in Windows SDK in the VFW category such as [AVISave^] and lot other AVI file functions. And there was a sample WriteAVI, when i searched for it i got [avigenerator^] from google.
BTW, for complex formats use DirectShow (instead of CAnimateCtrl) that can display any format that are installed on the target machine.
modified on Wednesday, October 29, 2008 7:18 AM
|
|
|
|
|
Hi All !!
I have developed an application say "MyApp" using visual studio 2005, in VC++.
When i build the application i get an icon with name "MyApp.exe" in the debug folder of the application.
so if i want to run in some other computer other than where i developed i just click this icon "MyApp.exe" for the execution of my application.
Now there can be two types of Computers where i can execute my application
1. A Computer system where Visual Studio 2005 is installed :: Here i donot have any problem to run my application
2. A Computer System where visual studio is not installed ::
So what are the minimum requirements of such systems (where there is no visual studio installed) in which my application can run successfully without any failure (i want to run my application just by clicking "MyApp.exe" icon ?
|
|
|
|
|
This minimum depends to minimum of your program and what dlls are used with your program
|
|
|
|
|
|
kapardhi wrote: 2. A Computer System where visual studio is not installed ::
So what are the minimum requirements of such systems (where there is no visual studio installed) in which my application can run successfully without any failure (i want to run my application just by clicking "MyApp.exe" icon ?
You must install the Visual C++ 2005 Redistributable package[^] on the target computers.
You can legally include this with your program installation.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
And distribute the release version of the program
|
|
|
|
|
No, there is no need to install VS 2005 on target machine.
Just build your solution in Release mode and you can find a Release folder which will contain exe for same (of course you will see it's icon).
Mostly if it MFC application then there is no any problem to run on platforms above windows 2000/NT/XP and above.
If some dependencies are there then you will required to install extra runtime for that for example DirectX 9.0c. In this case developer should have DirectX 9.0 SDK and the user's machine should have DirectX 9.0c runtime installed on it.
You can see such example when you install any 3D game which requires DirectX 9.0, then this the dependency for that application.
|
|
|
|
|
maheshbhoir.home wrote: No, there is no need to install VS 2005 on target machine.
No, but you need to install the redistributable package (see Rajesh's post). The only way to avoid this is to build everything statically (so link statically to the C run-time and MFC libraries).
|
|
|
|
|
I did it as below, any more efficient way?
std::wstring s(L"abc");
CString t(s.c_str());
VARIANT var;
var.vt=VT_BSTR
var.bstrVal=t.AllocSysString();
|
|
|
|
|
var.bstrVal = SysAllocString(s.c_str());
|
|
|
|
|