Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mirr2001

  1. mirr2001

    Sending global mouse messages to one window

    For Controlling global messages I have written a small dll file which I use in my app. The header is like this (dont pay attention to the comments): [/code] #pragma once #ifndef INPUT_CTRL_H #define INPUT_CTRL_H #include <windows.h> #include <atltypes.h> #ifdef __cplusplus extern...
  2. mirr2001

    Sending global mouse messages to one window

    Thx. I haven't really thought about that quite simple solution (guess I was blind after a 100 tries). Btw. the feature is not meant to harm users. I program kinda juke-box for parties. This feature can be turned on by the admin (with pass) so no stranger can f*** up his computer but only control...
  3. mirr2001

    Sending global mouse messages to one window

    Hi, I have a question that I hope can be answered in this forum. What I want is quite simple to explain: I want global mouse messages (especially WM_LBUTTONDOWN, RBUTTONDOWN and DBLCLK) to be blocked and if they are over my app-window to be sent to it. What I want to achieve is to block people...
  4. mirr2001

    Memory leak with CDC?

    I am currently working on an ActiveX control, which shall write strings on the screen. Every letter is represented by a CBitmap (about 10*12 px * 16 colours) object. Every letter is a member-variable (CBitmap letterA, letterB...)and is initialized in the constructor (LoadBitmap(ID)). Then all...
  5. mirr2001

    Retrieving Dialog Controls?

    Besides: I know the code is not written, as a code should be written (everything public etc.)
  6. mirr2001

    Retrieving Dialog Controls?

    If you can do this depends a bit upon your code structure. You could do it this way (but I'm not sure): /////////////////////////////////////////////////////// CYourFirstDlg: public CDialog { //initialisation CDialog* pSecondDlg; //CDialog because the code does not know CYourSecondDialog by now...
  7. mirr2001

    How to render .X files in VC++(.Net) and DirectX 8.1

    Can anyone help me with this problem: I just want to show a .X file (object) on the screen. Ererythings initialized so far (light disabled). In every resource I found I am told to use the CD3DFile class, but these resources referred to DirectX 7. I found the D3DFile.cpp and .h files in the...
  8. mirr2001

    How to change paper orientation?

    I have tried it your way, but it didn't really work. But although I found a quite simple solution (which included GlobalLock and GlobalUnlock): In the InitInstance() from CMyApp I added this after &quot;CWinApp::InitInstance()&quot; : PRINTDLG pDdlg; PRINTDLG pDdlg...
  9. mirr2001

    need 4 computers to interact, don't know means for that

    Uuups, sorry I dont think I was very clear at the end of the 2nd paragraph: what I meant was a CList or array of CQuestion class objects, which would contain the elements m_question, m_corrAns etc.
  10. mirr2001

    need 4 computers to interact, don't know means for that

    I can only try to give you a suggestion. I would use the CSocket (or CAsyncSocket) class of MSVC (tutorial at: http://www.hal-pc.org/~johnnie2/winsock.html, that should do it). I would create 1 server and 4 clients (so that 1 computer had to run both, and connect to localhost). The server would...
  11. mirr2001

    Transfering files using socket programming

    I do not really think, I can help you. But I could mention, that I have also tried to make such a file sharing program, but it does not work fully. It transfers all the data, but somewhere there are errors in it. You could send me an e-mail for request, so you could get the source code, maybe as...
  12. mirr2001

    Transfering files using socket programming

    I do not really think, I can help you. But I could mention, that I have also tried to make such a file sharing program, but it does not work fully. It transfers all the data, but somewhere there are errors in it. You could send me an e-mail for request, so you could get the source code, maybe as...
  13. mirr2001

    How to change paper orientation?

    I am desperately trying to change the page setup, so that the paper will get landscape orientation. Is there any simple way to achieve this in MSVC? I have already searched the MSDN database, and I only got the solutions to change the DEVMODE structure, but in order to do this, you seem to have...
  14. mirr2001

    Working with COleDateTime ...

    I do not know if it is a typing error, what you wrote here. You wrote: COleDateTime(pDate) ct; which of course should be: COleDateTime ct(pDate); else you'll get errors like &quot;ct: undeclared idetifier&quot;. (another little thing I noticed is the name of pDate - is it really a...
  15. mirr2001

    decimal to binary

    You could do it this way: The &quot;Decimal-Edit box&quot; should get a variable type 'int', the other type 'CString'. When a button is clicked (or another message of your choice), do this: void CYourDialog::OnMessage() { UpdateData(); char buffer[20]; //20 could take numbers up to...

Part and Inventory Search

Back
Top