|
On Windows 9x if there is an audio device installed and selected for playback Windows will not use the PC speaker (internal one). The beep statement doesn't always use the PC speaker like in QBasic. It's a wrapper for the Beep Windows API, which will use the sound card if possible.
NT based systems will use the PC speaker for the Beep API. Why is it this way? Who knows, but it is. If you want to ensure you can use the PC speaker you'll have to do things manually. Fortunately, it's already been done.
Look into using the following DLL to help you out...
http://www.stormpages.com/bojanjurca/CSamples.htm#Speaker
Jeremy L. Falcon
"The One Who Said, 'The One Who Said...'"
|
|
|
|
|
Thx for the help with that. I think it will work. I'm not at the comp to test it on but I will find out in about an hour from now. Anyway I think the source coede to the DLL will help me in C++ as well. I've been meaning to learn how to write a DLL, that should help me a great deal. So I thank you two fold for your reply
Quinn
|
|
|
|
|
Hello,
I am trying to determine the best option for storing locally-created data
for a PocketPC financial analysis application. I have skimmed several books
on PocketPC development, and searched the web and various newsgroups for
opinions and guidelines on using flat files, binary files, ADOCE, SQLCE,
XML, and other options **for local application data storage**; but have found little to crystalize my thinking/decision-making. The application is
currently implemented using the basic FileSystem/File control with simple
sequential operations. However, as I extend functionality, the data storage
requirement expands accordingly - resulting in degrading app performance.
So, I thought I would appeal to the PocketPC developer community for some
assistance. I appreciate any thoughts on the subject.
OK, here are some app details:
1) Financial analysis application where the user currently enters 60 - 200
inputs that need to be stored on the PocketPC
2) The data can be grouped into 5 generic categories, each containing 12 -
40 data entries
3) Need to support exporting of user entered data, and approximately 320
app-generated result calculations (for importing into Excel /MS Office apps
on desktop PC) -- a total of 380-520 data items per exported file.
4) Snappy performance when loading and saving data files is desirable
5) The solution can employ either multiple files for each analysis (e.g.,
user data file + app results file + app export file that combines user data
and app results) or a single file containing user data and app results
Thanks in advance,
Donovan Dillon.
|
|
|
|
|
Private Type RECT
left As Long
top As Long
Right As Long
Bottom As Long
X As Long
y As Long
data As String
color As Long
index As Integer
End Type
dim Die() as RECT
I have a class module which populates this array for RECTs from xml fie
Now i want to pass this array to Form which will then use and modify
this data.i want to pass it byref so that form will modify data of
this instance of class.
VB is not allowing me to pass this array as argument to a function.
Anybody can suggest how should i modify this data of class from form.
This is very urgent
thanx in advance
Tushar
|
|
|
|
|
Wrap it in a class module and then pass the class module, and put properties in the class module so it looks like the original type definition.
--
Andrew.
|
|
|
|
|
Wow...That really is a great idea...
FiRoZ
|
|
|
|
|
Hi!
I am using shell to start ftp and send a few commands to a server, resulting in a file being retreived. I then process the file locally. I need to do this with a group of files, so i'm running this in a loop and this gets me into trouble.
All of a sudden, ftp commands show up in the document, since the processing of one file conicides with the retreival of another. I believe that the source of my problems is that shell runs asynchronously. MS states that it does this *by default*. How can I change this default? Or is there some smart work-around I haven't thought of? I already use a loop with DoEvents(), to give the ftp process time to get started before I send any commands to it, and I have a control to ensure that only one ftp process is running at a time (static variable in the procedure).
Any ideas on how to solve this?
Consultant, system/web developer.
IMS Consulting AB, Sweden
|
|
|
|
|
You need to run the preocess with the CreateProcess API...
You can test if the process is running, etc.
If you want I made a COM dll with VC++ for make that you need...
Best Reagards
Enter any 11-digit prime number to continue...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
I'm not sure what the CreateProcess API is. If you have a nice little component that might help, I'd be very glad to try it out! Please send it to my email
If you understand my dilemma, would you mind trying to explain to me how this process works/should work?
Consultant, system/web developer.
IMS Consulting AB, Sweden
|
|
|
|
|
Is anybody out there using the DLLs from www.vbaccelerator.com for menu icons successfully under XP? The icons do not show up for me. Compatability mode does not help the situation
The DLL is working, and is drawing borders around where the icons would noramlly go, but it would appear that the call to ImageList_Draw is not doing anything. Has anyone else had any problems with this?
--
David Wengier
|
|
|
|
|
I finished my little utility program, nothing fancy, just a little printer program for one purpose. When I run it in VB 5 it works just fine, I tell it to Make EXE, it starts compiling, stops with no errors reported so I assume it did it's thing. I goto the dir I told it to compile to and the dir is empty. Any ideas ? I did a search on all my harddrives and file isn't found anywhere.
Any suggestions would be greatly appreciated, thanks in advance
Zed350
|
|
|
|
|
I have an ActiveX DLL that I can only use on machines that have Visual Basic installed on them. I think the DLL is dependant on MSINET.OCX. Can someone please tell me how to either remove the dependency on visual basic being installed or how to install MSINET.OCX onto other workstations.
Thanks in advance for any help you can give.
Steve.
Systems AXIS Ltd
|
|
|
|
|
I think I have found the answer I am looking for. The Package and Deployment Wizard that comes with Visual Studio pointed me in the right direction. To install a .OCX file all you have to do is use the REGSVR32.EXE tool. ie to install my DLL on a workstation without Visual Basic installed I had to do the following:
"regsvr32 axistools.dll" - DLL containing my COM object
"regsvr32 msinet.ocx" - DLL referenced by my DLL
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
I had a program that would create my .rc file for you with drag and drop, then compile it for me useing rc.exe. Anyone know what it was called and where I can get it if it still exsists out there. I d/led one called ResMaker but the install doesn't work, keep getting can't find st4u!!! file error.
Any help would be gretly appreciated
Zed350
|
|
|
|
|
Update . . .
I found the file I was looking for. It's called WinRC. You put your Bitmap, Icon, String and Wave files into it and it compiles it for you without an external compiler. Will compile in 16 and 32 bit so it can be used on VB416 bit, VB432 bit and VB5 and newer. If your interested in getting this little utility just e-mail me at zed350@aol.com and I'll send it off to you. It's Freeware and a small file.
Thanks Again
|
|
|
|
|
Hi,
Problem:
Does anyone know of a way to retrieve the full path and file name of an application with just the handle to the window?
I have called the API function "FindWindow" to retrieve the handle:
Dim lngRet as Long
lngRet = FindWindow(vbNullString, "MyTitle")
But how can I obtain further from this?
Help Please!!!
Brian Woodburn
|
|
|
|
|
Given a window handle you should be able to use GetWindowModuleFileName API. However, it does not appear to work on Win95, only 98 or later.
UINT GetWindowModuleFileName(
HWND hwnd,
LPTSTR lpszFileName,
UINT cchFileNameMax
);
|
|
|
|
|
Anyone know how to do voice command using VB programming????
|
|
|
|
|
|
I have a DLL written in Visual Basic that contains 1 COM object. Could somebody please tell me how do I find out the CLSID and REFIID to pass to CoCreateInstance() to use the object in a C++ program. I have full access to the DLL source and a copy of Visual Basic. OLE View gives several CLSID's but I'm not sure which one to use.
Thanks in advance for any help you can give.
Steve.
|
|
|
|
|
In oleview the CLSID for the component is the one found above the coclass declaration. Interface ID is the one found above the interface declaration.
|
|
|
|
|
Anyone know where I can find documentation for writing modules in Visual Basic?
Everyone welcome the NewbiE!!!!
First Programmer: "How many bits are in a bite?"
Second Programmer: "You spelled bytes wrong."
First Programmer: *stares* "It's a joke, moron."
Second Programmer: "Joke...?"
|
|
|
|
|
What exactly are you looking for. I know that most people, including myself usually write functions that are stored within a module. Could you be more specific?
Nick Parker
|
|
|
|
|
Well, you see, I really don't know what I'm talking about. I used to make some QBASIC junk and after I installed Visual Basic to my computer, all my .bas files turned into VBasic modules, so I was wondering what that was all about.
Everyone welcome the NewbiE!!!!
First Programmer: "How many bits are in a bite?"
Second Programmer: "You spelled bytes wrong."
First Programmer: *stares* "It's a joke, moron."
Second Programmer: "Joke...?"
|
|
|
|
|
I have created an Ocx control in vb.This control has a textbox to serach the text entered in it.After entering the text anyone can delete the entered text using backspce key.I mean to say the i have traced the backspace key using it's ASCII value as 8 and it works fine.But when i
attach this ocx control to my browser like yahoo and Google toolbar, then now backspace key doesn't work ie.it doesn't delete text.Could anyone help me please?
|
|
|
|