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

Search:

Type: Posts; User: cksiow

Page 1 of 30 1 2 3 4

Search: Search took 0.43 seconds.

  1. Replies
    4
    Views
    935

    Re: How to check if a thread is hang

    actually i am doing it now, but just wondering if there is any "System Function" that I can use to make the work ease.
  2. Replies
    4
    Views
    935

    How to check if a thread is hang

    I understand that we can use the function SendMessageTimeout to check if a window is hang. But how about a thread, that didn't call GetMessage ? Thanks.
  3. Replies
    0
    Views
    1,132

    SO_SNDBUF & blocking

    I use the SO_SNDBUF option to force the winsock to send the data immediately to other computer. I set SO_SNDBUF to zero. However, sometime, the WSASend is blocked when I do so. I have disable...
  4. Replies
    1
    Views
    718

    how to set symbol directory for visual C++

    i have install the symbol for my system, it's under c:\winnt\symbols; but when i debug a program the following message still being showed.

    Loaded 'D:\WINDOWS\system32\kernel32.dll', no matching...
  5. Replies
    3
    Views
    1,207

    SafeArrayAllocDescriptor

    does anybody have any clue on using the function SafeArrayAllocDescriptor to create an safearray ? I only need to safearray descriptor cause i already got my data. SafeArrayCreate doesn't seem to...
  6. Replies
    2
    Views
    1,087

    did u solve the problem ?

    did u solve the problem ?
  7. Thread: rename dsn

    by cksiow
    Replies
    1
    Views
    882

    rename dsn

    I need to rename a dsn for a database programmably, please help, thanks.
  8. how to add more than 3 checked box dialog in deployment project

    how can we add more than 3 checked box dialog in deployment project for VS.Net ?

    can i ask user defined dialog box ? thanks
  9. how to call IDispatch::Invoke using user defined parameter ?

    how can we pass a user defined variable using idispatch invoke method ? I mean using invoke, all parameter must be stored in variant, and I have tried VT_USERDEFINED, but VB doesn't get it.... &...
  10. Re: what can't msflexgrid cellforecolor accept negative value ?

    i forgot to place & at the back, should be

    &h8000&


    HTH

    cksiow
    http://vblib.virtualave.net - share our codes
  11. what can't msflexgrid cellforecolor accept negative value ?

    i try to set the color of a cell in msflexgtid, something like this, but it failed

    msflexgrid1.cellforecolor = &h8000

    please advise, thanks


    HTH

    cksiow
  12. Replies
    0
    Views
    462

    PostMessage Query

    I Post a message to a Message-only window using PostMessage from difference thread. Assuming that the window is created in thread A, and I post the message from thread B, & C. If I only post one...
  13. Replies
    5
    Views
    1,090

    Re: Equivalent C statement for VB Set

    for the Advise, how do we get the sink pUnknown ? thanks.


    HTH

    cksiow
    http://vblib.virtualave.net - share our codes
  14. Replies
    5
    Views
    1,090

    Re: Equivalent C statement for VB Set

    thanks. but i don't intend to use ATL, can u change to following statement to C++ statement, assuming my interface is call IClass1

    CComPtr<IClass1> spd;CComPtr<IClass1> spc;spc = spd;

    thanks...
  15. Replies
    5
    Views
    1,090

    Equivalent C statement for VB Set

    in VB, we can set a variable reference to another variable, like this

    dim d as new class1
    dim withevents c as class1

    set c = d

    so, c is not an instance, but rather reference to d, but...
  16. Replies
    2
    Views
    747

    Re: using VB Interface with C++ code

    compile those c++ code into DLL and call it from vb.


    HTH

    cksiow
    http://vblib.virtualave.net - share our codes
  17. Thread: COM

    by cksiow
    Replies
    2
    Views
    650

    Re: COM

    that's has to do with marshalling or more generally syncronization. 2 books which help on this, Advanced VB 6 by Matthew J. Curland & Inside COM by by Dale Rogerson.

    you must be working in VB6, I...
  18. Replies
    0
    Views
    501

    what my type libary being modified ?

    i have a .idl file that having the following declaration

    typedef enum
    {
    .... something
    } x;

    but when i use the OLE/COM object viewer to view the .tlb file, the enum have been...
  19. Thread: SAFEARRAY

    by cksiow
    Replies
    1
    Views
    634

    SAFEARRAY

    i have a declaration like this in idl file

    HRESULT test(SAFEARRAY(VARIANT)* Data);

    how do i declare the equipvalent in C++ ?

    i try

    HRESULT test(SAFEARRAY* Data);
  20. Thread: SMTP Email

    by cksiow
    Replies
    2
    Views
    915

    Re: SMTP Email

    refer http://vblib.virtualave.net for vbSMTP class


    HTH

    cksiow
    http://vblib.virtualave.net - share our codes
  21. Thread: COM sample

    by cksiow
    Replies
    0
    Views
    707

    COM sample

    does anyone have a ActiveX (COM) sample that written in C++ from scratch (not using MFC or ATL), which got some events, i.e. the component should implement IConnectionPointContainer, etc.

    thanks....
  22. Replies
    0
    Views
    2,547

    error RPC_E_SERVER_DIED

    I have a Com component that trigger an event. I have VB sample that use the component. right before I trigger the event, I use the IDispatch::GetTypeInfoCount to test the interface pointer, but I...
  23. Replies
    1
    Views
    504

    Sample COM Components for VB

    Does anyone have any good sample on COM component implementation... not ATL... just normal COM implementation that implement activeX event... so that vb can use it, thanks.


    HTH

    cksiow...
  24. Replies
    1
    Views
    704

    Re: Question on OLE event interface

    after some testing, I found out this.... if i place the event handler in vb in correct sequence... like this

    private sub event1
    end sub

    private sub event2
    end sub

    it works....
  25. Replies
    1
    Views
    704

    Question on OLE event interface

    I create an COM DLL with events. So I implement an event interface in the DLL. I create the type library so that vb can use it. At the very beginning, I have only 1 event, so the program work...
Results 1 to 25 of 740
Page 1 of 30 1 2 3 4





Click Here to Expand Forum to Full Width

Featured