|
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
|
|
|
|
|
Hi Alok !
I don't think it's been soo long
But anyway, maybe I don't reply much because I have much more things to do (both in and out work).
And what about you ?
|
|
|
|
|
Since you have not described your problem, my gues on seeing your code is that you should have a default constructor in the baby class.
|
|
|
|
|
yes exactly ur guess is absolutely right. the error being issued is ->> cannot find default constructor to initialize base class 'baby' in function mybaby::mybaby(int,int).
as i am new to inheritance technicalities can u plz tell me how to fix this issue and why did it came up ? ? plz !!
Thank you.
|
|
|
|
|
LRESULT CHttp::OnPingLogMessage(WPARAM wparam, LPARAM lparam)
{
CString* pLogMessage = (CString*) wparam;
int u = (int) lparam;
CString result_val = *pLogMessage;
if(result_val.Find("-") <= -1)
m_Main_List.SetItemText(u,7,*pLogMessage);
return UpdateData(FALSE);
}
I have made this function and called it through SendMessage() which is made in class derieved from CWinThread.What I m trying to do with this function is trying to print different values in different rows at same time...
but same value is displayed in all selected rows............
Can anybody help me in this....
Thanks in advance
|
|
|
|
|
use that bloody <pre></pre> tags to post code samples !!!
|
|
|
|
|
Hi:
if I want to use vc to visit a web site which need password and username,if I want to get a certain page after i visit above page,
I don't know how to do it.
deeply expain my above question:
first page ------the page need i type username and password
second page -------the page need i must visit first page .
for example: I want to visit my Email.
please help me ,thanks!
online-waitting!!!!!!
|
|
|
|
|
Hi!
I've created a single dialog based application in which i am using
flexgrid control.I am using textbox in the cell of flexgrid for writing.
the textbox in the cell is the object of class "MyEdit" which extends CEdit.
I've trapped the enter key pressed in the textbox.
Now I want to tell the dialog box class when enter key pressed in textbox which is the
object of class "MyEdit" so that the dialog class moves the textbox in next cell same
thing as we do in excel.
Thanks in Advance!
Viral Joshi
|
|
|
|
|
Hi,
I wrote an SDI application,drew a rectangle in the view.When i click print,a dialog is appeared,in that there is an option print to flile,i have entered sample.pdf ,then clicked apply button,next clicked print button.sample.pdf file is generated.But i want this be done automatically,i mean the dialog should appear.Is there any way to do it..??Please free ask me,if the question is not clear.
Thanks in before
James
|
|
|
|
|
See PD_PRINTTOFILE of PRINTDLG Structure
|
|
|
|