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
C

cauvang

@cauvang
About
Posts
16
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to add image in crystal report
    C cauvang

    Can anyone help me to add an image in crystal report? I write in C#. In my access database, I store the path of the image , not the real image. The real image is in another directory. Thank you very much.

    C# csharp database help tutorial question

  • about richtextbox
    C cauvang

    I know that if I used PlainText, this problem wouldn't happen. But I have to use UnicodePlainText because my file is Vietnamese, it needs font Unicode.

    C# question help tutorial

  • about richtextbox
    C cauvang

    here is my function to load the file void OpenFile() { openFileDlg.DefaultExt = "*.txt"; openFileDlg.Filter = "Text Files|*.txt"; if(openFileDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK && openFileDlg.FileName.Length > 0) { rtxt.LoadFile(openFileDlg.FileName, RichTextBoxStreamType.UnicodePlainText); } }

    C# question help tutorial

  • about richtextbox
    C cauvang

    I have a problem when using richtextbox. I use richtextbox to display the content of a file. In the richtetxtbox, it automatically inserts a space in the first word. For example, in my file " Doctor John is very kind". And in my richtextbox "D octor John is very kind". Why do I meet this problem and how can I overcome this problem? Thanks a lot.

    C# question help tutorial

  • How to convert a string from CString to LPTSTR
    C cauvang

    I'm really sorry! I want to convert a string from CString(MFC) to LPCTSTR but the example is really stupid( it was written in WTL !!!). Now I wonder how to use a WTL class ( written in WTL,used WTL CString ) in a MFC application. The class is so important and i need it in my MFC project.However,it was written in WTL using WTL CString.Help me!!

    C / C++ / MFC c++ help tutorial

  • How to use a class written in WTL 7.0 in an MFC application
    C cauvang

    I have a class written in WTL 7.0 but I want to use it in my MFC application.How can i do that. The class use WTL CString but I think it isn't recognized in MFC I tried to add the class into my project but I got the following code when I conpiled: fatal error C1010: unexpected end of file while looking for precompiled header directive Can you help me? Thanks a lot!

    ATL / WTL / STL c++ help question tutorial

  • How to use a class written in WTL 7.0 in an MFC application
    C cauvang

    I have a class written in WTL 7.0 but I want to use it in my MFC application.How can i do that. The class use WTL CString but I think it isn't recognized in MFC I tried to add the class into my project but I got the following code when I conpiled: fatal error C1010: unexpected end of file while looking for precompiled header directive Can you help me? Thanks a lot!

    C / C++ / MFC c++ help question tutorial

  • How to convert a string from CString to LPTSTR
    C cauvang

    Thanks for your helping me. But I don't want to return a LPTSTR, not a LPCTSTR.Anyway, thanks you a lot.

    C / C++ / MFC c++ help tutorial

  • How to convert a string from CString to LPTSTR
    C cauvang

    thanks again, but it still give me that error.

    C / C++ / MFC c++ help tutorial

  • How to convert a string from CString to LPTSTR
    C cauvang

    Thanks for your answering, but when I try doing the following code LPTSTR CMainDlg::XuLyChuoi() { char *tmp_sz = new char[1000]; ::GetWindowText(GetDlgItem(IDC_EDIT1),tmp_sz,1000); CString s = tmp_sz; int index = 1; while ((index=s.Find("x", index)) != -1) { CString s1 = s[index-1]; s1+= s[index]; CString s2 = s[index-1]; s2+= "*"; s2+= s[index]; s.Replace(s1, s2); } tmp_sz = (LPTSTR)s; return tmp_sz; } I have the error: error C2440: 'type cast' : cannot convert from 'class WTL::CString' to 'char *' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called Error executing cl.exe. - 1 error(s), 0 warning(s) Can you explain?Thank you.

    C / C++ / MFC c++ help tutorial

  • How to convert a string from CString to LPTSTR
    C cauvang

    I wonder how to convert a string from CString(MFC) to LPTSTR. I want to use my string in CString as a LPTSTR but i don't know to convert it.Please help me! Thanks a lot

    C / C++ / MFC c++ help tutorial

  • how to get a random number between 0 and 1
    C cauvang

    I want a fucntion to generate a random number between 0 and 1, and each time this function is executed, it will give me a diffent value (independent to time).Can you help me?Thanks a lot.

    C / C++ / MFC help tutorial question lounge

  • how to get a random number between 0 and 1
    C cauvang

    I want to get a random number between 0 and 1.Can you help me?Thanks a lot.

    C / C++ / MFC help tutorial question lounge

  • how to calculate an expression
    C cauvang

    I have an expression including sin,cos,and log. Example 3*sin(4)-2. I want to know how to calculate it. Can you help me?Thanks a lot.

    C / C++ / MFC tutorial help question

  • update from dataset to database
    C cauvang

    Can you tell me a little more?I searched in MSDN but I could't find the way to solve this problem.Thanks

    C# question database announcement

  • update from dataset to database
    C cauvang

    My dataset has 2 tables having foreign relationship. After I update these 2 tables in my dataset, how can I update them from my dataset to my real database? Thanks.

    C# question database announcement
  • Login

  • Don't have an account? Register

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