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

nguyenvhn

@nguyenvhn
About
Posts
116
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • make file excel(*.xls) from vb .NET 2003
    N nguyenvhn

    There are many ways. _Using OLE Automation _Using thirst party component: Aspose, FarPoint... _Make it yourself

    Visual Basic csharp help tutorial

  • Connection pool and open & close ...???
    N nguyenvhn

    I think the first way is acceptable. The close method returns connection to the pool and open method get a freely connection from pool. The second way seems to be a bit better performance but it will charge a lots of cost of changing sources

    Database question database performance

  • Show subitems of an item in listbox
    N nguyenvhn

    Create in memory a data structure to store all items in Listbox2 associated with each item in Listbox1. A dictionary or hashing table will be appropriate. When adding an item to listbox2, again adding it to that data structure. When selected item in listbox1 changed, reload all items associated with listbox1 selected item to listbox2. Hope that helps

    C / C++ / MFC help question

  • Visual Studio: ncb file
    N nguyenvhn

    It will be created automatically when opening project

    C / C++ / MFC visual-studio question csharp

  • Access control from a user defined class (Dialog based application)
    N nguyenvhn

    Define a class member variable that hold a pointer to dialog, then access CEdit through that member.

    C / C++ / MFC tutorial

  • Problem with ButtonEvents on dynamic UserContols
    N nguyenvhn

    Good comment. I have not tried yet but it give me alot information. Thanks so much.

    ASP.NET help question database debugging

  • Can logon page be skipped if form authentication is used?
    N nguyenvhn

    The user will be redirected to login page as in Web.config

    ASP.NET csharp asp-net security question

  • php
    N nguyenvhn

    That's true when using in Web Programming

    ASP.NET php sysadmin tools question

  • How to Select the last N records based on date?
    N nguyenvhn

    SELECT web_News.ArticleDate, web_NewsLocalized.ArticleTitle, web_NewsLocalized.ArticleText, (SELECT COUNT(*) FROM web_News AS B WHERE B.ArticleDate>=A.ArticleDate) AS RowNumber FROM web_News AS A INNER JOIN web_NewsLocalized ON web_News.ArticleId=web_NewsLocalized.ArticleId WHERE ((web_NewsLocalized.ArticleCulture)=[@Culture] AND RowNumber<=@N) ORDER BY web_News.ArticleDate DESC; I am not sure wheather it works, I've not tested yet, but just try it anyway. The performance will be a big problem

    Database question database tutorial

  • Executing a Stored Procedure thru VS2005
    N nguyenvhn

    In this case, the database stored boolean as a signed type (integer for example). All bits will be 1 for true and 0 for false. If first bit is 1, then that value is a negative one.

    Database database question

  • getting information based on DateTime
    N nguyenvhn

    select * from order WHERE ord_date = @ComparedDate @ComparedDate is a DateTime parameter, you have to provide it's value from caller. Dim cmd as new SqlCommand(select * from order WHERE ord_date = @ComparedDate", conn) cmd.Parameters.Add(new SqlParameter("@ComparedDate", SqlDataType.DateTime)).Value=Convert.ToDateTime("14/09/1994") Dim reader as SqlDataReader=cmd.ExecuteReader() ...

    Database database help

  • How to Select the last N records based on date?
    N nguyenvhn

    If you are using SQL Server 2005, there is a simple way: SELECT TOP(@N) web_News.ArticleDate, web_NewsLocalized.ArticleTitle, web_NewsLocalized.ArticleText FROM web_News INNER JOIN web_NewsLocalized ON web_News.ArticleId=web_NewsLocalized.ArticleId WHERE ((web_NewsLocalized.ArticleCulture)=[@Culture]) ORDER BY web_News.ArticleDate DESC;

    Database question database tutorial

  • Problem with SQL 2005 Express: View Sorting Order
    N nguyenvhn

    Hello everybody I have a problem with SQL Server 2005 Express. Here are description: In a database, there is a table, name TEST with three columns: a(int), b(int), c(char). I created a view as the following: CREATE VIEW [dbo].[view_test] AS SELECT TOP (100) PERCENT A, B, C FROM dbo.Test ORDER BY A, B Clearly, I want the result set ordered by column A and B. Then I executed the folowing query: SELECT * FROM view_test But the result is not sorted. In SQL Server 2000, the problem does not happend. Is there any comment? Thanks so much.

    Database database sql-server sysadmin algorithms help

  • How to convert a movie/video file into an exe?
    N nguyenvhn

    No way. Make it yourself. Write a program that can play such movies and try to embed that movies in the program as resource.

    C / C++ / MFC tutorial question

  • View/sniff HTTP packets from browser to Web server
    N nguyenvhn

    It would be implemented in the way of a proxy application. Just listen in a free port and using it as a internet proxy

    C / C++ / MFC c++ sysadmin help career

  • Displaying Korean/Chinese Characters???
    N nguyenvhn

    Make sure that resource file was saved with correct unicode encoding. Because of VC++ 6 did not support editting unicode text in its IDE, you may have to open resource script file in an external unicode-based editor to create string resource and save it in unicode format. Try VS.NET 2005 Express, it is free version all fully supporting Unicode.

    C / C++ / MFC c++ design tools help question

  • String comparison
    N nguyenvhn

    If you are using SQL 2005, you can use HashBytes function to calculate a hashing value of password then compare two hashing values. If you use SQL 2000, you can use BINARY_CHECKSUM function instead of.

    Database database

  • Dialog Based ActiveX Control
    N nguyenvhn

    I am not realy sure the problem but I think you should move: CRect rcPanelRect(rcBounds.TopLeft(),CSize(rcBounds.Width(),rcBounds.Height()/4)); configPanel.MoveWindow(rcPanelRect,TRUE); to OnSize event handler.

    C / C++ / MFC question c++ visual-studio com

  • stored procedure Output parameter value is Null
    N nguyenvhn

    I did not see the statement setting value for @genmask_code so infact, it have no return value. Also I think exec GetUserControlTemplateCode 1,'x' will not work because of lacking OUTPUT modifier. It should be: exec GetUserControlTemplateCode 1, @x OUTPUT print @x

    Database database com help question

  • Overloaded member function not found in CNoteMgr
    N nguyenvhn

    Changed as the folowing: BOOL CNoteMgr::drawLine(HDC,HPEN,POINT*,HWND); BOOL CNoteMgr::drawCurve(HDC,POINT*,HWND); Because of your implementation is POINT[]

    C / C++ / MFC help c++ graphics performance tutorial
  • Login

  • Don't have an account? Register

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