|
With <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/mmfunc_6mhx.asp">waveOutSetPlaybackRate</a> ?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
please help me all step to create my button with own draw
thanks!!!
|
|
|
|
|
there are many owner drawn buttons on this site. look around and find one that looks good.
-c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
|
how can i insert contents in to the HELP of my sdi project.
looking forward from all the gurus of code
|
|
|
|
|
how can i add help feature in my sdi project
looking forward from all the gurus of code
|
|
|
|
|
you can use HTML Help Workshop (which you can download from Microsoft web site) to create the in-fashion *.chm help file. Then in your code, you can just use ::HtmlHelp(this->m_hWnd, helpname, 0, HH_DISPLAY_TOPIC); to display your help.
remember to link with htmlhelp.lib, and include <htmlhelp.h> in file "StdAfx.h".
|
|
|
|
|
hello!i want to code my own favorits administration program!it should look like the original favorits; a treeview on the left side of the ie window and an additional menu bar on the lower side of the window to administrate my favorits!this prggie is nearly written but i dont how to integrate this into the internet explorer!
i'll appreciate every answer!!!
|
|
|
|
|
I think you have to make a inproc server dll and register it in IE
see an example : http://www.codeguru.com/net_general/DOMTree.html
|
|
|
|
|
I work with VStudio 6.0 Student edition. SP5
Well, it is not a problem to compile a hello application,
either command line or from the ide. It even is not a
problem to compile reversi, a c source.
But when i try to build flip3d or scribble, the build
either reacts by:
system beep
folowing messages:
--------------------Konfiguration: flip3d - Win32 Debug----
----------------
Microsoft (R) Program Maintenance-Dienstprogramm: Version
6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. Alle Rechte
vorbehalten.
or for scribble with a system beep and
the following messages:
Temporäre Dateien und Ausgabedateien für "Scribble - Win32
Debug" werden gelöscht.
--------------------Konfiguration: Scribble - Win32 Debug--
------------------
Building help file...
after these messages MSDEV still works with six threads.
What is my problem?
Lack of memory? I have got 512 Mb DDRam and a SIS 735 1,4
Ghz Athlon system.
Some ressources missing?
I have got nothing spectacular on my system.
By the way i have got an old Toshiba Laptop 150Mhz Pentium
system with 32 MB, i have got the same problem for scribble
there.
a further case on my desktop system:
After downloading a huge project from the internet i have
encountered the same problems with building the project.
After adjusting include paths the system compiles
all the source files. Then the system comes to the
point to build the dependencies.
And there it hangs up. Again, six threads are working.
And i can just stop MSDEV by either killing the process or
using ctrl alt del.
So whats the problem, how can i detect it and how can i
solve it?
.
|
|
|
|
|
I tried F1 for MSDN help on
GetadoEOF () for a recordset and there were no entries. I looked at msado15.tli and found:
inline VARIANT_BOOL Recordset15::GetadoEOF ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_adoEOF(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
but cant decipher what this is doing? Its end of some file but which file? The web didnt offer any insight either though its used a lot. How does one figure out what these things are. Recommend a good basic , friendly ADO book?
Is this ADO stuff MFC or is it generic and we just happen to use it in an MFC project?
Thanks,
ns
|
|
|
|
|
ns,
ADO (Active Data Object) is not MFC.
Microsoft have many ADO examples to assis VC++ developers.
Good luck,
Alex
|
|
|
|
|
Maybe this link[^] will help.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I want to ask about how to use startdoc(), startpage() to print data on paper imediately then receive the next data and print imediately and receive the next data and print ......
Example : If I want to print this below data in first page imediately and after that I receive the other data and print imediately not like Microsoft word which must receive all data and print 1 time.
110011110
How to do that loop?
This below is my program want to do that.
If first data is 110011110
I change 1 in the above data to solid black (which have 2 pixel width and 4 pixel height) and 0 in the above data to solid white (which have 2 pixel width and 4 pixel height)
code:
------------------------------------------------------------
DOCINFO di ;
CPrintInfo printInfo ;
CString filename ;
CDC dc ;
CRect draw_area ;
CPrintDialog dlg(FALSE) ;
if (Dlg.DoModal() == IDCANCEL)
return ;
HDC hDC = dlg.GetPrinterDC() ;
if (hDC == NULL)
return ;
di.cbSize = sizeof(DOCINFO) ;
di.lpszDocName = "Document name"
di.lpszOutput = NULL ;
// prepare the print information structure
dc.Attach(hDC) ;
printInfo.m_bDirect = TRUE ;
printInfo.m_rectDraw.left = 0 ;
printInfo.m_rectDraw.right = dc.GetDeviceCaps(HORZRES) ;
printInfo.m_rectDraw.top = 0 ;
printInfo.m_rectDraw.bottom = dc.GetDeviceCaps(VERTRES) ;
draw_area = printInfo.m_rectDraw ;
dc.StartDoc(&di) ;
//receive first data
CString testline = "110011110" ;
int x = 0 ;
int y = 0 ;
int pos = 0 ;
// start printing the document
dc.StartPage() ;
CBrush brush;
// Creation of the brush with a black color
brush.CreateSolidBrush(RGB(0, 0, 0));
while (pos < testline.GetLength())
{
if ((testline.GetAt(pos)) == '1')
{
// Create a rectangle with coordinates x,y,x+2,y+4 corresponding with top, left, bottom, right
CRect Rectangle(x, y, x + 2, y + 4) ;
// Fill a rectangle in the current device context or DC
dc.FillRect(&Rectangle , &brush);
x += 2;
}
else if ((testline.GetAt(pos)) == '0'){
x += 2;
}
pos++ ;
}
y += 4 ;
x = 0 ;
pos = 0 ;
dc.EndPage() ;
printInfo.m_rectDraw = draw_area ;
//OnEndPrinting(&dc, &printInfo);
dc.EndDoc() ;
VERIFY(dc.DeleteDC()) ;
------------------------------------------------------------
|
|
|
|
|
Or if you can show me the example how to print
text 1001010 in first page imediately and then receive the second data 1011111 and print in second page imediately and receive the next data and print. Please show me ( by use startdoc(), startpage() , endpage(), enddoc())
Thank you
|
|
|
|
|
I'd like to remove the CTabCtrl from a property sheet. Currently, I make it not visible, but I need to determine the size of the CTabCtrl in the property sheet to adjust the property pages accordingly. Otherwise, there's ugly space around it.
FYI: I'm using this approach as I use the property pages in a normal property sheet at times in addition to a "netscape'ish" property sheet.
|
|
|
|
|
If you already have a pointer to the tab control (possibly with GetTabControl ), GetWindowRect should return its dimensions. Then you can displace the remaining controls upwards in the OnInitDialog of the sheet just like this:
CWnd *pWnd=GetWindow(GW_CHILD);
while(pWnd!=NULL){
CRect rect;
pWnd->GetWindowRect(rect);
rect.OffsetRect(0,-tabHeight);
ScreenToClient(rect);
pWnd->MoveWindow(rect,FALSE);
pWnd=pWnd->GetNextWindow();
}
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
I've been staring at this problem for hours and hours... what is wrong?!
This is what I do:
...snip...
CComModule _Module;
BEGIN_OBJECT_MAP(ObjectMap)
OBJECT_ENTRY(CLSID_Lex, CLex)
END_OBJECT_MAP()
extern "C"
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID )
{
if (dwReason == DLL_PROCESS_ATTACH)
{
TCHAR pszLoader[MAX_PATH];
GetModuleFileName(NULL, pszLoader, MAX_PATH);
_tcslwr(pszLoader);
if (_tcsstr(pszLoader, _T("explorer.exe")))
return FALSE;
_Module.Init(ObjectMap, hInstance, &LIBID_LEXBHOLib);
DisableThreadLibraryCalls(hInstance);
}
else if (dwReason == DLL_PROCESS_DETACH)
_Module.Term();
return TRUE;
}
...snap...
I get this error:
---Configuration: LexBHO - Win32 Unicode Release MinDependency--------
Linking...
Creating library ReleaseUMinDependency/LexBHO.lib and object ReleaseUMinDependency/LexBHO.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseUMinDependency/LexBHO.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
LexBHO.dll - 2 error(s), 0 warning(s)
But when I comment these lines out...
...things are working just fine. What is wrong with _tcslwr? Because that's where the problems start...
Help is much appreciated,
/Tommy
|
|
|
|
|
Ummm... the configuration you have selected (MinDependency) does not link the C run-time library to save space on the final DLL. So, you cannot use any of the functions provided by this library (like vg. _tcslwr ). Either change the configuration or avoid calls to the C run-time library.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
No, that's not it, but thanks anyway... I have another project that builds with this piece in ReleaseMinSize. That's what's making this thing so strange! What else can make it behave like this?
/Tommy
|
|
|
|
|
(Another shot in the dark) Seems like LIBCRT thinks is being linked against a console program instead of a DLL. Check the /subsystem directive in the linker part of the project settings.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Under your project settings, make sure that you have chosen one of the "Using MFC" options.
(IE. "Using MFC in a shared .dll" or "Using MFC in a statically linked .dll")
|
|
|
|
|
No, it works with a project I have and there's no MFC at all. And there shouldn't be!
It must be something else!
Mail me and I'll send the project to anyone who wants it!
/T
|
|
|
|
|
I had the same problem :
- put an empty main funxion somewhere to keep the linker happy
- don't use LIBC funxions
- tell me if you find another solution
|
|
|
|
|
This is a famous one. It is cause by _ATL_MIN_CRT preprocessor definition. Look here[^] for details.
Vagif Abilov
MCP (Visual C++)
Oslo, Norway
If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them.
Jack Handey, Deep Thoughts
|
|
|
|