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

Search:

Type: Posts; User: dlhc922

Page 1 of 2 1 2

Search: Search took 0.05 seconds.

  1. Replies
    1
    Views
    1,010

    SQLBindParameter WCHAR "20" to 3145778?

    Hello,

    I use ODBC API to insert records into database with storage procedure (sql server 2k5) , the field in table is ntext type.

    Use SQLBindParameter to bind a wchar parameter.
    ...
  2. Replies
    12
    Views
    1,518

    Re: address or value ?

    sorry , your code is right.

    I met another problem.


    void* p ;

    p can point to many underlying typies

    for example:
  3. Replies
    12
    Views
    1,518

    Re: address or value ?

    thanks
    It doesn't fit my case.
  4. Replies
    12
    Views
    1,518

    Re: address or value ?

    when char* , it seems not be right.

    char* pStr = "abc";

    void* pValue = pStr;

    char szBuffer[128];

    sprintf( szBuffer , "%x", (char*)*(char*)p );
  5. Replies
    12
    Views
    1,518

    Re: address or value ?

    Thanks , petter

    In the memory window in vc++ IDE , I can see the value by the memory address, I only want to convert the value to ASCII, any method like this.
  6. Replies
    12
    Views
    1,518

    Re: address or value ?

    It worked ,thanks

    But in my case ,the void* pValue maybe point to char* , int* , float*....


    sprintf( szBuffer , "%x", *(int*)p); doesn't fit every case.

    How to resolve this?

    Thanks
  7. Replies
    12
    Views
    1,518

    address or value ?

    Hello,

    Here is my code:

    int i = 20;
    void* p = &i;
    char szBuffer[128];

    sprintf( szBuffer , "%x", (char*)p);
  8. Replies
    1
    Views
    963

    How to handle menu item clicked event?

    Hi ,

    I was working on an ATL control.
    There is a dynamic popup menu in the control , items for menu is saved in txt file.

    Below is code for demo:

    CMenu menuPopup;...
  9. MFC Activx Contrl can not be diplay normally in IE7

    Hello,

    I'm working on an mfc control used in Internet Explorer.

    When in IE6 , it worked well.

    In IE7 , it worked well without zoom in/out.
    But zoom in to a larger or smaller...
  10. Replies
    0
    Views
    2,832

    CoTaskMemFree crash ??

    Hello,

    I worked on an old project (COM).
    There is a dll file in the project which provide two functions to allcoate memory and free memory. (e.g foo1() ,foo2() ).
    I checked source...
  11. Replies
    1
    Views
    765

    The memory could not be "read"

    My application is a win32 service which have several thread to handle the data read from http server.

    It worked well on Win xp ,win 2k .
    but on win 2003 server R2 , when try to stop the service...
  12. Thread: CButton

    by dlhc922
    Replies
    4
    Views
    875

    Re: CButton

    maybe local variant

    make the CButton as the member field of class
  13. Thread: about CString

    by dlhc922
    Replies
    3
    Views
    878

    about CString

    Hi all
    when use CString::GetBuffer()
    Should I use CString::ReleaseBuffer() to free memory??

    thanks
  14. Re: How to handler the event of Sql server in vc++

    Compare each table will have two problems.

    1. efficiency
    there are hundreds of tables and the data's size will be reache many GBs
    It will spend long time to finish the compare


    2. Just in...
  15. Re: How to handler the event of Sql server in vc++

    I need to monitor the db table

    if there are some operations such as insert ,delete ,update

    I should handler the event and get the changes of table.
  16. Replies
    3
    Views
    594

    Re: How to get the update or insert time

    thanks

    i am sorry

    I don't want to get the duration of update or insert

    I want to get the last update time or create time.
  17. Re: How to handler the event of Sql server in vc++

    thanks

    I can't create any other objects( table,view,sp,trriger .etc..) for the db

    I think sql server should supply the api for event handler when data is inserted or updated .but I down konw...
  18. How to handler the event of Sql server in vc++

    How to handler the event of Sql server in vc++

    thanks:)
  19. Re: how to export the report to csv file in VC++ MFC

    what's about the report's format ? all strings or integers ??
    if that ,you can write them to csv file line by line ,
    every two fields should be separated by comma.

    pay attention to the string...
  20. Replies
    3
    Views
    594

    How to get the update or insert time

    In Sql server.
    There is a table has two fields : "id " , "name"

    I insert a record into the table or update a record

    and how to get the update or insert time by vc++??
  21. Replies
    15
    Views
    80,664

    Stack vs Heap ??

    I have confusion on allocate memory from Stack or Heap?

    Anyone can demonstrate me with some code ?

    which is allocated from Stack and which is from Heap

    thanks : )
  22. Replies
    8
    Views
    3,724

    Re: How to handle these Exception with MS ADO?

    if try to logon with wrong user name and password
    it will return "Login failed for user ..."

    if use query statement not in Syntax

    it will return "Invalid authorization specification


    you...
  23. How to differentiate numeric and decimal in ADOX

    I want to retrieve tables' columns' information in sql server 2000 by ADOX

    but if the columen was defined as type : numeric or decimal

    pColumn->Type both return 131

    how to differentiate ...
  24. Replies
    9
    Views
    1,687

    Re: how to write the regular expression

    Thanks for your advice

    I will. : )
  25. Replies
    9
    Views
    1,687

    Re: how to write the regular expression

    thanks

    I plan use regular expression to parse the SQL statement(only for create table) to get the fileds' information.

    but there are too many difference among them.

    I had changed the...
Results 1 to 25 of 38
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured