|
Hi, I need to create a 'Timer' function for my MIDI sequencer project. I've heard that the Windows timer is not too reliable, but I'm not experience enough to write something more solid on my own.
Ideally, the timer function could be implemented in the following way:
Timer Function definition
Parameters: x, y, z, a (function type, time value, function name, return result)
X (function): 1 - start
2 - stop
3 - reset to 0
4 - call z every y milliseconds
Y (time value) - a value range (long integer)
Z - name of a function to call
A - long integer return result (for reading time value)
Does anyone have any idea of how to help me with this? I'd be so grateful you wouldn't believe!!!
|
|
|
|
|
Although there is some criticism of OnTimer, there is a function called OnWindowsTimer or something, which measures time since Windows started and is, I am told, more reliable.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Where do I find a list of what files to include in my installation when I use ODBC CRecordset interface to and Access DB file.
Happy programming!!
|
|
|
|
|
Where do I find a list of what files to include in my installation when I use ODBC CRecordset interface to and Access DB file.
Happy programming!!
|
|
|
|
|
i used a c code under dos to read LPT port address
using a function in dos.h
it was peekb(segment,offset)
as the following peekb(0x0,0x408);
how can i do it with visual c++?
thank you
|
|
|
|
|
Anybody know how to Play single note in MIDI???
Example "C" or "D7" etc.
Please help me.
|
|
|
|
|
First some music theory ;0)
D7 is NOT a single note, but rather a collection of four, namely D, F, A and C, with the D note lowest. Did you mean chords, or did you mean single notes and not understand this ?
Either way, DirectX8 integrates DirectMusic with DirectSound, so it will get MIDI up and running for you if you download the SDK from the Microsoft site. I'm sorry, I've not done it yet myself, I've just got through DDraw and DInput. DSound is next ;0)
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
First of all - you don`t need directX to playback midi.
to play a midi note from an app you have to do the following things:
a) get a handle to midi-device ( start with MIDI-MAPPER - easier@beginning )
use: midiOutopen(...)
b) send a midi-note-on string by
use: midiOutShortMsg(...)
a note-on-command consists of 3 bytes
channel/note-on -> coded in 1. byte
note-number -> coded in 2. byte
note-velocity -> coded in 3. byte
c) send a midi-note-off-string
see b)
d) close midi-devices
use: midiOutClose(..)
For information see MSDN or http://www.harmony-central.com/MIDI/
Hope I forgot nothing important because i have written a midi-dll once and it works fine for years
Greating Mario
--------------------
www.klangwerker.de
rocknix@lycos.de
--------------------
|
|
|
|
|
Hi every body,
I have a project using MFC in a static library. If i compile it my exe size is 2500 ko in release mode. I heared it is possible to compile without symbols in order to decrease this size.
Can anybody say me how to do this ?
Best regards,
Cheickna
|
|
|
|
|
What you heard probably (though not necessarily) refers to compiling debug information into your release executable. This is normally turned off by default. Project->Settings->C/C++ ->Debug Info, select none.
What's giving you the large size is using the MFC static library. That is a big honking library. If you desperately need smaller size, use MFC as a DLL.
Hope this was on track.
|
|
|
|
|
Hi , if I have a VC++ project which applies to Windows SDK and so how am I going to make it work in Windows SDK to generate a .exe?
|
|
|
|
|
I'm sorry, but this question makes no sense. If your program compiles and runs, you HAVE an exe in whatever location VC has been told to put it, most likely under /Debug or /Release.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
I'm sorry, but this question makes no sense. If your program compiles and runs, you HAVE an exe in whatever location VC has been told to put it, most likely under /Debug or /Release.
If it doesn't compile, you didn't install the SDK properly, it actually sets up the include directories for you. Go to tool/options and make sure your SDK lib and include directories are set up properly.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Hi, All!
Can you recommend me somthing like Month Calendar Control?
requirements:
1. day color selection ( like holidays )
2. more than one month displaying if needed
3. adding notes for currently selected day
Microsoft MonthView Control ver. 6.0 and Calendar Control ver. 8.0 can display such a days in bold only. And they can't add comments.
Is there any appropriate freeware ActiveX control? (having source codes will be great, too)
|
|
|
|
|
Serge
Your in luck my friend, I've submitted a Cool Calendar control to Chris about five days ago. He hasn't posted it yet 'cos he's been in the states.
I will bug him to day to post it.
|
|
|
|
|
Or check out:
http://download.cnet.com/downloads/1,10150,0-10009-103-0-1-7,00.html?tag=st%2Ecn%2E10081%2Dron%2Esbsr&qt=calendar&cn=Development+Tools&ca=10009
(www.activex.com)
most will have registration/licencing costs, however.
|
|
|
|
|
If I want to monitor a wm_paint message of any application , do I just need to go and add a windows message handler to my .c file in Visual C++ 6 ?
|
|
|
|
|
Hi !!!
I think you must use hooks functions from Win32API for this task.
Its overview in MSDN help.
Best regards.
|
|
|
|
|
Does C compiler support 32-bit window API? I mean if I create a window program using C compiler , can it be applied to win98
|
|
|
|
|
Yes, almost all comertial programs are programmed in C/C++.
Both programs designed for Win16 (16 bits) and Win32 (32 bits) can be run under Win98. However there are uncountable reasons to use Win32 programming rather than Win16.
I don't know what compiler are you using. Weather your compiler suports Win32 or not should be ask to the compiler manufacturer. For example:
Visual C Version 1.x is designed for 16 bit programming.
Visual C 4.0 and above suports only 32 bit programming.
Borland C 4.5 suports both 16 and 32 bit programming, but it does not have debugger for 32 bit programs.
Borland C 5.0 and above supports Win32.
There are many other windows compilers.
|
|
|
|
|
Yes, almost all comertial programs are programmed in C/C++.
Both programs designed for Win16 (16 bits) and Win32 (32 bits) can be run under Win98. However there are uncountable reasons to use Win32 programming rather than Win16.
I don't know what compiler are you using. Weather your compiler suports Win32 or not should be ask to the compiler manufacturer. For example:
Visual C Version 1.x is designed for 16 bit programming.
Visual C 4.0 and above suports only 32 bit programming.
Borland C 4.5 suports both 16 and 32 bit programming, but it does not have debugger for 32 bit programs.
Borland C 5.0 and above are designed for 32 bit programming. I'm not sure if it also supports 16 bit programming also.
There are many other windows compilers.
|
|
|
|
|
Does C compiler support 32-bit window API?
|
|
|
|
|
Yes, almost all comertial programs are programmed in C/C++.
Both programs designed for Win16 (16 bits) and Win32 (32 bits) can be run under Win98. However there are uncountable reasons to use Win32 programming rather than Win16.
I don't know what compiler are you using. Weather your compiler suports Win32 or not should be ask to the compiler manufacturer. For example:
Visual C Version 1.x is designed for 16 bit programming.
Visual C 4.0 and above suports only 32 bit programming.
Borland C 4.5 suports both 16 and 32 bit programming, but it does not have debugger for 32 bit programs.
Borland C 5.0 and above are designed for 32 bit programming. I'm not sure if it also supports 16 bit programming also.
There are many other windows compilers.
|
|
|
|
|
How to execute outproc COM server from IIS extention with IIS 3
|
|
|
|
|
Hello,
I made this MFC prog (SDI) that changes the default formview to another
formview, but strangly all the controls (derived from CWnd) on this new
formview are missing their CWnd handle (m_hWnd = 0x0000000). what could be
causing this ??
thx,
Pedro Fortuna
|
|
|
|