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

Search:

Type: Posts; User: Kivju

Page 1 of 4 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    18
    Views
    8,120

    Re: VC++ 2010 OLE WinXP

    Victor and Arjay, this solve my problem.

    But please, could you explain why XP need this "CoInitialize(NULL);" and WIN 7 not ?

    Thanks for help.
  2. Replies
    18
    Views
    8,120

    Re: VC++ 2010 OLE WinXP

    CreateDispatch returning scode = CO_E_NOTINITIALIZED ($800401F0).
  3. Replies
    18
    Views
    8,120

    Re: VC++ 2010 OLE WinXP

    Debugging Win7 and COleDispatchDriver::GreateDispatch returned value = 1 but
    same return value in XP is 0
  4. Replies
    18
    Views
    8,120

    Re: VC++ 2010 OLE WinXP

    Registering does not help.

    I know something about OLE but normally was very easy to made new project with VC++ and after that add new class -> MFC Class From Typelib.
    After choice current type...
  5. Replies
    18
    Views
    8,120

    Re: VC++ 2010 OLE WinXP

    Not start and nothing in Windows event log.
    I tried this in two platform (XP) without good result.

    Is there some kind toolkit for VC 2010 or cause this error from wrong Framework ?
    Probably i...
  6. Replies
    18
    Views
    8,120

    Re: VC++ 2010 OLE WinXP

    I see in Task manager at OLEServer.exe does not start in XP but in Win 7 it starts.
    Off course first i call it CreateDispatch.
  7. Replies
    18
    Views
    8,120

    Re: VC++ 2010 OLE WinXP

    Yes, this file exist in XP machine but what you mean registered ?
    I can start OLEServer.exe manually and this work like i want.
  8. Replies
    18
    Views
    8,120

    Re: VC++ 2010 OLE WinXP

    Thanks Victor.

    Double-backslashes changed to single backslashes but this does not help and like i write this works fine in Win 7.
  9. Replies
    18
    Views
    8,120

    [RESOLVED] VC++ 2010 OLE WinXP

    Hi,

    i made solution which make OLE call.

    Call:


    oCredentials.CreateDispatch("LTSERVER.LTCREDENTIALS.1");

    oCredentials.put_UserName( (LPCTSTR)str_GCUsername );
  10. Replies
    4
    Views
    1,121

    Changing CString variable runtime..

    Hi !

    is an easier way to do next ?

    CString CSKRvalue = L"";
    CString CSKR1 = L"";
    CString CSKR2 = L"";
    CString CSKR..............

    for(int ie1 = 0; ie1 < m_list_data.GetItemCount(); ie1++)
  11. Replies
    1
    Views
    749

    ODBC Create customname table to excel

    I want make custom name to excel sheet because i want change this runtime



    CString MyString = L"CustomSheetname";

    sSql = "CREATE TABLE MyString (CODE TEXT,......

    This doesn't work
  12. Replies
    3
    Views
    878

    Re: Ownerdraw listctrl qsort

    Thanks,

    now this works fine :)



    CLabelItem *p1 = (CLabelItem*)elem1;
    CLabelItem *p2 = (CLabelItem*)elem2;

    int iP1 = _tstoi(p1->CSFistID);
  13. Replies
    3
    Views
    878

    Ownerdraw listctrl qsort

    I have follwing code:



    int __cdecl CompareByLabelID(const void *elem1, const void *elem2)

    CLabelItem *p1 = (CLabelItem*)elem1;
    CLabelItem *p2 = (CLabelItem*)elem2;

    return...
  14. Replies
    9
    Views
    5,780

    Re: Unicode and find exceldriver

    Now i know and this work

    http://www.i18nguy.com/unicode/c-unicode.html

    if (wcsstr(pszBuf, _T("Excel")) != 0)

    pszBuf = wcschr(pszBuf, '\0') + 1;


    :wave: :thumb:
  15. Replies
    9
    Views
    5,780

    Re: Unicode and find exceldriver

    Thanks, you are so fast.

    Please don't get nervous but i made all this changes and get same error
  16. Replies
    9
    Views
    5,780

    Re: Unicode and find exceldriver

    Thank you for very fast reply !!!!

    I change this but next error and line is:

    error C2665: 'strstr' : none of the 2 overloads could convert all the argument types

    if (strstr(pszBuf, "Excel")...
  17. Replies
    9
    Views
    5,780

    Unicode and find exceldriver

    Hi, next code doesn't work whith unicode.
    debug error:
    error C2664: 'SQLGetInstalledDriversW' : cannot convert parameter 1 from 'char [2001]' to 'LPWSTR'
    How i fix it ?

    char szBuf[2001];
    ...
  18. Replies
    1
    Views
    567

    ListCTRL assembly

    Hi, please tell me better and simple way to do this code:


    int aa = 0;

    for ( int ii = 0; ii < m_list4.GetItemCount(); ii ++ ){
    m_list6.InsertItem(aa, m_list4.GetItemText(ii, 0)); ...
  19. Replies
    1
    Views
    742

    Re: Listctrl Increasing of the information .

    int aa = 0;

    for ( int ii = 0; ii < m_list1.GetItemCount(); ii ++ ){

    m_list3.InsertItem(aa, m_list1.GetItemText(ii, 0));
    m_list3.SetItemText(aa, 1, m_list1.GetItemText(ii, 1));
    ...
  20. Replies
    1
    Views
    742

    Listctrl Increasing of the information .

    Hi,
    I don't understand how i do next in listctrl:
    There is data in the two listctrls.


    Listctrl 1 :
    columm 1 | columm 2
    1 | work1.1
    1 | work1.2
    2 | work2.1
  21. Thread: txt file size

    by Kivju
    Replies
    3
    Views
    765

    txt file size

    Hi,
    I read "data.txt" and max size is 775 kt, about 30 000 items.
    I change all this red values

    How i can read bigger file ?

    Thanks

    str_read = "data.txt";
    char list[1000000];
  22. Thread: Fast Query

    by Kivju
    Replies
    3
    Views
    688

    i'm stupid, could you elaborate ?

    i'm stupid, could you elaborate ?
  23. Thread: Fast Query

    by Kivju
    Replies
    3
    Views
    688

    Fast Query

    Is possible make faster query ?
    I have follow code and this is slow.
    Different system ?


    CString Day= "20040524";
    CString Period1 ="Other1";
    CString Period2 ="Other2";

    m_pSet->Close();
  24. Thread: LNK4089 again

    by Kivju
    Replies
    21
    Views
    3,033

    I'm pleased, at expert look my code. I do what...

    I'm pleased, at expert look my code.
    I do what you recommend.

    Thanks again !
  25. Thread: LNK4089 again

    by Kivju
    Replies
    21
    Views
    3,033

    When click calendar "UUSI KAUSI" application...

    When click calendar "UUSI KAUSI" application crash.
    When call GetCurrentDay() application crash.

    Like i say, after reinstalling studio. the above works

    'You really have turtles here '
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured