<<<< thank you >>>>
GermanGeorge
Posts
-
DirectX - Generall Question -
DirectX - Generall QuestionHi, thank you for your answer. no, I only need the colour. three questions: 1) can you give me some code for your ideas? i would be glad to pay you for it. 2) as the thickness and colour can change with every spectacle: how do i create a texture map in my programm, i cannon hold a file for each possibility. 3) which alpha do you mean? the one of the material, the ampient alpha? sorry george
-
DirectX - Generall QuestionSorry for my poor englisch i hope i can make myself understood i need a generall help, how to solve this problem i work with directx sdk 9.0 and visual studio 2005 i have to create a lens (in spectacles). i got the modell of the lens with all the curves etc. but: the lens is made out of colored glass (let us say brown) so what happens is, that in the thinner part of the lens the brown is not so intense. in the thicker part of the lens the lens is darker, as there is more material. please help. how to i start to solve this problem george
-
ODBC And MS SQLI'am getting crazy. I work with the CRecorset Class an Access. Now I want to use MS SQL. New projects work fine, but if i use an older project, there will be a mistake as soon as i use addnew(). i does not matter if i use a snapshot or dynamic cursor. what makes it worse: if i use the same crecordset-class in an old and a new project the new one will word, the old one not. please help before i go nuts!!!!!!!
-
How to capture an image from an USB WebCam?yes there is. here is what you have to do: 1) use the code you find below 2) create a BITMAPINFOHEADER 3) write the BITMAPINFOHEADER and the bitmap, that is captured below to a file. hdcScreen = CreateDC("DISPLAY", NULL, NULL, NULL); hdcCompatible = CreateCompatibleDC(hdcScreen); hbmScreen = CreateCompatibleBitmap(hdcScreen, Videobild.right, Videobild.bottom); if (hbmScreen == NULL) MessageBox("Bmp konnte nicht erstellt werden"); hbmScreen = ::CreateDIBSection(dc.GetSafeHdc(), (LPBITMAPINFO) m_dibFile.m_lpBMIH,DIB_RGB_COLORS, (LPVOID*) &m_dibFile.m_lpImage, NULL, 0); GDIObject=SelectObject(hdcCompatible, hbmScreen); if(GDIObject==NULL) MessageBox("Object konnte nicht selected werden"); if (!BitBlt(hdcCompatible, 0,0, Videobild.right, Videobild.bottom, hdcScreen, Videobild.left,Videobild.top, SRCCOPY)) MessageBox("Object konnte nicht geBitBltet werden");
-
How Can I making database project?try using odbc
-
Drawing a Window Frameyou are right. but, i found a solution to your problme (hopefully) it works fine here. in the header of the modeless dialog declare:
afx_msg BOOL OnNcActivate( BOOL bActive );
In the MassageMap of the dialog declareON_WM_NCACTIVATE()
add a method:BOOL Dialog1::OnNcActivate (BOOL bActive) { return TRUE; }
that's it. -
Drawing a Window Frameif i had to do this, i would fake the titlebar. i would construct the dialogbox without a title and paint the title myself. you can construct the buttons also then: m_dialog1->writeMyTitel("Title 1"); m_dialog2->writeMyTitel("Title 2");
-
Display number on the Push Buttonuse CBitmapButtons CBitmapButton bezier; bezier.LoadBitmaps(_T("IMAGE27UP"), _T("IMAGE27DOWN"), _T("IMAGE27DOWN"), _T("IMAGE27GREY")); bezier.SubclassDlgItem(IDC_BUTTON_BEZIER, this); bezier.SizeToContent(); then, if you want to change the image just use bezier.LoadBitmaps(_T("IMAGE29UP"), _T("IMAGE29DOWN"));
-
Any Body Know abt SmartCard Api'sif it is a standard ct terminal: search for the ct-api (Card-terminal Application Programming Interface) or you can search for a documentation of the ctrsct32.dll or you search for ct-bcs Card Terminal Basic Command Set i got one here, but it is in german :omg: hope it helps george
-
Tree Ctrl Refreshingdid you try m_tree.Invalidate(TRUE); it works fine with me.
-
How to prevent setting focus to modeless dialog ?i did not test it, but i would start this way. after m_Modelessdialog->ShowWindow(SW_SHOW); i would use this->SetActiveWindow(); or this->SetFocus(); or this->BringWindowToTop(); etc. to get the focus pack to the parent. just try hope it helps George
-
Transparent icons on a toolbar buttonsi did not try this out, but I would start this way: subclass the bar overwrite the WM_CTLCOLOR of the bar and set in the method { pDC->SetBkMode( TRANSPARENT ); return m_LeerBrush; } where m_LeerBrush=GetStockObject(HOLLOW_BRUSH) Then use a transparent color for the icon hope this helps
-
Activex controls (i'm getting nuts)Hi, i have the same problems. it happens in my programms, when i have more then two windows above each other. dialog1 calls dialog2->DoModal(), dialog2 calls dialog3->DoModal(). The ActiveX-Elements will not appear in Dialog3. So, what I did, i put them in a dialog in a dll. then they work. not really a help, but a information.
-
Link to other frames -
Link to other framesHere is my problem: i have to frames. left frame: thumbs of pictures. on the right i want to display the pictures in a larger scale i huese href with thioe option target= so far, no problem. but the right frame will not take the attributes i gave to him. like background color etc. if i put the right frame to backgruoncolour 0x000000 it will change to 0xFFFFFF, when the large picture is displayed. please help, an pitty my poor english:-O
-
Selecting the file names in open file dialogSubclass the CFileDialog then you have methods that do, what you want. like: OnFileNameChanged or OnFolderChanged or onLBSelChangedNotify
-
Connecting to a datasourcetry CString tmp="DSN=EOP;UID="+name+";PWD="+pw; m_pDatabase->OpenEx(tmp, CDatabase::noOdbcDialog );
-
Desparate Help neededI put a dll on http://www.immenro.de/test/diadll.dll you can download it there the method is called call_it(int x, int y, int cx, int cy, CString text)
-
DirectShow Tutorialsdownload the directX sdk from microsoft. in \\Dx8VcSdk\samples\multimedia\directshow\capture\amcap you fill find an example, of how to capture all videoinputs there are more good examples in the sdk