|
hello ,
Is there any documentation available for paige32.dll ??Is there any source code for this dll ???
Cause is my effort;
Effect is God's effort
|
|
|
|
|
Hi,
I have a listctrl on my PropertyPage and I fill the Control with data from my database. Now I want to display the entries with a line break.
Furthermore I want to have fix columns.
Can anybody help me?
Thank you
Julia
|
|
|
|
|
I have to use a control in doc/view mode, and I want to use the Create function to create a control's instanse, not in the dialog window mode, so I use the "add to projects\components and controls" menu add the control to the project, how can I use the Create function to create the control?
|
|
|
|
|
hello
im not sure if im clear on what your asking but have your tried use
if(!m_yourcontrol.Create())
{
}
under the doc or view mode depending on wich you need.
Jason Bird
|
|
|
|
|
I have to add a activex control into the project use doc/view, and the control must hide, so I want to use it as object or class, so I have to dymanic create it, the class wizard generate a class named like CSampleControl, and the interface of the control was generated as class' member function. I use the "new" operator create a control' instanse, when I use create function to create the control, the env throw exception and dump, so how can I do?
eg.
CSampleControl* control;
control = new CSampleControl();
control->Create( "", "", WS_CHILD, this, 1000 );
|
|
|
|
|
Hi
Parameters for Create function of you control depend on by
kind of you control.
But generally first parameters its
LPCTSTR lpszWindowName is name window of you control for instance for CommandButton its same Caption
DWORD dwStyle this style of you control for more see CreateControl() function in MSDN
const RECT& rect is rect in what you control appeared
CWnd* pParentWnd is parent window (window what will belong you created control)
UINT nID is handle of you control simple defined its as any
number in "resource.h" file of you object [this number must be vary from already used for resource handling]
Sorry for bad eanglish.
|
|
|
|
|
I have to add a activex control into the project use doc/view, and the control must hide, so I want to use it as object or class, so I have to dymanic create it, the class wizard generate a class named like CSampleControl, and the interface of the control was generated as class' member function. I use the "new" operator create a control' instanse, when I use create function to create the control, the env throw exception and dump, so how can I do?
eg.
CSampleControl* control;
control = new CSampleControl();
control->Create( "", "", WS_CHILD, this, 1000 );
|
|
|
|
|
Do you create this control on class method???
If yes where placed define you control and use new operator
If for instance you declared you control in some method of you class and after used new operator and create function then after exit from this method you recieve exactly you trouble.
I.e
bool YouClass::SomeMethod(){
CSampleControl* control;
control = new CSampleControl();
control->Create( "", "", WS_CHILD, this, 1000 );
return true;//exit from method and recived exception
}
Also you may not call AfxEnableControlContainer(); on InitInstaced method of you application
|
|
|
|
|
A control is placed on a dialog or form or... inside your doc/view classes you add some classes that contain information ABOUT the control. confused yet?
for example:
on your dialog you have a edit box, in the dialog class you'll need a CEdit member to obtain information about the edit control and it's contents. You don't need to call the create method!
If you wan't to dynamically create the controls see the controlyouwant.Create() for details
hope this helps...
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
I have to add a activex control into the project use doc/view, and the control must hide, so I want to use it as object or class, so I have to dymanic create it, the class wizard generate a class named like CSampleControl, and the interface of the control was generated as class' member function. I use the "new" operator create a control' instanse, when I use create function to create the control, the env throw exception and dump, so how can I do?
eg.
CSampleControl* control;
control = new CSampleControl();
control->Create( "", "", WS_CHILD, this, 1000 );
|
|
|
|
|
Classwizard generated classes are derived from CObject and support dynamic creation! If you look inside the class you should see that the default constructor is protected ! You can't create it with the new operator. You should make it a RUNTIME_CLASS and use CreateObject to create the control. Second you should initialize it with the Create() method.
exemple:
<br />
CRuntimeClass *pClass = RUNTIME_CLASS(CSampleControl);<br />
CSampleControl *pControl = (CSampleControl*) pClass->CreateObject();<br />
pControl->Create();<br />
the runtime class contains the RTTI (RunTime Type Information).
hope this helps
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
Hi there,
seems I've got a slight problem with a HTML control. I'm overriding the BeforeNavigate2 method, both for white listing sites and for disabling "_top" frame targets. The first one is working, but the latter one fails miserably...
Strangely, it never even gets the "_top" string into the "TargetFrameName" variable...
My code looks something like this:
void HtmlDlg::BeforeNavigate2(LPDISPATCH pDisp, VARIANT* URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers, BOOL* Cancel)
{
TRACE("TARGET -> %s\n\n", CString(TargetFrameName->bstrVal));
...
With a link like <a href="#" target="_top">, the TargetFrameName is completely empty, and accordingly I can't substitute something more reasonable later in the method...
Any idea why this happens?
|
|
|
|
|
Hi!
I just begin to learn programing in ATL to build a COM dll.
What i try to build is a image processing system.
There will be at least 2 class in this project. One call CImage to store the image data, another is CImageProcess will do some process on image.
So CImageProcess will take CImage as [in] or [out] parameter in the methods' parameter list.
i know the method exposed will be something like
STDMETHOD(AddNumbers)(/*[in]*/ long Num1, /*[in]*/ long Num2, /*[out]*/ long *ReturnVal);
But how do i write the method it take another COM object as input or output?
Is there any example on the web (a ATL project which involve several COM objects, and one take others as parameter)?
Thanks in advance!
|
|
|
|
|
Hi
You sould not use COM object as parameters of you interfaces(why so i dont realize yet but i many times ask similar question in diffrent forums and everywhere me suggest this).In a general sense because is not way of COM
passed parameters as COM object.
But althought you can do its simple defined methods of certain interface with parameters represented you COM object
for example:
[propget, id(0), helpstring("property GetObject")] HRESULT GetObject([out, retval] ComObject** pVal);
But prefectly use not object but interfaces of this object.
Sorry for bad eanglish
|
|
|
|
|
hello
this problem has been driving me insain cause no matter what i do nothing works
i have a CDialogBar docked to the left side of the mainfraim of a MDI application.
to the CDialogBar i Placed a CPropertySheet
and so far i only created on tab (wanted to make sure it wored before i designed everything)
and it all compiles and runs fine till i go to press one of the buttons on the PropertySheet tab then i get nothing. it acts like i never set any code up for the butten at all.
anyone have any sugestions?
Jason Bird
|
|
|
|
|
I am getting a pop-up error message which says, "NMSQL.DLL, This required file cannot be loaded, Please re-install Microsoft Visual C++" What does this mean?
Thanks
"The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson
|
|
|
|
|
It means that NMSQL.DLL cannot be loaded. It's more than likely just not there any more. Please re-install Microsoft Visual C++.
#include <beer.h>
|
|
|
|
|
I re-installed VC++ and it works fine now. I don't know where the file went, but IT'S BACK!
Thanks, Dave
"The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson
|
|
|
|
|
I'm trying to compile a Directx tutorial. The compiler says that it cannot find the D3dx8.h file, so I guess it's because I'm not linking to the D3dx8.lib library. I did a search on my system and the library is NOT there. So I installed Directx 9 (I already had version 8), hoping the file would come with it but it didn't appear in a new search. Where do I get the D3dx8.lib from?
Thanks, Dave
"The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson
|
|
|
|
|
I believe this is directx 8 stuff. You need the directx 8 SDK.
John
|
|
|
|
|
Thanks John,
I know where it's at on MSDN, I'll install it now.
"The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson
|
|
|
|
|
After you do this remember to add the include and lib directories to your directories settings in visual studio so that the compiler can find the SDK.
John
|
|
|
|
|
Thanks, I did as you said and it worked.
"The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson
|
|
|
|
|
i am trying to hide the window after the AnimateWindow function has been called however after the animation has taken place the window does not hide despite the call to ShowWindow(SW_HIDE) any ideas how i should do this. The code is as below
<br />
void CMyApplicationDlg::OnSysCommand(UINT nID, LPARAM lParam)<br />
{<br />
if ((nID & 0xFFF0) == IDM_ABOUTBOX)<br />
{<br />
CAboutDlg dlgAbout;<br />
dlgAbout.DoModal();<br />
}<br />
else if( (nID & 0xFFF0) == SC_MINIMIZE )<br />
{<br />
Shell_NotifyIcon(NIM_ADD,pNotifyIconData);<br />
<br />
AnimateWindow(m_hWnd,500,AW_HIDE | AW_SLIDE | AW_VER_POSITIVE);<br />
<br />
this->ShowWindow(SW_HIDE);<br />
<br />
}<br />
else<br />
{<br />
CDialog::OnSysCommand(nID, lParam);<br />
}<br />
}<br />
|
|
|
|
|
I had a similar problem a while ago with a Progress Dialog. The following made it work for me:
<br />
if (IsWindowVisible())<br />
{<br />
ShowWindow(SW_HIDE);<br />
ModifyStyle(WS_VISIBLE, 0);<br />
}
Never quite figured out why though
John Hudson
Its all right - I'll tell the therapist it was all your fault, maybe they won't turn the voltage up so high on the ECT machine this time
http://www.rainbow-innov.co.uk[^]
|
|
|
|