|
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());
|
|
|
|
|
|
Hello,
I am trying to create a bluetooth socket on wince device(HP iPAQ). the code is given below ..
SOCKET s;
WSADATA wsaData;
int iRet = 0;
iRet = WSAStartup(MAKEWORD(2, 2), &wsaData);
s = socket(AF_BT, SOCK_STREAM, BTHPROTO_RFCOMM);
if(s == INVALID_SOCKET)
{
iRet = WSAGetLastError();
}
WSACleanup();
here creation is getting failed.The return error code is 10047(Address family not supported by protocol family). In my device the bluetooth is turn ON. Can any body help me why i am not able to creat bluetooth socket. please help me.
Thanks and regards,
Yudhisthira Attry
|
|
|
|
|
VARIANT test()
{
SAFEARRAYBOUND rgsabound[1];
rgsabound[0].lLbound=0;
rgsabound[0].cElements=2;
SAFEARRAY * psa=SafeArrayCreate(VT_I4,1,rgsabound);
VARIANT var;
var.vt=VT_ARRAY|VT_I4;
var.parray=psa;
return var;
}
int main()
{
VARIANT var=test();
}
I there are other errors in the code, please tell me, thanks.
|
|
|
|
|
Hello followait,
No a VARIANT will not automatically free its contents. To do so, either manually free the SAFEARRAY by yourself or call VariantClear().
- Bio.
|
|
|
|