|
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.
|
|
|
|
|
followait wrote: //Do I need to free var.parray here?
That depends. Do you still need access to var before main() ends? Otherwise, if main() ends, then the memory will be automatically freed.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I have a project here at my work due Monday and it involves 23,000+
records to be manually typed into a database requiring the fields LEN:, DN:, and the NCOS: on the same line. I just know that there is an easier way of doing it. I have been working with the sed utility in Linux to help me but now I would like to know how to write an Win32 executable that can ask for the file name and filter these values for me and insert them into a text file. I have a fair amount of C++ programming experience but I do not know how to using file streams. Any help would be greatly appreciated by myself and my coworkers. A sample of a record I have is:
MADN SPECIFIED. LEN OUTPUT IS FOR PRIMARY.
-------------------------------------------------
LEN: HOST 02 0 02 11
TYPE: MULTIPLE APPEARANCE DIRECTORY NUMBER
SNPA: 315
DIRECTORY NUMBER: 6344010 (NON-UNIQUE)
LINE CLASS CODE: IBN
CUSTGRP: KAFB SUBGRP: 0 NCOS: 52
Here is a link to a thread where I was using sed:
http://www.linuxquestions.org/questions/linux-software-2/using-sed-to-extract-a-pattern-plus-a-number-of-positions-after-679435/
|
|
|
|
|
Michael Randolph wrote: MADN SPECIFIED. LEN OUTPUT IS FOR PRIMARY.
-------------------------------------------------
Do these two lines appears once at the top of the file?
Michael Randolph wrote: LEN: HOST 02 0 02 11
TYPE: MULTIPLE APPEARANCE DIRECTORY NUMBER
SNPA: 315
DIRECTORY NUMBER: 6344010 (NON-UNIQUE)
LINE CLASS CODE: IBN
CUSTGRP: KAFB SUBGRP: 0 NCOS: 52
Do these 6 lines repeat (for each record)?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Yes if you check out this link there is more info on what I'm trying to do..... http://www.codeguru.com/forum/showthread.php?t=464131
|
|
|
|
|
I see some inconsistency. Are the rows of dashes used to separate records, and are there always two rows of them? How many rows are there between OPTIONS: and the first row of dashes? Are the two rows starting with MADN: optional? Can you provide 1-3 more records so that a pattern is more evident?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I am currently writing a program using C++ and MFC. I am thinking that my users would like to see their output saved in a PDF file. The output will contain at least one graph (as in X - Y plot). Are there any class libraries that will help me produce this PDF output?
Thanks
Bob
|
|
|
|
|