Search:

Type: Posts; User: PatVB

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: unsigned_int64

    by PatVB
    Replies
    2
    Views
    929

    unsigned_int64

    Dll written in C++ is expecting an unsigned_int64 argument. I've tried different var type(Variant and Currency) in VB6 to no luck. Any ideas on how to handle it!
  2. Replies
    1
    Views
    1,635

    Bad DLL calling convention (run time error 49)

    I am calling into a dll this method from VB6:


    Private Declare Function DLSLibSearch_GetLibInfo Lib "DLSLibSearch_ur" _
    (ByVal libName As String, _
    ...
  3. Re: How do I use both GetPrivateProfileStringA and GetPrivateProfileStringW in projec

    [RESOLVED]

    Thank you Gentlemen
  4. Re: How do I use both GetPrivateProfileStringA and GetPrivateProfileStringW in projec

    I was expecting something a bit more flexible like one function that will handle both. Is that possible?
  5. [RESOLVED] How do I use both GetPrivateProfileStringA and GetPrivateProfileStringW in project?

    The project needs to handle ansi as well as unicode. How do I set it up to reference GetPrivateProfileStringA and GetPrivateProfileStringW as needed.



    'Unicode declaration
    Public Declare...
  6. Thread: OCX help..

    by PatVB
    Replies
    14
    Views
    1,315

    Re: OCX help..

    Lavolpe,

    Any questions or ideas about my last post!
  7. Thread: OCX help..

    by PatVB
    Replies
    14
    Views
    1,315

    Re: OCX help..

    Sorry, did not attach file
  8. Thread: OCX help..

    by PatVB
    Replies
    14
    Views
    1,315

    Re: OCX help..

    OK...


    Private Sub Form_Load()
    Dim ret As Long
    SmithsSearch1.InitControl (hWnd)
    ret = SmithsSearch1.InitializeMixtureAnalysis("C:\windows\hazmatid.ini")

    ...
  9. Thread: OCX help..

    by PatVB
    Replies
    14
    Views
    1,315

    Re: OCX help..

    My big booboo, If i just add the ocx on a picturebox the error does not show up but when you run it, it shows up.

    I misunderstood what you exactly wanted me to try.
  10. Thread: OCX help..

    by PatVB
    Replies
    14
    Views
    1,315

    Re: OCX help..

    No, the error does not show up when placed on a picturebox. Could it be a property issue on c++ side?
  11. Thread: OCX help..

    by PatVB
    Replies
    14
    Views
    1,315

    Re: OCX help..

    "Did you try to add the OCX in a blank (new) VB6 project, and see if you get that error ?
    "
    Yes I have. Within the vb6 environment, I get the error and also running the exe as stand alone. But...
  12. Thread: OCX help..

    by PatVB
    Replies
    14
    Views
    1,315

    Re: OCX help..

    Sorry...it is VB6. what is so striking is that the very first version of that ocx worked and the very latest and greatest does not. The developer assured me that nothing has changed in terms of the...
  13. Thread: OCX help..

    by PatVB
    Replies
    14
    Views
    1,315

    OCX help..

    I receive an ocx built from c++ environment, when I run it from Vb IDE environment, I get a "runtime error '2147417848 (80010108) method of object failed'.

    For troubleshooting, I run the...
  14. Replies
    3
    Views
    2,114

    Re: Run-Time Error 49: Bad Dll calling Convention

    That did not solve it
  15. Replies
    3
    Views
    2,114

    Run-Time Error 49: Bad Dll calling Convention

    I am trying to call in into a c++ dll:


    GetLibInfo(LPCTSTR libName, long* numEntries, long* numPoints, HANDLE* hLibComment, double* firstX, double* lastX, DATAXTYPE* pxtype, DATAYTYPE* pytype,...
  16. Replies
    11
    Views
    1,141

    Re: [RESOLVED] Static or Dynamic?

    Very interesting....it remains to be seen if this makes it more efficient..Thanks a bunch
  17. Replies
    11
    Views
    1,141

    Re: [RESOLVED] Static or Dynamic?

    The class code is attached...

    Thanks
  18. Replies
    11
    Views
    1,141

    Re: [RESOLVED] Static or Dynamic?

    Lavolpe,

    I am referencing your idea above to make the bmp on the uctrl static using a resource file. With multiple uctrls place on a form, only one is displayed properly. The other ones are all...
  19. Replies
    17
    Views
    9,475

    Re: run time error 398 'client site not available'

    What I am confused about is that the other third party control that I've tried in the app does not exhibit this symptom. Using the doevents and the sleep tells me that there is a timing issue within...
  20. Replies
    17
    Views
    9,475

    Re: run time error 398 'client site not available'

    I am about to go home so if you have any ideas, I will check back in about 1 hour when I get home.

    It definitely would be nice to solve this without the work around which is:
    DoEvents
    ...
  21. Replies
    17
    Views
    9,475

    Re: run time error 398 'client site not available'

    Double cool, everything that you described is correct.

    I did a search and I do not have any custom code calling UserControl_GotFocus.

    No the ocx is not inside another usercontrol.
  22. Replies
    17
    Views
    9,475

    Re: run time error 398 'client site not available'

    With your patch: Same error message and it is Choking(in bold) in the UpdateState method:



    Case WM_SETFOCUS ' only called by UserControl_GotFocus
    ' set Focus flag unless exlcuded....
  23. Replies
    17
    Views
    9,475

    Re: run time error 398 'client site not available'

    I did not remove nor re-add it. I first closed the app, recompiled and register the ocx then open the app and redirect to the ocx. If you think that I should remove it and recompile then it will be...
  24. Replies
    17
    Views
    9,475

    Re: run time error 398 'client site not available'

    Here is the code from the Form


    Private Sub CloseButton_Click()
    UnloadTheForm Me
    DoEvents
    Sleep 50
    AdvancedFeaturesForm.CallUnloadButton
    End Sub
  25. Replies
    17
    Views
    9,475

    Re: run time error 398 'client site not available'

    Before applying your patch: these two lines made the problem go away
    DoEvents
    Sleep 50

    Applying your patch without the lines above did not work.

    Any Ideas! I kind of agree with your...
  26. Replies
    17
    Views
    9,475

    Re: run time error 398 'client site not available'

    here is the problem: As the app is running, it loads and unload forms and the error is happening in one form being unloaded but works fine in the others. So it is a bit confusing right now...

    The...
  27. Replies
    17
    Views
    9,475

    Re: run time error 398 'client site not available'

    Windowless Property = False


    Private Sub UserControl_Initialize()
    ' BUTTON TEMPLATE CODE\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    m_timerProc = zb_AddressOf(1, 4) '...
  28. Replies
    17
    Views
    9,475

    run time error 398 'client site not available'

    I've built a custom button ctrl using lavolpe's template. While testing it in an application, I get this "run time error 398 client site not available". Where should I check to solve this problem?
  29. Replies
    17
    Views
    1,422

    Re: Buffering to prevent Flickering

    Thanks....Looks like it is going to a busy week-end again.
  30. Replies
    17
    Views
    1,422

    Re: Buffering to prevent Flickering

    Take a look at this bmp file.
  31. Replies
    17
    Views
    1,422

    Re: Buffering to prevent Flickering

    I have to get a better handle on this anomaly.
    At design time, I have the white corner but at run time it turns to a greyish black color. If I move the form around to force it to repaint at run...
  32. Replies
    17
    Views
    1,422

    Re: Buffering to prevent Flickering

    let's try the easy one first: SetStretchBltMode API

    Where and which dc do I use it on?
    1. Should I use it on the buffer before StretchBlt?
    2. Should I also use it on UserControl.hdc?
  33. Replies
    17
    Views
    1,422

    Re: Buffering to prevent Flickering

    I have a tiny bug., on the top left corner of the bitmap, there is a white color like bleeding thru whereas the other three corners do not have it. Is it imperfection in the bitmap or the code?
  34. Replies
    17
    Views
    1,422

    Re: Buffering to prevent Flickering

    Got it!
  35. Replies
    17
    Views
    1,422

    Re: Buffering to prevent Flickering

    Thank you Gents, your suggestions helped. But, it also created(not necessarily your suggestions) another problem which black corners(4) around the bitmap. Where should I look to solve for it?



    ...
  36. Replies
    17
    Views
    1,422

    Buffering to prevent Flickering

    This code flickers on DrawButton and sizing of bitmap works fine.



    ' first, blit the mask to the Picture Box Control
    StretchBlt UserControl.hDC, 0, 0, UserControl.ScaleWidth,...
  37. Replies
    11
    Views
    1,141

    Re: [RESOLVED] Static or Dynamic?

    Ok then .....thank you for your explanation and I'll implement it
  38. Replies
    11
    Views
    1,141

    Re: Static or Dynamic?

    Unfortunately, none of the above although I will use your idea somewhere else.

    Right now I have a bipmap sitting on my custom ctrl with no container, the user ctrl is the container. I use strchblt...
  39. Replies
    11
    Views
    1,141

    [RESOLVED] Static or Dynamic?

    I am "attempting" to create a custom cmd button ctrl with my own bitmap to give it its own skin.

    The question is, by placing the bitmap on the user ctrl at design time, is it being handle...
  40. Replies
    29
    Views
    3,577

    Re: Changing Text color(mouse hover)

    Lavolpe,

    Thanks for your insights, I just did not know how involve this was. I do not have a problem doing the research and the digging, it is just frustrating when I get stuck and with a deadline...
Results 1 to 40 of 135
Page 1 of 4 1 2 3 4



Click Here to Expand Forum to Full Width