This might be of help. Not sure if it's what you are looking for but it does appear to show images in a combobox.
Type: Posts; User: jmsrickland
This might be of help. Not sure if it's what you are looking for but it does appear to show images in a combobox.
Looks like a treeview.
Going through the menu bar of Notepad these are what I need
File
----
Page Setup
Edit
----
Find
Doesn't the combobox have image property?
I'm working on a VB6 project which among many things needs a textbox that has Notepad capabilities.
Anyone have such a Form with code?
I originally started out by embedding Notepad into the...
Problem solved.
All I have to do is to put a variable switch in the waveInProc to disallow entry before the waveInReset is called.
Well I narrowed it down to the waveInReset API causing the hangup. I read on the net that this appears to be a common problem however it didn't cause any problems before I put the waveInAddBuffer in...
Anyone know where/how I can get info on how to write ODL code?
Using Dilettante's example as posted in #9 I modified it to make an ODL file for the waveInAddBuffer.
[
uuid(b030018c-4fe9-4a1b-bd38-0a7a4537b80b),
helpstring("WaveAddBuffer Type...
@Max187Boucher
Yesterday I did not turn off my PC until I stopped messing around with that problem. Last night I turned off PC then next morning (this morning) I went back to do more testing and...
Well, here is the strange thing.
Yesterday I put your CopyMemory in the waveInProc and it was the only thing in that proc. Case _OPEN and Case _CLOSE had no code at all. Case _DATA only had your...
It's not just yours. I made another typelib using an MS example and that too causes crash. Looks like that sort of kills your theory about all that COM and TypeLib stuff.
Kind of defeats the...
@dilettante
Still crashes.
As I said in post #17 it worked - no problem....but
...when I put the exact same code in the waveInProc the app crashed. This was the only code I used as I...
Spoo, How did you get "keywords to go blue" in your post?
I read where I need uuid.exe to generate the uuid I need for making ODL files. I found uuidgen.exe on my pc but not uuid.exe. Does uuidgen.exe do the same as uuid.exe
Interesting. Never ran into that problem in all the years I have used pictureboxes in VB programming. I'll take your work for it however
Then use ScaleWidth and ScaleHeight.
I kind of thought that myself
Why don't you just use Picture1.Width and Picture1.Height only? Why the other stuff?
Private Declare Function GetPixel Lib "gdi32" Alias "GetPixel" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Dim c As Long
c = GetPixel(Picture1.hdc, 0, 0)
c will contain...
GetPixel retrieves the pixel from the bitmap image's (hdc) X and Y position specified in the API and returns it's color
Public Declare Function GetPixel Lib "gdi32" Alias "GetPixel" (ByVal hdc As...
The one I posted looks nothing like the one from #5. It's more like what you would see if you speak into a mic which is what it does. Very jagged display
I copied you ODL source, used MIDL.EXE and compiled it into a TBL. I opened up a new VB project and gave reference to that TBL. In a Sub I used it like this:
Private Sub Command1_Click()
Dim...
I found MIDL.EXE along with MIDLES.H on my system in a VC98 folder. So is this one you are referring to
I see where it has MoveMemory in it. Does this mean that if I reference that TBL in any VB project I do not have to Declare RtlMoveMemory in my project
I read that remark from MS. That's what then made me think about the other APIs I was using.
I have a C written app that also uses waveInProc and in that Proc are the CopyMemory and some other...
Not sure what exactly you are looking for but here is a small and very simple sine wave generator in real time.
OK, thanks dilettante, that's all new to me but I will give it a try and see how well I do. Although I figured out a way to make my current app work I don't think it's the best way to do it but it...
OK, so how do I create a typelib and then reference it? I have never done anything like that.
OK, I just now discovered something. When I run app as stand-alone it is from the IDE and it never crashes but if I run it from the EXE (I double click on the EXE file) it will crash. So, that now...
When the app is shelled nothing takes place until the Start Recording button is clicked. On click it immediately enters Public Function StartRecord which runs to the point I indicated in red.
1)...
I'm working on this sound application that uses waveIn/waveOut to capture sound and display a sine wave in real time. If I run the app as a stand-alone it works perfectly but if I shell it then it...
How do I open VB6 and always open with the module I choose?
When I am working on a VB project which has multiple modules I would like to open VB each time be at the module page I am working in...
Seems like a lot of convoluted code just to get a callback. It's in a project I got off the net and it was originally placed in a class module but I didn't want any class modules so I placed it in a...
This code is continued from 1st post as it was too long
'Return the address of the specified DLL/procedure
Private Function zFnAddr(ByVal sDLL As String, ByVal sProc As String) As Long
...
I got this code off the Net from a project. The best I can make out it sets up some kind of a callback function but I'll be danged if I can figure it out.
Public Function sc_Subclass(ByVal...
Well I have tried SendMessage and PostMessage. It simply doesn't work. I decided to use two buttons, one to start and the other to stop. With two buttons it works correctly.
App1 is a client so wouldn't it be a single instance per user?
MAX, I thought that BM_CLICK was both mouse down and mouse up (hence Click).
I'll try adding a BM_MOUSEUP and see what happens. Thanks for the thought, however.
I have two apps, App1 and App2. App1 has the HWND of App2's Command1 button. In App1 I have this code:
App1 Code
Private Sub Command1_Click()
If Command1.Caption = "Start" Then
...