CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: sawer

Page 1 of 14 1 2 3 4

Search: Search took 0.02 seconds.

  1. Calling DLL function that is not imported(MFC and WinMain)

    Hi

    We know that, WinMain is buried in the MFC Framework. OK but how can Windows call it?

    I opened MFC project in VC++ and tried to find out how it imports the dll(Mfc90ud.dll) and functions in...
  2. Replies
    2
    Views
    804

    Re: WriteFile/ReadFile repeat last lines

    Understood.
    Solved it:


    do
    {
    bReadSuccess = ReadFile( hFile, strBuffer, sizeof(strBuffer), &nRead, NULL);
    bWriteSuccess = WriteFile( hFile2, strBuffer, nRead, &nWrite, NULL);...
  3. Replies
    2
    Views
    804

    WriteFile/ReadFile repeat last lines

    Hi



    do
    {
    bReadSuccess = ReadFile( hFile, strBuffer, sizeof(strBuffer), &nRead, NULL);
    bWriteSuccess = WriteFile( hFile2, strBuffer, sizeof(strBuffer), &nWrite, NULL);...
  4. Replies
    2
    Views
    1,113

    Re: Can not add MFC support to Windows Application

    OK. But this works:


    #include <afx.h>
    #include <afxwin.h>
    #include <afxext.h>

    CWinApp theApp;

    int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
  5. Replies
    2
    Views
    1,113

    Can not add MFC support to Windows Application

    Hi

    We can add MFC support to console apps but hhy can't we add MFC support to Windows application?

    I tried this:



    #include <afx.h>
    #include <afxwin.h>
  6. Replies
    3
    Views
    1,088

    Re: Handle of client area?

    I mean client area's handle. But now i think this can't be true.

    But if toolbar lives inside the parent window's client area, so client orgin must be started above visible area. If not, how can...
  7. Replies
    3
    Views
    1,088

    Handle of client area?

    If so why GetClientRect Function returns the upper-left and lower-right visible corners of the client area? It must be start under toolbar. right?

    Is there a way to get handle of clent...
  8. Replies
    6
    Views
    1,006

    Computational Complexity

    for ( int i = 0; i < 100; i++)
    {
    }


    Is complexity for this loop O(1) or O(n)?
  9. Replies
    1
    Views
    2,645

    Compound Document Support terminology

    Hi

    In MFC project wizard we can set Compound Document Support for our application. Here, some terms confused me.

    For Compound document support, we may choose "Container". In MSDN:

    And we...
  10. Replies
    4
    Views
    1,110

    Assignment to global var. = Redefinition?

    Hi
    Why isn't assignment to global variables allowed?


    int t;
    t = 9; // error C2086: 'int t' : redefinition

    int main()
    {
  11. Replies
    0
    Views
    738

    PropertyPages in ATL??

    Hi

    In MFC we can make relation/connection between "controls which are on property pages" and "properties in IDL" with these functions and macros:


    //these are written in Activex controls cpp...
  12. Replies
    7
    Views
    1,367

    Re: Ordinary Controls vs. Activex controls

    This is the main point and I think this is not disadvantage. On the contrary, to learning Win32, ATL, MFC, WTL, STL etc. is making you experienced programmer. You can see engineering. All of them has...
  13. Replies
    7
    Views
    1,367

    Re: Ordinary Controls vs. Activex controls

    Thank you Arjay,
    Yes, older but can't be decompiled technologies. So native coding never dies.

    For database and web applications,(ERP) C# is ideal but for desktop applications that we use in our...
  14. Replies
    7
    Views
    1,367

    Re: Ordinary Controls vs. Activex controls

    Thanks for opinion.
    Actually "to speak COM to talk to the control" isn't problem for me.

    I think the advantage of activex is:

    -If the control activex, developer can adjust its property, events...
  15. Replies
    7
    Views
    1,367

    Ordinary Controls vs. Activex controls

    Hi

    If you had to write a custom control for your application, which type of control would you write?Activex or Ordinary?

    What are the advantages/disadvantages of MFC ActiveX versus ordinary MFC...
  16. Re: Creating child splitter window with in a parent splitter window

    OK. Thank you very much...
  17. Re: Creating child splitter window with in a parent splitter window

    By searching.
    You attached many codes to your old posts. They are very helpful. Thanks.

    I want to ask one more question about Size parameter that we pass CreateView function. To be honest, i...
  18. Re: Creating child splitter window with in a parent splitter window

    Hi
    I searched some terms and saw this thread.

    In attached code:


    m_wndInSplitterHigh.SetDlgCtrlID(m_wndSplitter.IdFromRowCol(0, 0));...
  19. Replies
    2
    Views
    801

    Re: Able to Update Without AddView ??

    OK. Thank you.
    Understood.
  20. Replies
    2
    Views
    801

    Able to Update Without AddView ??

    Hi

    1-) I opened a SDI project:


    pDocTemplate = new CSingleDocTemplate(
    IDR_MAINFRAME,
    RUNTIME_CLASS(CTRYDoc),
    RUNTIME_CLASS(CMainFrame), // main SDI frame window...
  21. Thread: UpdateAllViews

    by sawer
    Replies
    6
    Views
    1,156

    Re: UpdateAllViews

    Thanks krmed;
    Yes MDI project.
    How can i override the default behavior?
  22. Thread: UpdateAllViews

    by sawer
    Replies
    6
    Views
    1,156

    Re: UpdateAllViews

    Sorry.
    My (quick) project name is Document
    Document: DocumentDoc.h and .cpp
    View: DocumentView.h and .cpp

    And also i have a Dialog which takes size of the point and store it in...
  23. Thread: UpdateAllViews

    by sawer
    Replies
    6
    Views
    1,156

    UpdateAllViews

    Hi

    When clicks on View, my program draws ellipse and I tried to make all changes in one view reflects to all views.

    1-)OnLbuttonDown adds a point to CArray m_PointList

    2-)UpdateAllViews...
  24. Is Developing Database Apps. with MFC stopped?

    Hi

    Did managed code dominate this field? Or still, companies develop with native code?

    How is the popularity of MFC in Database apps like ERP projects?

    I asked these question because it...
  25. Replies
    1
    Views
    682

    Add a CEditView into view (runtime error)

    Hi

    I just tried to add view new views into another view if possible.

    OnInitialUpdate:


    CRect clientRect;
    GetClientRect(&clientRect);
    clientRect.SetRect(clientRect.right -110,...
Results 1 to 25 of 337
Page 1 of 14 1 2 3 4





Click Here to Expand Forum to Full Width

Featured