|
ya currently i have implemented this technique. But this message arrive after the WM_SHOW message has arrived. So some times we can see the font changings( i.e The edit control becomes visbile with actual font and the suddenly it font change.)
Thanks nibu
nave
|
|
|
|
|
|
no
i followed the step as explained below
1)Create a dialog based application
2) Derive a class from CEdit say MyEdit
3)In the MyEdit::PreSubclassWindow(), set the font.
4)Place button in the dialog and add function for it say OnButton1().
5) inside OnButton1, write
MyEdit *pEdit = new MyEdit;
PEdit->Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,100),this,1); // here the exception occurs
nave
-- modified at 22:11 Wednesday 15th March, 2006
|
|
|
|
|
Hi all,
I have 2 build errors with no solution to and was wondering if any of ou could help me with.
The first is ----MM error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
The second ----MM fatal error LNK1120: 1 unresolved externals
All suggestions welcomed. Thanks
|
|
|
|
|
Set wWinMainCRTStartup as the applications entry point
Steps in VS 6 to set the enrty point
project->Settings->Link
in the category combo box select output.
then in the Entry point edit box enter wWinMainCRTStartup
i don't know if this is same for VC7
nave
|
|
|
|
|
Change the subsystem to WINDOWS .
This is how we change it...
Project
--Project Properties
---Configuration Properties
----Linker
-----System
------SubSystem -->Change this to Windows (/SUBSYSTEM:WINDOWS)
Nibu thomas
Software Developer
|
|
|
|
|
Can you modify WinMain to _tWinMain
int APIENTRY _tWinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow
)
{}
This happens because of UNICODE compilation...
Nibu thomas
Software Developer
|
|
|
|
|
Nibu thomas wrote: Which version of VS are you using...
it is in the title... VS7
|
|
|
|
|
tks for your help....it does work!!
Regards...
|
|
|
|
|
|
Tks for your suggestion, but the settings is already as you indicated. Is there any other solution you think might help.?
|
|
|
|
|
Did you make sure you included the appropriate files into your solution? You can get linker errors if you happen to forget to include the appropriate files (to your solution,) or if you forget to add the appropriate libraries to the properties tab in your project. Make sure those are correct since that has caused me some time in debugging.
BR
|
|
|
|
|
hi all
i m using visual studio.net for mfc applications. i had inserted the activex conroll named microst forms label 2.0. when i run the application it is not visible. i checked its visible and enable properties which r true.
i tried to insert other controlls those are visible but this particular activex controll is not visible it gives no error.
ddd
|
|
|
|
|
do you create it dynamically (at runtime) or with the resource dialog designer (placing custom control) ?
if doing at runtime, have you correctly called .Create() ?
|
|
|
|
|
Is this a dialog based application? verify that you have called AfxEnableControlContainer() in your application's InitInastance Method
see this article in MSDN "ActiveX Control Containers: Manually Enabling ActiveX Control Containment"
dont forget to include "#include <Afxdisp.h>"
hope this work
Azam
|
|
|
|
|
i'm not the one who asked the question
|
|
|
|
|
i had placed drag and drop controll(placing controll).
ddd
|
|
|
|
|
|
Is this a dialog based application? verify that you have called AfxEnableControlContainer() in your application's InitInastance Method
see this article in MSDN "ActiveX Control Containers: Manually Enabling ActiveX Control Containment"
dont forget to include "#include <Afxdisp.h>"
hope this work
Azam
|
|
|
|
|
that is called in the initinstace method. when i used other controll they aer display but specifimc microsft form control 2.0 is not displayed.
ddd
|
|
|
|
|
dear all,
as title, I tried to extract(get) icon from Dll or exe or ico,
then I put then on the window by DrawIco. It looked great.
but when I saved it to a icon file(c:\temp\xxx.ico).
It looked very worse --> blurred and ugly.
Experts, please help me , thank you very much.
Best Regard.
Bill
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/vcsmpiconpro.asp
maybe it is some helpful to you
|
|
|
|
|
Dear WhiteSky,
Thank you for your help. I used the sample program to extract Icon from Dll or exe, that's great!! Now I am tracking the source code.
B.R
Bill Lin
|
|
|
|
|
I glad that you find your answer
Have a nice day
|
|
|
|
|