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

Search:

Type: Posts; User: vcstarter

Page 1 of 38 1 2 3 4

Search: Search took 0.23 seconds.

  1. Replies
    2
    Views
    830

    Signal or Array or Vector shifting

    This can be done very easy, but I assume there is a better way to do it.

    assume that I have a vector or a signal like

    x=[1 1 1 1 1]

    want to shift it by one unit to the right I have

    x[n+1]...
  2. Replies
    11
    Views
    4,612

    Re: MFC Tab Control Problem

    Take a look of the project to see the overlapping
  3. Replies
    11
    Views
    4,612

    Re: MFC Tab Control Problem

    It means that when tab1 is visible, the form in tab2 does not show like any other tab application
  4. Replies
    11
    Views
    4,612

    Re: MFC Tab Control Problem

    I tried to show one at a time. The idea is to show one tab at a time similar to C# winform

    m_TabOne member variable first table

    m_TabTow member variable second tab
  5. Replies
    11
    Views
    4,612

    MFC Tab Control Problem

    I tried to display a tab, but it looks like I make some mistake in the initialization; see the code below



    afx_msg LRESULT CDisplayData::OnInitdialog(WPARAM wParam, LPARAM lParam)
    {
    CTabCtrl...
  6. Replies
    10
    Views
    2,075

    Re: Simple MFC Question

    That was the problem. I realized that now. It was in the wrong place.

    thanks
  7. Replies
    10
    Views
    2,075

    Re: Simple MFC Question

    I created the test project from the wizard. When I added the handler for the button, it looks like it choose the CDialog class, so that may be the problem. Maybe it should be in CView.

    you can...
  8. Replies
    10
    Views
    2,075

    Re: Simple MFC Question

    ID_BUTTON2 is the ID of the button in the ribbon. I tried to zip the project and attached it, but it is too big after I zip it. It looks like the wirzard created a big SQL Compaq file.
  9. Replies
    10
    Views
    2,075

    Re: Simple MFC Question

    The following has been added to message map

    ON_COMMAND(ID_BUTTON2, &CAboutDlg::OnButton2)

    and the function implementation here

    void CAboutDlg::OnButton2()
    {
    MessageBox(L"my data", L"my...
  10. Replies
    10
    Views
    2,075

    Simple MFC Question

    I haven't worked with MFC for a long time. I just tried a simple ribbon application. After adding a button to a group and add a handler for the button. I added a value in the string table for the...
  11. Visual Studio Add in Menu Not Showing Up

    I am using the following code to add a menu to visual studio here is the complete function (see below)

    it works fine; the problem is when i take it to a test station (I mean when I move the dll),...
  12. Replies
    0
    Views
    1,179

    File Download Counter

    I try to implement the code from this link to count the files downloaded from my site

    http://blog.donnfelker.com/2008/04/29/simple-download-counter-httphandler/

    It works fine only for a single...
  13. Replies
    11
    Views
    1,390

    Re: Change Background of Menu

    it works fine; the oly problem is that I wonder if it is possible to change the color of the menu item separator. I coulfn't find a way to change its color.
  14. Replies
    11
    Views
    1,390

    Re: Change Background of Menu

    It is possible to check the for the separator and change that color as well. Wile the bacground color of the menu changes, but it will be nice to identify the separator and change its color
  15. Replies
    11
    Views
    1,390

    Re: Change Background of Menu

    sorry, I did not copy it. I commetted the line out.
  16. Replies
    11
    Views
    1,390

    Re: Change Background of Menu

    Still crashed on the same spot event when commented out your suggestion
  17. Replies
    11
    Views
    1,390

    Re: Change Background of Menu

    comment this line out and remove the separator you can see it works fine

    if (!item is ToolStripSeparator)
  18. Replies
    11
    Views
    1,390

    Re: Change Background of Menu

    it crashed somewhere here

    foreach (ToolStripMenuItem item in items)

    after interacting through the menu and encounter a menu separator
  19. Replies
    11
    Views
    1,390

    Change Background of Menu

    I try to change the background color of a menu, but the program crashed when the menu item is a separator. I try to check to see if there is a separator before I make the change, but I cannot get...
  20. Replies
    0
    Views
    498

    Visual Studio Customization

    I try to write an add in for visual studio. Currently, I can only add one command at a time to the tools menu. I want to know how can I add a menu item with dropdown command to the tools menu or...
  21. Replies
    3
    Views
    1,914

    Re: cannot delete image file using File.Delete

    Did you check the attribute to make sure the file is not protected? You may need do that or clear the attribute for the file first.
  22. Re: how to get the installation paths without using regedit.

    There are other ways to do it, but you can do it this way by using the applicationdirectory class in

    using System.Security.Policy;
  23. Replies
    5
    Views
    2,126

    Re: C# File Operations

    I think you approach the problem the wrong way. You have to use the stream class to write the file line by line then read it line by line then delete specific line that you want. The way you have...
  24. Replies
    2
    Views
    1,359

    Re: Empty DataGridViewComboBoxColumn

    I don't know if i answer your question, but you have to click on the property of the specified combobox column and populate it. For instance if your combobox is column3, then you select it by...
  25. Re: GetPrivateProfileString Reading Section With Multiple Keys

    OK I will do so, this is basically what I am working on now
Results 1 to 25 of 938
Page 1 of 38 1 2 3 4





Click Here to Expand Forum to Full Width

Featured