Hi, is there any way how to prevent child process, created in C# code using Process class, to inharit parent process inharitable handles? Some equivalent to API CreateProcess parameter bInheritHandles Thank you
viliam
Hi, is there any way how to prevent child process, created in C# code using Process class, to inharit parent process inharitable handles? Some equivalent to API CreateProcess parameter bInheritHandles Thank you
viliam
Sorry, my typing error. I should be WM_CTLCOLOR
viliam
WM_CONTROL is not called for this type of control :-(
viliam
Hi, is there any technics (owner draw class, function, subclass method and so on) to change backgroud color of datetimecontrol Thank you
viliam
Thank you but there is still the exception Syntax error (missing operator) in query expression 'M_TIME = ts'2007-01-12 13:10:00''.
viliam
Hi, I am fighting with SQL syntax. My database is MDB file, all reading work fine except DateTime columns. this code: string cmdR = "select M_TEMP from MEASUREMENT where M_TIME = '2007-11-16 13:10:00'"; using (OdbcCommand catCMD = new OdbcCommand(cmdR, mConn))¨ OdbcDataReader myReader = catCMD.ExecuteReader(); ... give me exception (ExecuteReader()): System.Data.Odbc.OdbcException with error: Data type mismatch in criteria expression. I tried various combination, for 'M_TIME = #'2007-11-16 13:10:00'# then error was: Syntax error in date in query expression 'M_TIME = #'2007-11-16 13:10:00'#' The closest probably was 'M_TIME = #2007-11-16 13:10:00# there were no exception but it select the first item except the one from the requsted time and i am still not able to find the way to insert time in correct way. Thank you for help to undertand this Viliam
viliam
Thanx, this function works better for me
viliam
I try to enumerate fonts utilizing InstalledFontCollection from GDI+. All works but the collection does not contain some fonts which I can see, for example in standard font dialog. .. such "MS Sans Serif" Is there any parameter to get such "system" fonts too, or other class or function to enumerate them? Thank you for help
viliam
Is there any Microsoft SDK or any other library or source code to help with downloading MMS stream Thanx for help
viliam
Hi, does anyone know some simple example how to play or capture audio from internet stream? Is there any SDK or DirectSound function(s) to implement such think. Thank you
viliam
:-) I meant programming way I know what is inside but how to "learn" program
viliam
hi, is there any function, library or just trick how to get information if HDD in system is SATA or PATA? thank you
viliam
It happened ones and it was not on my computer. "I know just symtoms" Actualy program did not crash, it pretend recording but there was no data comming and so empty file was created. When people looked into directory, and there were just empty files they realize something is wrong with my program. They just stopped it and start again and it works again correctly.
viliam
I am using directsound to do sound recording - everything works fine. "I have loop and event signals my to read (save buffer) ..regular way how to do capture (taken from the sample) But: It runs all day long, day after day (continous) but sometime happen, "there is no data" (it happened ones after month of working and so it is hard to set it up for debug) Probably: 1) there is event but buffer size is zero 2) or there is no event at all When this happen, it never restore i have to restart program (probaly close and open device again will be enough) Any idea how this could happen? Thank you lot
viliam
hi, is there any function how to enum fonts and posible size... I would like to make font dialog as a Paint.exe aplication has. Or is it posible to change CFontDialog to make it looks like font dialog in Paint. (without terrible subclassing tricks) Thankx
viliam
thankx, I can step into the function and if function is empty or just sets variables - it works The problem begun whan i called some API function GetModuleFileName(NULL, szPath, _MAX_PATH); does not work and some others thow exception. You probably right, there is some initialization missing ..for resource it definetelly works.
viliam
I tryied to export function from the executable module. In the same way as a dll export. It "works" - I can see it as an export in Dependency walker utility But: Whan I use LoadLibrary from different executable to load it it also work but when i call it, it always crashes inside. (when i rewrite first exe into dll it works fain) Is there any special steps which must be done to export function from EXE module?
viliam
hi, I try it - doesn't work well. I am afraid that this double value is some modification of IEEE 754 Because file is dBase7 I can not read it in ODBC so I just open this file in DBF Viewer (just see it) the double values are interpreted incorrectly (positive number bigger than zero are ok) But for example White Town dbf tools interpret it well.
viliam
I am trying to parse dbf file. I was not able to open it via ODBC so I do direct reading from it. It is dBase 7 I have problem with double data type :-( Structure description said "O" Double 8 bytes - no conversions, stored as a double. http://www.dbase.com/KnowledgeBase/int/db7\_file\_fmt.htm But it is not IEEE Standard 754 i guess and I just wonder how this double is stored in memory and how to read it or decode. For example: -0.48 is stored: 21 47 AE 1F FF FF FF C0 and +0.48 is stored: DE B8 51 E0 00 00 00 C0 It is almost like IEEE 754, numbers bigger than 1 works fine 41.84 is 44 EB 85 20 00 00 00 40 if read in order (last byte is first) 40 44 EB 85 20 00 00 00 but where is the different? Does anyone know what I am talking about :-) Is there any memory specification or library for floating point in dBase? Thank you
viliam
Is there any simple way how to change frame around the Edit box (just color, but not for all edits, just for i want) Or how to subclass Edit?
viliam