Search:
Type: Posts; User: PatVB
Search:
Search took 0.03 seconds.
-
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!
-
I am calling into a dll this method from VB6:
Private Declare Function DLSLibSearch_GetLibInfo Lib "DLSLibSearch_ur" _
(ByVal libName As String, _
...
-
[RESOLVED]
Thank you Gentlemen
-
I was expecting something a bit more flexible like one function that will handle both. Is that possible?
-
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...
-
Lavolpe,
Any questions or ideas about my last post!
-
Sorry, did not attach file
-
OK...
Private Sub Form_Load()
Dim ret As Long
SmithsSearch1.InitControl (hWnd)
ret = SmithsSearch1.InitializeMixtureAnalysis("C:\windows\hazmatid.ini")
...
-
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.
-
No, the error does not show up when placed on a picturebox. Could it be a property issue on c++ side?
-
"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...
-
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...
-
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...
-
-
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,...
-
Very interesting....it remains to be seen if this makes it more efficient..Thanks a bunch
-
The class code is attached...
Thanks
-
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...
-
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...
-
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
...
-
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.
-
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....
-
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...
-
Here is the code from the Form
Private Sub CloseButton_Click()
UnloadTheForm Me
DoEvents
Sleep 50
AdvancedFeaturesForm.CallUnloadButton
End Sub
-
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...
-
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...
-
Windowless Property = False
Private Sub UserControl_Initialize()
' BUTTON TEMPLATE CODE\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
m_timerProc = zb_AddressOf(1, 4) '...
-
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?
-
Thanks....Looks like it is going to a busy week-end again.
-
Take a look at this bmp file.
-
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...
-
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?
-
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?
-
-
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?
...
-
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,...
-
Ok then .....thank you for your explanation and I'll implement it
-
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...
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|