Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Stefan_L_01

@Stefan_L_01
About
Posts
9
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DirectShow restart SetOneShot(true)
    S Stefan_L_01

    HI When i use SetOneShot(TRUE) and Run() in DS to capture one frame, i need to call StopWhenReady ()before i can capture again one image SetOneShot and Run. Does anybody knows how i can keep one capturing one frame with SetOneShot without stopping the graph (just pausing) ? because restarting the stream is slow. thx Stefan

    C / C++ / MFC data-structures question

  • VC2008: "MFC class from ActiveX control" wizard doesn't expose any properties
    S Stefan_L_01

    btw: do you know how to delete a method, property or event from an aciveX Projekt in VS200x ?? I can´t find a way to do it. At the moment it looks to me that i have to remove it manually with the problem that i have to renumber the odl indizes by hand argh (interrupted number order seems to cause problems) Best regards Stefan

    C / C++ / MFC c++ help com question

  • VC2008: "MFC class from ActiveX control" wizard doesn't expose any properties
    S Stefan_L_01

    Rehi ok, i have a weird solution, but it seems to work: Starting from a scratch container: 1.1) Insert ActiveX in resource editor 1.2) Assign a control variable. This generates a CWND derivated class with all props, events can be assigned by adding event handler and so on. Update is difficult however, except one deletes always the control and redo it (maybe even the way with less effort). Anyway: Updating ActiveX ( added method, event, whatever ) 2.1 Remove every file for control declaration from the project (.h, .cpp) by destroying it! 2.2 leave project, delete the .ncb file, restart project but do not compile anything that would remake the ncb file 2.3 Add the control by the MFC ActiveX class. Name will be different by default then for 1) 2.4 Add the control by the MFC TypeLib, choose there the methods AND events. this will generate 2 more header file types of similar name 2.5 copy the missing parts form the typelib header files into the activex class (event block, property) 2.5 Destroy the generated typlib files, delete the includes 2.6 Remove added includes (in case they were already defined) of afxdisp.h in stdafx.h and the control header file in your main application - else you get after some new class inserts a long list of same include definitions. and only once after you did 1) 3.1 Destroy the control files from 1) 3.2 Replace the object class from 1) by the new activeX class Seems to work, at least in a very simple test Regards Stefan

    modified on Wednesday, June 25, 2008 4:51 AM

    C / C++ / MFC c++ help com question

  • VC2008: "MFC class from ActiveX control" wizard doesn't expose any properties
    S Stefan_L_01

    Hi Vladimir I run exactly in the same problem with VS2005. In case you find a solution, please inform me THANK YOU VERY MUCH!!!. I need the import over ActiveX because this generates a CWND derivated class. However, i get all properties and also events (which are missing too for ActiveX class) when i generate a class by TypeLib (actualle this generates 2 Files, the events are separated). Maybe it´s possible to take from typelib generated files the missing parts and hack them in the file from the ActiveX import. A nuisance, however! Best regards Stefan

    C / C++ / MFC c++ help com question

  • Can´t access close button in a modeless cdialog
    S Stefan_L_01

    But isn´t a modeless dialog a "standalone" thread? I mean doesn´t modeless mean that it runs independent from any parent as an individual thread? niklas

    C / C++ / MFC testing beta-testing help question

  • Can´t access close button in a modeless cdialog
    S Stefan_L_01

    Hello I use a modeless CDialog to display some CProgessCtrl controls. It has a Close button which i want to use to abort a loop. The progress controls of the modeless dialog are updated during this loop. The constructor of the dialog is CDialogVorgang::CDialogVorgang(CWnd* pParent /*=NULL*/) : CDialog() { Create(CDialogVorgang::IDD, pParent); //{{AFX_DATA_INIT(CDialogVorgang) //}}AFX_DATA_INIT } and i initialize it with // Modeless dialog init CDialogVorgang* pDlgVorgang = new CDialogVorgang(); pDlgVorgang->SetWindowText("Datenbank Aktualisierung"); pDlgVorgang->m_cProgressVorgang.SetRange(0, 3); pDlgVorgang->m_cProgressGesamt.SetRange(0, v_oaV->GetSize()); // Show Dialog pDlgVorgang->ShowWindow(SW_SHOW); // is somehow necessary to display static text (??) pDlgVorgang->UpdateWindow(); // loop for (int nv = 0; nv < v_oaV->GetSize(); nv++) { pDlgVorgang->IncGesamt(); pDlgVorgang->ResetVorgang(); pDlgVorgang->IncVorgang(); ..... } The dialog shows up, and the progess controls are adjusted correctly(in the functions IncGesamt, ResetVorgang etc), but i can´t press the cancel button during the loop. Only AFTER the loop has stopped i can close the dialog. It´s also strange that i had to include the UpdateWindow function. Without it static text would not have showed up, even the cancel button was invisible. I added for testing a windowproc message handling function to my modeless cdialog class, but during the loop it is never called. Is it possible that the loop - and thus the adjustment of the progess controls - starts to quickly before the window is registered? Do i have to wait a bit, and if so, how? Thank you for any help niklas

    C / C++ / MFC testing beta-testing help question

  • CRecordset : Debug Assertion Failures with edit/update/addnew
    S Stefan_L_01

    Hi I use odbc-access driver in c++ and have a crecordset, created with the adress of a database. I can use my CRecordset-pointer m_pRS to navigate through the set, but whenever i want to edit, update, add or delete something from the recordset (like m_pRS->Edit(); ) i get a debug assertion failure (visual c++ 6.00) Here is the initializing code for the recordset: // neu initialisieren mit aktueller Datenbank CRecordset *rs = new CRecordset(&m_DB); m_pRS = rs; m_hStmt = m_pRS->m_hstmt;; SDWORD b1; SDWORD b2; SQLBindCol (m_hStmt, 1, SQL_C_CHAR, (PTR)m_mAkt.m_sName, sizeof(m_mAkt.m_sName), &b1); SQLBindCol (m_hStmt, 2, SQL_C_DOUBLE, (PTR)&m_mAkt.m_fDichte, sizeof(m_mAkt.m_fDichte), &b2); SQLBindCol (m_hStmt, 3, SQL_C_CHAR, (PTR)m_mAkt.m_sBeschreibung, sizeof(m_mAkt.m_sBeschreibung), &b1); try { m_pRS->Open( CRecordset::snapshot, _T("SELECT * FROM Material ORDER BY Materialname, Dichte"), CRecordset::none); // Recordset durchzaehlen GetMaterialNum(); } catch ( CDBException *pDBE) { AfxMessageBox("Database Fehler: "+pDBE->m_strError); return false; } Can someone help me why navigating (calling for example m_pRS.MoveNext(); )works, but not .Edit() , .Update(), .AddNew and so on? Thank you niklas

    C / C++ / MFC c++ database debugging help tutorial

  • ODBC & SQL - Modify the "Table" name in Excel
    S Stefan_L_01

    Thank you , the second HOWTA article looks very interesting and elegant. Meanwhile i managed to do it by dropping a Column, for example with [Sheet1$A:A] as tablename, and creating a new Table with same syntax passing a new "table" name. niklas

    Database c++ database help tutorial question

  • ODBC & SQL - Modify the "Table" name in Excel
    S Stefan_L_01

    Hello I´m new to this board, and found already some good advice here, but for this problem i didn´t find an answer so far. I already have an Excel-Doc that consists of several sheets. I need to write now in the 3rd sheet data, from the first row to row 40 in column 2 for example. The problem is that the row doesn´t has a header, what would identify the column as a "table". But that´s no problem, because i can fetch a Recordset to a column for example. But this allows me only to modify row 2 and all further rows, but not the first row where ODBC expects the table name. But i also have to modify the first row, i MUST :) Does anyone know to access by ODBC & SQL a EXCEL sheet/data from c++ on and writing at desired column and row position data? Thank you

    Database c++ database help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups