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
B

bubuzzz

@bubuzzz
About
Posts
18
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Linking error when compiling projects
    B bubuzzz

    definitely !! after spending some hours googling, finally i figured out which lib i missed. Thank you very much :-D

    ATL / WTL / STL csharp visual-studio help question

  • Linking error when compiling projects
    B bubuzzz

    Dear all, My current project was built on visual studio 2005. I ported it into visual studio 2010 and after several configurations, I got the only one left error while building

    stdafx.obj : error LNK2019: unresolved external symbol _WTSSendMessageA@40 referenced in function _SendNotification
    9>nafxcw.lib(afxglobals.obj) : error LNK2001: unresolved external symbol _IID_IWICImagingFactory
    9>nafxcw.lib(afxtaskspane.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
    9>nafxcw.lib(afxvisualmanager.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIconSize@12 referenced in function "public: virtual void __thiscall CMFCVisualManager::OnDrawTask(class CDC *,class CMFCTasksPaneTask *,class CImageList *,int,int)" (?OnDrawTask@CMFCVisualManager@@UAEXPAVCDC@@PAVCMFCTasksPaneTask@@PAVCImageList@@HH@Z)
    9>nafxcw.lib(afxvisualmanagerofficexp.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
    9>nafxcw.lib(afxstatusbar.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
    9>nafxcw.lib(afxheaderctrl.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
    9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_ReplaceIcon@12 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
    9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIcon@12 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
    9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Create@20 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
    9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetImageCount@4 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,struct _IMAGELIST *,unsigned int,int)" (?SetPaneAnimation@CMFCStatusBar@@QAEXHPAU_IMAGELIST@@IH@Z)
    9>nafxcw.lib(afxstatusbar.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Destroy@4 referenced in function "public: void __thiscall CMFCStatusBar::SetPaneAnimation(int,str

    ATL / WTL / STL csharp visual-studio help question

  • User Control
    B bubuzzz

    Thank you for replying me. I dont think this is the problem of the memory usage coz i checked it carefully. This is the code my ImageArea class (user control):

    public Image LoadImage()
    {
    Image tmpImage = Image.FromFile(imageName);
    Bitmap tmpBitmap = new Bitmap(100, 100);
    Graphics graphics = Graphics.FromImage((Image)tmpBitmap);
    graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
    graphics.DrawImage(tmpImage, 0, 0, 100, 100);

            tmpImage.Dispose();
            graphics.Dispose();
    
            return (Image)tmpBitmap;
        }
    
        protected override void  OnPaint(PaintEventArgs e)
        {
            Image tmpImage = LoadImage ();
            Graphics graphics = e.Graphics;
            graphics.DrawImage(tmpImage, 0, 0);
            tmpImage.Dispose();
            graphics.Dispose();
        }
    

    When i press the button ok in the openFileDialog, it will run the AddImageArea function to add the control to the flowLayoutPanel And this is the code of AddImageArea

    public ImageArea AddImageArea(string filename)
    {
    ImageArea pbObj = new ImageArea();

            pbObj.ImageName = filename;
            pbObj.Width = 100;
            pbObj.Height = 100;
            pbObj.ImageName = filename;
            pbObj.BorderStyle = BorderStyle.FixedSingle;
            
            return pbObj;
        }
    
    C# help csharp com question

  • User Control
    B bubuzzz

    Hi, i am making a small image viewer application by using C#. I created a user control which will take the image input and draw it by using the override method OnPaint, and then add the control into the flowlayoutpanel. In FlowLayoutPanel, i set the autoscroll = true. Everything works fine, except when i scroll down the panel, the images become vague and the program has to repaint them. Please look at the screenshot for more details http://i979.photobucket.com/albums/ae280/jasonvoorheeszzz/bug.png[^] Have anyone got the suggestion to fix it?

    C# help csharp com question

  • Conneting to a computer using socket
    B bubuzzz

    yup. That is what i am trying these day. Thanks all for replying me

    C / C++ / MFC sysadmin help question

  • Conneting to a computer using socket
    B bubuzzz

    so, that 's means i have to configure something "manually". Is there any solution by using code? I just wonder how p2p apps can work when 2 comps connected directly to each other and one comp is under a shared network :omg:

    C / C++ / MFC sysadmin help question

  • Conneting to a computer using socket
    B bubuzzz

    Hi, I am writing a small app to connect 2 computers. When i test the server side right from my computer, it 's ok. But because i am using a shared network with a router, my friends cannot connect to my computer by using my IP (because it is a local ip). Can anyone suggest a way to overcome this problem, please?

    C / C++ / MFC sysadmin help question

  • Stupid bug in main function
    B bubuzzz

    AHHH, how can ??? Thank you very much. You saved me. I think i should go to bed soon. Cannot work with this mood now X|

    C / C++ / MFC php com help question

  • Stupid bug in main function
    B bubuzzz

    Sorry for asking this but can anyone please explain why the variable "a" cannot be found http://www.mediafire.com/imageview.php?quickkey=n2jzwmm1zdd&thumb=6[^] I tried to figure out for the whole day and it really make me crazy now :mad:

    C / C++ / MFC php com help question

  • Threading issue
    B bubuzzz

    thank you very much

    Managed C++/CLI com xml help question learning

  • Threading issue
    B bubuzzz

    Hi all, Recently, I am trying openCV to detect the face. All the methods work well. Now I want to compare all the methods at the same time, that means i have to use multi thread to archieve this purpose. Here is my code In my form (Form1.h), i declared :

    private: System::Threading::Thread^ trd;

    and initialized the thread:

    trd = gcnew Thread( gcnew ThreadStart( this->compareAlg));

    and this is the compareAlg function:

    private: static System::Void compareAlg ()
    {
    SCM *objSCM = new SCM ();
    VAJ *objVAJ = new VAJ();
    // MHI *objMHI = new MHI();

    		 objVAJ ->showFaceDetect\_Cam("Resource\\\\face.xml");
    		 objSCM ->showFace\_SkinDetect\_Cam();
    		 Thread::Sleep (0);
    		 //objMHI ->showFace\_MHI ();
    	 }
    

    i also used a button to start the thread:

    private: System::Void btnCompare_Click(System::Object^ sender, System::EventArgs^ e) {
    trd->Start ();
    }

    The code compile well but the methods (showFaceDetect_Cam and showFace_SkinDetect) run sequently. What i want is the output of these methods appear at the same time on the screen. Can you suggest some advices, please? The thread code is found from http://msdn.microsoft.com/en-us/library/system.threading.thread.aspx Thanks

    Managed C++/CLI com xml help question learning

  • Problem with File Open Dialog
    B bubuzzz

    i am trying to write a small window form application. I use a file dialog to select a file in my computer. However, in the debug mode, when pressing the browse button, i got this error message : "An unhandled exception of type 'System.Threading.ThreadStateException' occurred in System.Windows.Forms.dll Additional information: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process." This problem happen only when i try to create a object of a class in the Form1.h file. If i delete the code of creating object, everything goes fine. I have checked the main function, it already had [STAThreadAttribute] marked on it. So, can you give me any suggestion, please? thanks

    Managed C++/CLI debugging help com question

  • convert System::String to char *
    B bubuzzz

    thank all. i just find out the solution. It 's only a stupid mistake to toxcct: sorry. Will post in the right place next time

    C / C++ / MFC help algorithms question

  • convert System::String to char *
    B bubuzzz

    hi all, I am trying to convert from System::String to char *. After searching some forums and the msdn, i got these lines of code const char * convertStrToChar(System::String ^ str) { CString tmpStr (str); char* ConvToChar = new char[tmpStr.GetLength() + 2]; size_t Converted = 0; wcstombs_s(&Converted, ConvToChar, tmpStr.GetLength()+1, tmpStr, _TRUNCATE); return ConvToChar; } However, when i compilie it, these error messages appear : Error 1 error LNK2028: unresolved token (0A00023F) "public: char * __clrcall Process::convertStrToChar(class System::String ^)" (?convertStrToChar@Process@@$$FQAMPADP$AAVString@System@@@Z) referenced in function "public: void __clrcall Process::showFaceDetect(class System::String ^,class System::String ^)" (?showFaceDetect@Process@@$$FQAMXP$AAVString@System@@0@Z) Process.obj Error 2 error LNK2019: unresolved external symbol "public: char * __clrcall Process::convertStrToChar(class System::String ^)" (?convertStrToChar@Process@@$$FQAMPADP$AAVString@System@@@Z) referenced in function "public: void __clrcall Process::showFaceDetect(class System::String ^,class System::String ^)" (?showFaceDetect@Process@@$$FQAMXP$AAVString@System@@0@Z) Process.obj I know this is a simple problem, but i cannot figure out why this bug happens. Can you give me some suggestion? Thanks

    C / C++ / MFC help algorithms question

  • "cardlayout" in C# ?
    B bubuzzz

    thanks a lot . You really saved my life

    C# question csharp java

  • "cardlayout" in C# ?
    B bubuzzz

    I m making a win form with a explore bar and I want everything I choose from the explore bar to appear in the same form , not opening a new form for each operation. In Java ,it is easy with using Card layout , but how can it be done in C# ? I tried to set visible for every panel , but if there are too many panels , the form is very messy . I also tried the method BringToFront() but it didn't make better . How can i change the panel like Card layout in Java? :confused: Thanks . :laugh:

    C# question csharp java

  • Theme
    B bubuzzz

    Is there any way to change the theme of the form using dll , e.g i have some dlls which can change the theme of window . But how could i import them into my form project to change its theme like this http://www.codeproject.com/cs/miscctrl/XPTaskBar.asp ? Thanks . :)

    C# com question

  • drawing a signal
    B bubuzzz

    hi, I get some signals from COM port in binary number ( 8 bit ) . I also write code to change them into decimal number . But i don ' t know how to draw them ( like a sound wave ).Can anyone help me ? Sorry if my English is bad . Thanks .

    Visual Basic com graphics 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