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
N

Nothend

@Nothend
About
Posts
23
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • What should I do that I want to develop a MenuBar or ToolBar using ATL? [modified]
    N Nothend

    Hi,guys! I want to develop a COM control that can be used by other people. First, i want develop a MenuBar using ATL,and then this MenuBar can be drag in other frame window. I'm using vs 2005,how can i get this? Any tutorial articles or source code for this ? Any help would be appreciate !

    modified on Wednesday, August 12, 2009 1:48 AM

    ATL / WTL / STL question c++ visual-studio com help

  • A problem in multithreading
    N Nothend

    Hello,all: I am using ArcEngine(a software managing spatial data) to upload data(shapefile etc.) to database.Because the process of uploading data is time-consuming,when I click the ProgressBar window or minimize the parent window and then maximize the parent window,the parent window and the ProgressBar window is white using single thread. So,I use multithread to work out this prolem,and it does.But,the speed of uploading data to database slows down greatly . The work uploading data is no more than 10 minutes in single thread,but 40 minutes in multithread!! Who can help me?I appreciate your help!

    private delegate bool UpdateHandle(int nValue,string text);
    private UpdateHandle myUpdate = null;

    myProcessBar is a Window has two controls,a ProgressBar named Bar and a Label named LabelInfo.It has a public method

    BeeUpdate(int value, string text)

    public bool BeeUpdate(int value, string text)
    {
    LabelInfo.Text = text;
    LabelInfo.Refresh();
    if (value > 0)
    {
    if (Bar.Value + value < Bar.Maximum)
    {
    Bar.Value += value;
    Bar.Refresh();
    return true;
    }
    else
    {
    Bar.Value = Bar.Maximum;
    Bar.Refresh();

               this.Close();
               return false;
          }
     }
     return false;
    

    }

    the delegate entry point:

    private void ShowProcessBar()
    {
    myProcessBar = new ProgressBee("Uploading", 100 * ClassCount);

     myUpdate = new UpdateHandle(myProcessBar.BeeUpdate);
    
     myProcessBar.ShowDialog();
    
     myProcessBar = null;
    

    }

    the method called by MainWindow

    //caller is the main window
    public bool CopyTo(parm1, parm2,Form caller)
    {
    MethodInvoker mi = new MethodInvoker(ShowProcessBar);

     mi.BeginInvoke(null, null);
    
     caller.BeginInvoke(mi);
    
     Thread.Sleep(2000);
            
     Thread copyProcess = new Thread(delegate()
     {
          for (int i = 0; i &lt; FeatureClassCount; i++)
          {
               Thread.Sleep(30);
    
               if (condition)
               {
                    //the Interface of ArcEngine  upload data
               }
               else
               {
                    //another Interface of ArcEngine upload data
    
               }
    
               caller.Invoke(this.myUpdate, new object\[\] { 100, "……" });
    
    C# help database performance question

  • How to use Dictionary?
    N Nothend

    Thank you very much!

    C# tutorial question

  • How to use Dictionary?
    N Nothend

    Thank u very much!

    C# tutorial question

  • How to use Dictionary?
    N Nothend

    Thanks,What you said is right,but,i want the Key is type of string,and the Value is type of pointer,It seems to be that pointer can't be a para in Dictionary. so,how shoud i do?

    C# tutorial question

  • How to use Dictionary?
    N Nothend

    Hi,all I want to use Dictionary<> to make a map.I create a class named ILayer.So,I write Dictionary g_LyrNameToILayer = new Dictionary(); But it was wrong,who can tell me what shoud i do? Thanks a lot!

    C# tutorial question

  • Problem of using selectSingleNode! [modified]
    N Nothend

    Thank you very much!The problem is solved!!! Thanks!

    C / C++ / MFC xml help question announcement

  • Problem of using selectSingleNode! [modified]
    N Nothend

    I'v tried what you said,but the value of pNode is still NULL. and Could you tell me the difference between Load and LoadXML? When I use LoadXML,it's successful,but the Load is failed,why? Thanks a lot!

    C / C++ / MFC xml help question announcement

  • Problem of using selectSingleNode! [modified]
    N Nothend

    I'v tried what you said,but the value of pNode is still NULL.

    C / C++ / MFC xml help question announcement

  • Problem of using selectSingleNode! [modified]
    N Nothend

    Sorry,I didn't understand very well,do you think the the code pNode=pXMLDoc->selectSingleNode(_bstr_t("MAPDOMAIN")); shoud be replaced by pNode=pXMLDoc->selectSingleNode(_bstr_t("/MAPDOMAIN"));? Thanks!

    C / C++ / MFC xml help question announcement

  • Problem of using selectSingleNode! [modified]
    N Nothend

    Hi all: First ,I declare three variables: IXMLDOMDocumentPtr pXMLDoc; IXMLDOMNodePtr pNode=NULL; HRESULT hr; hr=pXMLDoc.CreateInstance(__uuidof(MSXML2::DOMDocument60)); hr=pXMLDoc->loadXML(_bstr_t(sPath+"MAPDOMAIN.xml")); The variable of hr shows that the pXMLDoc has been loaded successfully,and pXMLDoc is not NULL.But,I use pXMLDoc ::selectSingleNode: pNode=pXMLDoc->selectSingleNode(_bstr_t("MAPDOMAIN"));//MAPDOMAIN is RootNode The strange thing is that the pNode is NULL ,how can that happen? My XML file is like this: ?xml version="1.0" encoding="gb2312"?> 135400 155900 141600 161600 -- modified at 21:23 Saturday 14th April, 2007

    C / C++ / MFC xml help question announcement

  • How to identify the changes in TextBox?
    N Nothend

    Thanks a lot ,it works!!! Nothend

    C# question tutorial

  • How to identify the changes in TextBox?
    N Nothend

    Thanks. but I'm sorry, as you said ,I will write 100 enents of XXX_TextChanged ? What I care is the change,if any of the TextBoxes is changed,I will set a boolean variable false.So how to achieve that?Thanks! Nothend

    C# question tutorial

  • How to identify the changes in TextBox?
    N Nothend

    Hi all: I have a form which more than one hundred TextBoxes on it,if one of the TextBoxes is changed(for instance,change the Text of the Box),how can I know that change? Nothend

    C# question tutorial

  • Who can give me a detailed explanation to GetWindowRect?
    N Nothend

    Hi all I always confused with the GetWindowRect and ScreenToClient. What's the exact region when use the CWnd::GetWindowRect? and what's the region of one control's(like a textbox) GetWindowRect? and Why it always uses the ScreenToClient after using the control's GetWindowRect. If possiable,show me with a graph. Thanks. Nothend

    C / C++ / MFC data-structures question

  • What is difference between OnPaint and OnDraw?
    N Nothend

    In the structure of MFC,OnPaint is the member function of Cwnd,OnDraw is the member function of CView Nothend

    C / C++ / MFC question graphics

  • Problem using then event of OnSize
    N Nothend

    I have tried that ,but it would be error. It will show error dialog saying that "Debug Assertion Failed",and if I retry,the XP sends me a error report. Nothend

    C / C++ / MFC database com help tutorial question

  • Problem using then event of OnSize
    N Nothend

    Do you mind that I send you a email including the demo code to you? Nothend

    C / C++ / MFC database com help tutorial question

  • Problem using then event of OnSize
    N Nothend

    It's all the same . Nothing happen. Nothend

    C / C++ / MFC database com help tutorial question

  • Problem using then event of OnSize
    N Nothend

    Because the event of OnSize takes place first than that of DoDataExchange,so the controls' m_hWnds are null. I have used the PostMessage(WM_SIZE),it works,but the ADODC control can't move,I don't know why. Thanks Nothend

    C / C++ / MFC database com 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