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

Search:

Type: Posts; User: berkov

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: Show Dialog (WS_CHILD) but with hidden (SW_HIDE) parent's window

    Gents,

    thanks a lot. I was just hoping that there's some trick for this but i guess SetWindowLongPtr is not so bad idea at the end.

    thanks again!
    SOLVED.
  2. Re: Show Dialog (WS_CHILD) but with hidden (SW_HIDE) parent's window

    That is good idea, the only one prob here is that the moment i'd change that child's parent hwnd to some other visible hwnd is exactly the moment i would need the access to my "original" parent the...
  3. Show Dialog (WS_CHILD) but with hidden (SW_HIDE) parent's window

    Hey ho..

    Does anyone know how to show a child dialog with a hidden parent (SW_HIDE)?

    I've got window HWND parent .. and now:



    HWND child= CreateDialog( GetModuleHandle( 0 ),...
  4. Re: Jet OLEDB:Engine on Windows7 (64bit) - Compact Access Database problem

    Hey ho.. got a bit closer...
    I'm using JET (not ACE) and it seems that the highest version in JET is 4 (not 12), so my string should look like this:

    CompactDatabase(...
  5. Re: Jet OLEDB:Engine on Windows7 (64bit) - Compact Access Database problem

    i am using IE8 - and i don't really think it might be anyhow connected.
  6. Re: Jet OLEDB:Engine on Windows7 (64bit) - Compact Access Database problem

    your link does not really seem to be my case.

    yep, i've searched the internet and have not really found anything useful.
    in most of the threats it says something like:
    "Jet OLEDB is depricated...
  7. Re: Jet OLEDB:Engine on Windows7 (64bit) - Compact Access Database problem

    OK.. seems i have found it.
    for win7 64 i need to also use msado60.tlb, so i commented my previous msado26.tlb and used msado60.tlb with msjro.dll instead, like this:


    //#import "C:\Program...
  8. Jet OLEDB:Engine on Windows7 (64bit) - Compact Access Database problem

    Hey ho!

    I'm using ADO in my WINAPI project with Microsoft.ACE.OLEDB.12 (msado26.tlb) with no problem, but now I need to be able to compact the database from my application and i've learnt that to...
  9. Replies
    9
    Views
    7,565

    Re: CreateFile not creating UNICODE file

    hi.. the whole thing with encoding is so messy! :-)
    and i need to admit i don't really get it.


    so first question, where do i take the chars from?
    3 different sources:
    - 1st part of the xml...
  10. Replies
    9
    Views
    7,565

    Re: CreateFile not creating UNICODE file

    @Codeplug, ok but then apparently EXCEL wants that "BOM" at the beginning in order to interpret diacritics in the file correctly.
    If i create a file using my program and there are some diacritics...
  11. Replies
    9
    Views
    7,565

    Re: CreateFile not creating UNICODE file

    Nope, it's "Use Multi-Byte Character Set"
    if i change it to UNICODE then all string (and i've got hundreds of them) are red underlined by compiler and the compiler won't let me build.
    i am not...
  12. Replies
    9
    Views
    7,565

    CreateFile not creating UNICODE file

    Hey ho!

    I wanna create an XML file which will be in UNICODE format, otherwise EXCEL won't read the local diacritic chars (e.g "ń", "ś", "ć" etc). The chars are in the file after generation but due...
  13. Replies
    25
    Views
    21,384

    Re: COleVariant in WinAPI (afxdisp.h)

    ok.. so everything works.
    the Excel gets open and the cells get filled in .. and all by using OLE Auto.
    btw you won't believe how slow this is!!!! and it seems OLE Auto does not have formatting...
  14. Replies
    25
    Views
    21,384

    Re: COleVariant in WinAPI (afxdisp.h)

    @Victor, thanks a lot for your suggestion. it works!!!
    @Igor, why didn't you come here earlier! :-)


    IDispatch* pRange;
    {
    _variant_t xx;
    xx = "a1";
    VARIANT result;...
  15. Replies
    25
    Views
    21,384

    Re: COleVariant in WinAPI (afxdisp.h)

    Hi Victor.
    Me too, i've only used _variant_t and _bstr_t with ADO, never the raw ones. guess i will have to come back to the documentation and read it once again with understanding this time :-)
    ...
  16. Replies
    25
    Views
    21,384

    Re: COleVariant in WinAPI (afxdisp.h)

    ok .. so i tried this:

    VARIANT xx;
    xx.vt=VT_BYREF | VT_I1;
    xx.pcVal = "a1";

    and no luck.


    i tried then:
  17. Replies
    25
    Views
    21,384

    Re: COleVariant in WinAPI (afxdisp.h)

    Ok. Let me come back home and check it out.
  18. Replies
    25
    Views
    21,384

    Re: COleVariant in WinAPI (afxdisp.h)

    hmm.. the code is very long, it has a lot of pages as i've been writing it for 4 months now.
    but i will try to copy the most important parts:

    xls.cpp:

    #include <windows.h>
    #include "xls.h"...
  19. Replies
    25
    Views
    21,384

    Re: COleVariant in WinAPI (afxdisp.h)

    The project is "Use Multi-Byte Character Set".
    i tried it with _T("a1") and still the same error.
  20. Replies
    25
    Views
    21,384

    Re: COleVariant in WinAPI (afxdisp.h)

    Ah, you are right, didn't see it.

    i tried it and now it seems the BSTR does not take the UNICODE:
    IntelliSense: a value of type "const wchar_t *" cannot be assigned to an entity of type "CHAR *" ...
  21. Replies
    25
    Views
    21,384

    Re: COleVariant in WinAPI (afxdisp.h)

    Hi Victor,
    tried that but then the OLEMethod function breaks at Invoking:
    hr = pDisp->Invoke(dispID, IID_NULL, LOCALE_SYSTEM_DEFAULT, nType, &dp, pvResult, NULL, NULL);


    The code of OLEMethod:...
  22. Replies
    25
    Views
    21,384

    Re: COleVariant in WinAPI (afxdisp.h)

    Ok.. I tried to run it with ATL and MFC libs, i installed 30days version of VC Prof 2012, and although COleVariant worked, there is a lot of dependencies when i started adding ATL libs. i cannot even...
  23. Replies
    25
    Views
    21,384

    Re: COleVariant in WinAPI (afxdisp.h)

    it doesnt really help coz i simply donno how to do this.
    i would like to use ATL and MFC libs in my VC Express 2012 version. i tried few links with using SDK but all refer to old version of SDK and...
  24. Replies
    25
    Views
    21,384

    COleVariant in WinAPI (afxdisp.h)

    Hey ho...

    guess i need some help of experts again.. wanna export listview to MS excel. i found a really nice article on this:...
  25. Replies
    3
    Views
    2,263

    Re: WM_NOTIFY for EDITTEXT (Edit Control)

    I also tried this:


    case WM_COMMAND:
    {
    switch( LOWORD( wParam ) )
    {
    case IDC_inv_comment: if(HIWORD( wParam )==WM_LBUTTONDBLCLK) writetextfromdb(hwnd, IDC_inv_comment,...
Results 1 to 25 of 47
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured