|
Either the cpp files contains the implementation should be included in you work space or provide the lib file in the linker->input (under project setting)
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
My Blog | Understanding State Pattern in C++
|
|
|
|
|
I have a project with UI language is English. I have to support french language for my project. I have 1 problem and i think you can help me. UI has done.
I have a problem: MessageBox. Buttons on the my MessageBox are OK - Cancel but in the French are OK - Annuler.
I using MB_OKCANCEL.
I have not solution for this problem (from OK-Cancel to OK-Annuler). Example
Please help me soon!
Thank you very much
Papai's
And please say me about PleaMessageBoxIndirect. with sample.
Thanks and I sorry to inconvenience.
Software Engineer
|
|
|
|
|
These buttons depends on the language installed for windows. So it is not dependent of your application but rather of the language of windows. If you install your program on a french windows, the buttons will be in french.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Oneway to is to define two string table one is for french and another one in english
see the sample snippet
#define LANG_FRENCH
CMyDialog::OnInitDialog()
{
CString strText;
#ifdef LANG_FRENCH
LoadString(ID_OK_FRNCH);
#else LANG_FRENCH
LoadString(ID_OK_ENG);
SetDlgItemText(IDB_OK,strText
}
remove the definition, if you wanna support english
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
My Blog | Understanding State Pattern in C++
|
|
|
|
|
try :-MessageBoxEx
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
Quick question:
Does anyone know how to invoke the Microsoft HTML Help workshop to compile a project from the command line? I feel like I'm being really dumb, but there seems to be a shortage of information on the subject.
Joel Holdsworth
-- modified at 8:31 Wednesday 28th June, 2006
|
|
|
|
|
|
Sorry yeah, but I actually want to compile a project from the command line, not just run the workshop
Joel Holdsworth
Want to give me a job this summer?
Take a look at my online CV
|
|
|
|
|
Joel Holdsworth wrote: Does anyone know how to invoke the Microsoft HTML Help workshop to compile a project from the command line?
I'm not sure if this is the only way, it is the only way I found that semi works.
Create help project using the worthless HMTL Help Work Shop,
Add all of the needed files to it.
Command line
Cd C:\Program Files\HTML Help Workshop>
C:\Program Files\HTML Help Workshop>hhc.exe <path to="" *.hhp="" file="">
The only option that I found was verbose output.
To compile a hhp file from VS 6
Add the hhp (HTML Help Project) file your VS workspace.
Click "Project"
Scrol down to "Project Settings"
Change "Settings" drop down box to "Win32 Release"
Locate the "*.hhp" file
Select Custom Build in the right hand tab, add the following to the "Commands" edit box
start hhc.exe hlp\$(InputName).hhp
if errorlevel 1 goto :Error
if not exist "hlp\$(InputName).chm" goto :Error
copy "hlp\$(InputName).chm" $(ProjDir)
copy "hlp\$(InputName).chm" $(OutDir)
goto :done
:Error
echo hpp\$(InputName).hhp(1) : error:
type "hhp\$(InputName).log"
:done
and this to the "Outputs" edit box
$(OutDir)\$(TargetName).chm
$(WkspDir)\$(TargetName).chm
Joel Holdsworth wrote: I feel like I'm being really dumb, but there seems to be a shortage of information on the subject.
Don't feel that way, there is an incredible lack of docos on this topic.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Hey thanks, that's really helpful!
Joel Holdsworth
|
|
|
|
|
Joel Holdsworth wrote: thanks
Your welcome.
Personally I compile my help files with the release builds. Save a few of my hairs from going gray (as a result of using HTML Work Shop Crap wear).
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
hi,
when i build my proj i got the error
playfile.obj : error LNK2001: unresolved external symbol _IID_IBasicVideo2
how to resolve this
regards,
gansjob
|
|
|
|
|
You hqve to link with the appropriate library in which this symbol is defined.
Go in the project settings, linker tab, input category and add the library name in the 'Additional Dependencies' option.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
but i don't know which lib to link
|
|
|
|
|
|
From where are you using this thing ? If it in the MSDN then there is a descrption of which library is required to be linked to.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Hi all,
When i'm satisfied of my application,
what should i do in order to create an installation
package so that others can install my application ?
Thanx in advance,
Desmo16.
|
|
|
|
|
use any tools to create installation and u can give it others
ex: install pro
Trinainee
|
|
|
|
|
is there an ambedded function inside visual studio .net to do that ?
|
|
|
|
|
sorry, i don't know about that but i used install pro software to create installation package
Trinainee
|
|
|
|
|
|
Hi,
I use Nullsoft Scriptable Install System (http://nsis.sourceforge.net).
You can also use it to pack commercial applications for free
Cheers,
Ramon
|
|
|
|
|
hey guys......
In my proj,
I have a form view page(say, "Form1") with various controls. On clicking a tool bar(say, "New dialog") control , a new dialog page pops/opens up.
and On opening this new dialog page, i want the edit controls in that dialog page to be updated with some values.
how do i do this?
if I do
#define WM_INFO WM_USER+10
I understand these are private messages, but
how and when does the message gets passed on to the respective message handlers? will this help in doing the above.
I create ON_MESSAGE(WM_INFO, OnUpdateInformation) in the cpp file
but how does it work?
Can anyone help please?
thanks in advance.
|
|
|
|
|
I think you can do the filling of edit box with values in OnInitDialog function. that is the best way.
Messages are using for notification with parameters(LPARAM,WPARAM).
You can use SendMessage or PostMessage to invoke that application (see MSDN for difference between PostMessage and SendMessage).
e.g
#define SHOW 1
#define HIDE 0
ON_MESSAGE(WM_INVOKE_CHILD, OnInvokeChild)
OnInvokeChild(WPARAM wParam, LPARAM lParam);
{
if(SHOW == wParam)
m_childWnd->ShowWindows(SW_SHOWNORMAL);
else(SHOW == wParam)
m_childWnd->ShowWindows(SW_HIDE);
}
you can use either param to pass the values
See MSDN for more information.
http://msdn2.microsoft.com/en-us/library/0812b0wa.aspx[^]
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
My Blog | Understanding State Pattern in C++
|
|
|
|
|
Use ClassWizard (Ctrl+W) to create a CEdit member variable for each of the edit controls. In the dialog's OnInitDialog() method, call SetWindowText() with each CEdit -derived variable.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|