|
typedef DWORD (*GETNGLYPHS)(HDC hdc,LPCTSTR lpstr,int c,LPWORD pgi,DWORD fl);
GETNGLYPHS GetGlyphIndices =
(GETNGLYPHS)GetProcAddress(LoadLibrary("gdi32.dll"), "GetGlyphIndicesA");
.
.
.
GetGlyphIndices(hdc,save_chrs,sg_cnt,save_glyphs,1);
|
|
|
|
|
Force Code wrote: typedef DWORD (*GETNGLYPHS)(HDC hdc,LPCTSTR lpstr,int c,LPWORD pgi,DWORD fl);
generic Text data type and linking to ANSI version API.
Force Code wrote: (GETNGLYPHS)GetProcAddress(LoadLibrary("gdi32.dll"), "GetGlyphIndicesA");
can cause problem if unicode build.
|
|
|
|
|
how to restrict textbox so that it takes input only between
given numbers i.e. 1-100
Rajesh
|
|
|
|
|
Why you dont set Min/Max value for editbox?
After set these parameters you will be have this line:
DDV_MinMaxInt(pDX, m_Test, 0, 100);
|
|
|
|
|
how can I do I could not found any funtion or property of edit control to set these value .
Rajesh
|
|
|
|
|
check it in DoDataExchange Function
DDX_Control(pDX,IDC_EDIT,m_Test);
u can find something like this(example). just after this put the below written code.
DDV_MinMaxInt(pDX, m_Test, 0, 100);
|
|
|
|
|
You must be right click on the control and select Add variable and then set Category to Value now you can set Min/Max values.
|
|
|
|
|
|
rajeshgupta1253 wrote: how to restrict textbox so that it takes input only between
given numbers i.e. 1-100
Spin button control[^] exists for this purpose.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
my requirement is edit box not spin control
Rajesh
|
|
|
|
|
What you want is not what you need.
Is there a reason why you would want to use the edit control only?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Are you using MFC? Do you want the numbers validated as they are typed, when the edit control loses focus, or when the OK button is clicked?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i am using SMTP mail in my application. i would like to send a mail to others without "From Email:" address. i.ei want to send a mail from application as warning to the customer to the email id given by him..
|
|
|
|
|
Have you seen here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have developed C# web service.
Client Applications are developed in
VB.Net ,
VC++.net (unmanaged code )
VC++ 6.0 (win32 console Application)
All client applications able to connect and call the webservice except Vc++ 6.0 client.
VC++ 6.0 Console client is using Soap methods by calling mssoap30.dll and msxml4.dll
I am always getting soap error.
Please provide a solution for this.
|
|
|
|
|
hi....
I am reading a mails and getting a mailCount of different users..Now i want a total count of all users plz help me..
I am trying this
////////////////////////////////////////////////
CString MailCount;
MailCount.Format("Mails are %d",linfo->ACL_STMAIL[0].iMBUserMailCount);
AfxMessageBox(MailCount);
/////////////////////////////////////////
I am getting output as...MailCount is count of mails for different users
23
12
4
5.
I am not getting the total...result
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
What's your question about? Aren't you able to sum up numbers?
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
|
|
|
|
|
Hi,
In my application, I am creating an MSChart control dynamically like this:-
CMSChart *m_pChart = new CMSChart();
m_pChart->CreateControl(m_pChart->GetClsid(),EMPTY_STRING, WS_TABSTOP, CRect(0,0,0,0), pParent, nCtrlID);
On development environment( in which Visual Studio 6.0 is installed), the MSChart control is creating successfully(CreateControl() returns true).
But on testing environment( in which Visual Studio 6.0 is not installed), the CreateControl API returns FALSE.
Please let me know what must be the problem.
Thanks.
modified on Thursday, May 22, 2008 12:12 AM
|
|
|
|
|
I moved this to the C++ forum for you, please never ask programming questions in the lounge again.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You probably need to install VCRedist.exe on your testing environment. You can ship it with your installer as well.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: You probably need to install VCRedist.exe on your testing environment.
For VC6 ?
It seems also that the problem is somewhere else because the CreateControl function fails, which implicitely means that he is able to start the application successfully.
|
|
|
|
|
OK 5 - I overlooked this one.
[add] Probably because vcredist is the first thing I suggest, when someone says my Visual C++ program works on my machine, but not on the client's. [/add]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
modified on Thursday, May 22, 2008 2:38 AM
|
|
|
|
|
You will also need to copy and register the chart activeX control on the target platform (I guess it is distributed as an ocx right ?)
|
|
|
|
|
hello everyone,
I encounter a technological problem about how to control the copied file origin.
Example, i have a file named aa.txt, it localed on disk C.Then i drag it to disk D,or i copy it to Disk D using Crtl+C, Ctrl+V. Now is there any method to let me know aa.txt from Disk C.
If anyone has a technological plan to help to resolve the technological problem,can contact in Email .xianfeng.dl@gmail.com
Regards & Thanks
|
|
|
|
|
You Can Use CopyFile() or MoveFile() win32 API for this purpose. See MSDN for Detail...
If it doesn`t work let me know..
|
|
|
|