|
|
I gets the errors:
--------------------Configuration: dll1 - Win32 Debug--------------------
Compiling...
dll1.cpp
Generating Code...
Compiling...
Dlg1.cpp
C:\Windows\Desktop\dll1\Dlg1.cpp(19) : warning C4273: 'CDlg1::CDlg1' : inconsistent dll linkage. dllexport assumed.
C:\Windows\Desktop\dll1\Dlg1.cpp(28) : warning C4273: 'DoDataExchange' : inconsistent dll linkage. dllexport assumed.
C:\Windows\Desktop\dll1\Dlg1.cpp(36) : warning C4273: '_GetBaseMessageMap' : inconsistent dll linkage. dllexport assumed.
C:\Windows\Desktop\dll1\Dlg1.cpp(36) : warning C4273: 'GetMessageMap' : inconsistent dll linkage. dllexport assumed.
C:\Windows\Desktop\dll1\Dlg1.cpp(36) : warning C4273: 'protected: static struct AFX_MSGMAP const CDlg1::messageMap' : inconsistent dll linkage. dllexport assumed.
C:\Windows\Desktop\dll1\Dlg1.cpp(36) : error C2491: 'CDlg1::messageMap' : definition of dllimport static data member not allowed
C:\Windows\Desktop\dll1\Dlg1.cpp(36) : warning C4273: 'private: static struct AFX_MSGMAP_ENTRY const * const CDlg1::_messageEntries' : inconsistent dll linkage. dllexport assumed.
C:\Windows\Desktop\dll1\Dlg1.cpp(36) : error C2491: 'CDlg1::_messageEntries' : definition of dllimport static data member not allowed
Generating Code...
Error executing cl.exe.
dll1.dll - 2 error(s), 6 warning(s)
|
|
|
|
|
classes are not exported from DLL's like this.
try
class AFX_EXT_CLASS CMyDialog:public CDialog
then the lib of this dll goes into ur project and the .H file of the dialog too. then try using the object.
|
|
|
|
|
|
Give me Your email address, (You can send me via email - TeamMukippe@wp.pl / TeamMukippe@poland.com ) and I'll send You sources of working project (exe-dll pair)
|
|
|
|
|
Hi ,
As I am new to WEB, can some one tell me how can I write
an ActiveX to call a Javascript/VBScript function in HTML
in MSIE .
Thanks and Regards,
SanskyPotov
|
|
|
|
|
Hello!!
Can anybody tell me how can I discharge a Battery quickly on a LapTop... Can a graohics application with complex calculations discharge a battery or can playing a Video CD help in discharging the battery at a quick rate..
Please advise..
Sandeep
|
|
|
|
|
I would go for the vidio CD. The CD drive uses a lot of power, and the vidio uses a lot of processor, and then power...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
I want to save a mediaplayer(ActiveX control)Frame into a bitmap file.
How can I do that?
Windows98 SE, VC++ 6.0 SP5
|
|
|
|
|
Hi.
I think You most Use Screan's Bits.(Read Color of Dialog's Pixel)
Iman Ghasr-e-fakhri
|
|
|
|
|
I suspect you'll find grabbing a screen DC won't do it, because I know I've tried in an attempt to capture web movies, to no avail.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
One efficient way to do this (I'm sorry I shouldn't use the word "effcient" because it carries out endless debates ).
One way to do this is through a custom based COM filter using DirectShow (now completely integrated in DirectX 8.x). If you are planning to use this as a one time tool, you could avoid the code involved in plugging the filter into the GraphFilter of DirectShow and use the GraphEditor instead.
The filter needs to get a stream input of the sample video in order to create the file that you want (i.e. bitmap). For instance,
//
// Copy the input sample into the output sample
// Then transform the output sample 'in place'
//
HRESULT MyFilter::Transform(IMediaSample *pIn, IMediaSample *pOut)
{
HRESULT hr = Copy(pIn, pOut);
if (FAILED(hr)) {
return hr;
}
return Transform(pOut);
} // Transform
//
// Create a bitmap from source and let dest be identical
// in order to continue the process (playing).
//
HRESULT MyFilter::Copy(IMediaSample *pSource, IMediaSample *pDest) const
{
...
}
There is much more work involved in developing a DirectShow filter. I hope this help you out.
|
|
|
|
|
I installed .Net,and I found the component writed with VB was correct while debug step by step,then I make the dll.But it does not work correct.(In one method of this component ,I called one function of another dll just for unzip files.)
If this is caused by .net?
sandos
|
|
|
|
|
How can inform a ActiveX control move it's input focus to other control when a events occur? i use the fellow function :
SendMessage(WM_KEYDOWN,VK_TAB,0);
but it doesn't act
|
|
|
|
|
Try call keyb_event(...) with tab key code.
|
|
|
|
|
Hi.. I would just like to inquire...
how do i use the "OnLButtonDown" of a picture control...
I placed a picture control in a form and attached a variable name m_bmp for the control..
and there seems to be a "m_bmp.OnLButtonDown(.." --- how do i use this function
BaseClass:CFormView
Control: Picture Control
Thanks a lot...
|
|
|
|
|
By deriving a class from the picture control ?
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Hello everybody,
In a program i need to change the style of a ComboBox (Using Win32 SDK in ATL) from CBS_DROPDOWN to CBS_DROPDOWNLIST (either way). I tried using SetWindowLong() and ModifyStyle(), but failed in both the ways and failed to get what i want. If anybody knows plz help me. Even i tried with subclassing.
Thanx in advance.
|
|
|
|
|
I think you'll have to re-create the combo - you can't change these styles at runtime. Save the control ID and position, then call DestroyWindow and Create with appropriate styles.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I want to know why the results of debug version and release version are not identical when using VC++? (My program has no memory leak.)I set 4 level-warning in project settings,and I am sure that all the variables are initialized,but some results aren't the same slightly,for instance:"Waist=75.620499,Knee=36.650490 "in release version and "Waist=75.630901,Knee=37.181105" in debug version.I suspect if the problems consist in float type,thanks for any help.
|
|
|
|
|
Check out Surviving the Release version.
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
I have an appwizard generated SDI app. The one and only change is that my CView is a CHtmlView. The code generates an exception in the 2nd iteration of CHtmlView::OnSize() - so the program crashes immediately. I have a clean windows 2000 SP2 installation, visual studio 6 SP6 and IE5.5.2. Thought it might be a problem with whatever dll contains CHtmlView so I have tried reinstalling IE, etc.
I'm going nuts. Anyone got any ideas?
|
|
|
|
|
Hi there, reader of this message! The problem is this piece of code. I'm using MFC and using the resource manager I've drawn a bitmap button in a dialog box and using class wiz I assigned it, the name m_button. I've put this piece of code in OnInitDialog:
CBitmap bitmap;
bitmap.LoadBitmap(IDB_TREE);
hBitMap = (HBITMAP)bitmap;
m_button.SetBitmap(hBitMap);//IDB_TREE is a 16 mil col btmap, but I tried with 256 and still doesn't work. The code compiles but there is no effect. The button is as dull as always, there is no picture upon it nor any text(shouldn't be any text). I'm sure there is a simple answer, so great computer genius, would u be so kind as pointing me to it? Many thanks and happy prog!
To live in truth!
|
|
|
|
|
First of all, operatorHBITMAP is defined for CBitmap, so you can pass a CBitmap where a HBITMAP is expected. I think from memory you need to set the bitmap button to be owner drawn though. I always use AutoLoad for bitmap buttons, you create the bitmaps as resources and name them with quotes like this "ImageOne" "ImageOneX" etc. Then the caption on the button needs to be "ImageOne", and you call autoload, and get up to four bitmaps loaded ( up, down, disabled, and I forget the fourth ).
Look up Autoload in the MSDN, you'll probably find it's a better option.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Your CBitmap object goes out of scope after OnInitDialog() returns, which destroys the bitmap object. Move the CBitmap object to a member variable.
--Mike--
http://home.inreach.com/mdunn/
You are the weakest link, GOODBYE!
|
|
|
|