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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

shiftwik

@shiftwik
About
Posts
13
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C# Questions
    S shiftwik

    thanks,

    C# csharp question c++ dotnet graphics

  • C# Questions
    S shiftwik

    thanks ... I guess my question on "new" is why isn't it just automatic? with C# it call delete for you. So why not new also? would you ever not use it?

    C# csharp question c++ dotnet graphics

  • C# Questions
    S shiftwik

    thanks Eddy, great reply!!! you must be a college professor Can anybody here help me with some intelligent in depth answers??

    C# csharp question c++ dotnet graphics

  • C# Questions
    S shiftwik

    1. Why does C# require the "new" keyword? why bother?? it's not like C++ where you need the functionality of memory allocation and calling the constructor 2. why does C# require the "return" keyword with a "get" function. What else would you use a get function for? besides returning data?? seems like an extra step where "get" is built in to the language 3. When CLR executes your code is the .net "engine" accessing kernel, user and or gdi.dll ? or does it have some other method of communicating with windows os kernel functions? 4. Does C# have an equivalent to the Doc/View architecture for windows apps? thanks

    C# csharp question c++ dotnet graphics

  • Winforms vs MFC
    S shiftwik

    yo..... Curious.... Is C#f based Winforms better than MFC for GUI? Which is faster to develop in?

    C# csharp c++ visual-studio winforms question

  • Two ChlidFrames in MDI application?
    S shiftwik

    curious what are you showing in your MDI? you can just use the same instance of CDocument object for both the MDI and the non modal dialogs. just get a pointer to the MDI CDocument object and access within your non modal dialogs classe(s) You can also just get pointers to the specific controls used in your MDI (tree, list, GDI obects) and then just acces these in your modal classes. So the data will all be the same. there are several effective ways to do this, but it's situational

    C / C++ / MFC question help

  • Graphics Pipeline questions Ortho projection
    S shiftwik

    Hi I'm trying to learn 3D graphics using C++/MFC. I suppose the context of my questions don't really have to do with C++ perse but more linear algebra I guess. Please bear with me since I'm dumb as a rock. From my research the pipeline consists of projections/transformation "model (vertices)" -> World -> View Cube (or tho projection) -> screen. after I transform the vertices of the model to "world" and then project it to the "view cube" for clipping I then flatten the vertices in the desired axis. So if I wanted a 2d orthographic side view, I would set the Y coordinate to 0 in the matrix to flatten. Please see this graphic [^] My question is, do I then need to rotate the left vector space I flatten the object(s) on to a "front" vector space and then draw on the screen? thanks

    C / C++ / MFC c++ graphics question com

  • Database to C++
    S shiftwik

    hey, noob here I'm reading some database queries into a structure in C++ The database class I'm using MFC CDatabase/CRecordset reads all the data as type strings. So my questions are: What is the best practice for storing the fields? should I convert them to their appropriate data type as I read them from the data base,(using CODBCFieldInfo) to determine the datatype? or is their a class that exists that already does converts the query to a structure automatically in C++? what is the preferred method for handling datatypes for ma database?

    Database c++ database question discussion

  • function pointers
    S shiftwik

    you earned your title 'superman' thank you!!! works like a charm

    C / C++ / MFC question

  • function pointers
    S shiftwik

    I can't seem to get the function pointers working?

    anybody see what's wrong? I just want to call the print()method

    #include "stdio.h"
    class TMyClass
    {
    public:
    void print(){ printf("Print!\n"); };
    void (TMyClass::*pt2Member)();
    TMyClass(void);
    };
    TMyClass::TMyClass(void)
    {
    pt2Member = &TMyClass::print;
    };
    int main(int argc, char* argv[])
    {
    TMyClass instance1;
    instance1.pt2Member;
    return 0;
    }

    C / C++ / MFC question

  • view to foreground
    S shiftwik

    Hi, I have a MDI project with multiple doc/views. If I have multiple doc/views open how to I select a paticular view and bring it to the foreground? thx

    C / C++ / MFC tutorial question

  • clistcrtl OnUpdate() [modified]
    S shiftwik

    Hello I can't figure this out . Here is my class and functions For some reason the OnUpdate function is only printing the first column and not the other 1 What am I doing wrong?? thx // viewcView.h : interface of the CViewcView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_VIEWCVIEW_H__C9A435B3_A707_486C_820E_191CD7126DDD__INCLUDED_) #define AFX_VIEWCVIEW_H__C9A435B3_A707_486C_820E_191CD7126DDD__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CViewcView : public CView { protected: // create from serialization only CViewcView(); DECLARE_DYNCREATE(CViewcView) CListCtrl m_List; // Attributes public: CViewcDoc* GetDocument(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CViewcView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); // first time after construct virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); protected: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: virtual ~CViewcView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CViewcView) // NOTE - the ClassWizard will add and remove member functions here. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnSize(UINT nType, int cx, int cy); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in viewcView.cpp inline CViewcDoc* CViewcView::GetDocument() { return (CViewcDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_VIEWCVIEW_H__C9A435B3_A707_486C_820E_191CD7126DDD__INCLUDED_) // viewcView.cpp : implementation of the CViewcView class // #include "stdafx.h" #include "viewc.h" #include "viewcDoc.h" #include "viewcView.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __

    C / C++ / MFC c++ debugging json question announcement

  • File Open By
    S shiftwik

    I'm looking for the WIN API function or process to determine the user name or SID who currently has a specific file open. Much like the old windows FileManager "Open By" capabilty thanks

    C / C++ / MFC json
  • Login

  • Don't have an account? Register

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