|
For either of the methods:
BOOL Create( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL );
BOOL Create( UINT nIDTemplate, CWnd* pParentWnd = NULL ); You must specify at least a template name or a template id.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Press F1 ... or go here.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Desmo16 wrote: What is the correct way to do that ?
They hide that information in the DOCUMENTATION
|
|
|
|
|
a minimum parameters is id from dialog
Create(IDD_DIALOG);
whitesky
|
|
|
|
|
Hey guys,
I tried searching for static unsigned int on Google but I get a lot of gibberish answers.
It would be greatly appreciated if someone can give me a brief description about it because the document im trying to understand is full of static unsigned integers
Thanks
|
|
|
|
|
The key here is 'static'. It tells system to allocate memory for the static variable in heap, rather than stack. So the value of the variable can be retrieved globally.
|
|
|
|
|
No, static tells the compiler to allocate the memory in the static memory area. new, malloc, etc, allocate from the heap.
--
Presented in doublevision (where drunk)
|
|
|
|
|
|
ask a more precise question here, and you'll have concise answers...
static is a keyword that have different meaning depending on the place it's used.
unsigned int is a data type, and here again, can have different meaning depending on how it's used
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
toxcct wrote: unsigned int is a data type, and here again, can have different meaning depending on how it's used
Uh, no? unsigned int is always a unsigned int .
--
Coming Soon to an Illegal DVD
|
|
|
|
|
as i understand it, i think toxcct meant that it could be either used in a variable declaration/definition, type casts, function returns...
but maybe it's just me, and i misunderstood
-- TTD --
|
|
|
|
|
Maybe so..
--
As Foretold by Nostradamus
|
|
|
|
|
Hi Everybody,
I need to run a command driven program in a MFC application. Then I include "WinExec("commandprogram param1 param2",SW_HIDE)" in the MFC application. The problem is the command driven program has a scanf() function, but I know the value needs to be entered and I don't want to input the value manually again. How can I pass the value to scanf() without inputing any value in the keyboard? I don't want to rewrite the function in the command driven program. Thank you very much.
Gavin
|
|
|
|
|
I don't know what WinExec supports but some spawning functions support attaching to the child process IO streams so that might work for you.
|
|
|
|
|
Have you tried I/O redirection: "commandprogram param1 param2 < input_string" in your WinExec call?
Best,
Jun
|
|
|
|
|
Thanks Jun and led.
Best,
Gavin
|
|
|
|
|
Hi there,
Can anyone give me some info or link about how I can manipulate the GPS (lat, long) sent from a device to mappoint so that the location of the vehicle can be traceable in mappoint?
what mappoint requires as input for this purpose and what should be the interface between the device and mappoint?
Right now I have an application that receives data (text message, GPS and so on)from some devices and sends it to another application as XML format and also can recive data in XML format from the second applicaton and sends it to the device inside the vehicle. The device in the vehicle sends GPS info upon request and I need to send it to mappoint to trace the vehicle there. I was wondring what would be the interface between my application and mappoint.
I appreciate all the suggestions.
regrads,
Nahitan
|
|
|
|
|
|
Hi all,
how can i get the SMTP server name the current user is using via code?
thanks in advanced
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Can you not simply query the MX record (using DnsQuery() )?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanks for the kind reply...
i am not familiar with MX record nor DnsQuery, maybe you can refer me to a code snippet or documentation?
thanks again
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
|
the MSDN reference doesn't help me since i am not familiar with the subject....
can you refer me to a code snippet that uses DnsQuery to get the mail server ?
also, i need to know the current user email address...can u help there as well?
thanks again for all the kind help
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
YaronNir wrote: can you refer me to a code snippet that uses DnsQuery to get the mail server ?
Can't you just Google for an example?
http://www.google.com/search?hl=en&q=DnsQuery+DNS_TYPE_MX
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
in a Small research i did, i found out that in order to use DnsQuery you need to specify the name of the owner of the record set queried (first parameter). this isn't good for me.
i need to explain exactly what i am planning to do:
i need to retreive a SMTP server i.e Mail.yaron.net then i need to retrieve the current user email
i.e yaron@yaron.net......
problem is i can't do either with what you have suggested.....
i was trying to use Outlook automation, but couldn't find how to retrieve the SMTP server using that....
any suggestions? references?
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|