|
Have a look at IsChild function.
|
|
|
|
|
In VC++ when we assigning the port number to the socket programming ,how to check wheather the port number was already exiting or not
shakumar
|
|
|
|
|
I would think the connection would return something like WSAEADDRINUSE .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi there,
I'm wondering on how to expand the dialog box vertically automatically as the item display in a cwnd custom control is bigger than the original size. Are there any good ideas?
TQ.
|
|
|
|
|
Explore dilaog[^] section on CP, check if you get any help there. I remembered reading some article of resizable dialog.
|
|
|
|
|
Your question is a bit unclear. Are you saying that a control on the dialog is larger than the dialog itself?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
when some drawing displayed in the custom control become vertically larger than the original size of the custom control(this happen maybe through zooming in), what should i do in order to enlarge the dialog and the custom control in the dialog box in order to be able to view the drawings without scrolling?
|
|
|
|
|
cyn8 wrote: control is bigger than the original size
How do you create them?
|
|
|
|
|
i add a custom control in the dialog using resource editor and registering it. It is CWnd generic based class.
|
|
|
|
|
I have placed cxSkinbutton on dialog with bmp on it.but it does not look like normal button that is i cant recognize the button is clicked or not.it just look like image.
plz help me.
|
|
|
|
|
ask the question in the forum at the bottom of the article
|
|
|
|
|
IF you want to use Bimap on a button you can of CBitmapButton
|
|
|
|
|
damn, won't you never read the other answers before posting ???
|
|
|
|
|
I've created a single dialog based application.
In the dialog box i am using a textbox.
Now i want to trap when Escape key pressed in the textbox.
When i press the Esc key the OnCancel virtual function of the CDialog called
which terminates the application.
Viral Joshi.
|
|
|
|
|
Doesn't the answer to your previous[^] thread satisfies your query.
|
|
|
|
|
viral_umang@hotmail.com wrote: I've created a single dialog based application.
In the dialog box i am using a textbox.
Now i want to trap when Escape key pressed in the textbox.
When i press the Esc key the OnCancel virtual function of the CDialog called
handle PreTanslateMessage virtual function
|
|
|
|
|
I have down loaded BinRes class from CP.
I am getting the following errors while compiling it.
--------------------Configuration: TestAllApp - Win32 Debug--------------------
Compiling...
TestAllAppDlg.cpp
d:\program files\microsoft visual studio\vc98\include\new(35) : error C2061: syntax error : identifier 'THIS_FILE'
d:\program files\microsoft visual studio\vc98\include\new(35) : error C2091: function returns function
d:\program files\microsoft visual studio\vc98\include\new(35) : error C2809: 'operator new' has no formal parameters
d:\program files\microsoft visual studio\vc98\include\new(36) : error C2061: syntax error : identifier 'THIS_FILE'
d:\program files\microsoft visual studio\vc98\include\new(37) : error C2091: function returns function
d:\program files\microsoft visual studio\vc98\include\new(37) : error C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,const struct std::nothrow_t &)' : overloaded function differs only by return type from 'void *(__cdecl *__cdecl op
erator new(void))(unsigned int)'
d:\program files\microsoft visual studio\vc98\include\new(35) : see declaration of 'new'
d:\program files\microsoft visual studio\vc98\include\new(41) : error C2061: syntax error : identifier 'THIS_FILE'
d:\program files\microsoft visual studio\vc98\include\new(42) : error C2091: function returns function
d:\program files\microsoft visual studio\vc98\include\new(42) : error C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,void *)' : overloaded function differs only by return type from 'void *(__cdecl *__cdecl operator new(void))(unsig
ned int)'
d:\program files\microsoft visual studio\vc98\include\new(35) : see declaration of 'new'
d:\program files\microsoft visual studio\vc98\include\new(42) : error C2809: 'operator new' has no formal parameters
d:\program files\microsoft visual studio\vc98\include\new(42) : error C2065: '_P' : undeclared identifier
Error executing cl.exe.
TestAllApp.exe - 11 error(s), 0 warning(s)
what could be the problem? Please help.
Thank u.
KIRAN PINJARLA
|
|
|
|
|
why don't you tell it to the author of the article direclty using the forum at the bottom of the article ?
|
|
|
|
|
Hello friends. I have a progam which needs to call different programs. So, if anyone of you know how to call different programs from a program during runtime, please do let me know....
Thank you(in anticipation)
MaliniNair
|
|
|
|
|
What about using ShellExucute or CreateProcess ?
-- modified at 4:31 Saturday 17th March, 2007
You may want to see similar thread[^] few days back.
|
|
|
|
|
Malini Nair wrote: So, if anyone of you know how to call different programs from a program during runtime, please do let me know....
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
# include "iostream.h"
# include "conio.h"
class baby
{
private:
int weight,age;
char name[20];
public :
int standard;
baby(int age, int weight, int standard):age(age),weight(weight),standard(standard)
{ }
baby(int age, int weight):age(age),weight(weight)
{ }
void get_name()
{
cout<<"\n \n Enter the name of the baby -> ";
cin>>name;
}
void show_data()
{
cout<<"\n \n The name of the baby is -> "<<name;
cout<<"\n="" \n="" the="" age="" and="" weight="" of="" baby="" is="" -=""> "<<age<<" &="" "<<weight<<"="" respectively";
="" }
};
class="" mybaby="" :="" baby
{
="" private:
="" int="" mybaby_age,mybaby_weight;
="" char="" mybaby_name;
="" public:
="" mybaby(int="" mybaby_age,="" mybaby_weight):mybaby_age(mybaby_age),mybaby_weight(mybaby_weight)
="" {="" }
=""
="" void="" get_mybabyname()
="" {
="" cout<<"\n="" \n="" the="" name="" of="" my="" baby="" -=""> ";
cin>>mybaby_name;
}
void show_mybabyname()
{
cout<<"\n \n The name of my baby is -> "<<mybaby_name;
cout<<"\n="" \n="" the="" standard="" of="" my="" baby="" is="" -=""> "<
|
|
|
|
|
I hate, if somebody ask to run code for him, and guess what problem he/she might be facing.
Its better to tell problem yourself.
|
|
|
|
|
|
Cedric Moonen wrote: ead this[^]
long time no see man! where are you
|
|
|
|