Hi, You can also use the Win32 API (Shell API) function if you want to avoid the CRT (C Run-Time Library) (If you use ATL/WTL for example)
Also check the others string functions from Win32 API (Platform SDK) and the Shell API (shlwapi.h). They mimic almost every string function from C++ library.
what can i do in order to settle the linking errors.
and here is another question,
if i plan to call the matlab function
[features, targets] = improved_DA1(x,[cluster,0.95]);
how can i settle such kind of scenario and calling the [ ] in reference with the website tutorial method,http://www.mathworks.com/support/solutions/data/27671.shtml
Can u pls clear a doubt in DS...I have an UI based application where I am using DirectSound for Audio capture & playback. I used the function DirectSoundFullDuplexCreate8() where I am setting the cooperative level to DSSCL_PRIORITY. .I am passing the Handle of the UI window to the DirectSoundFullDuplexCreate8() function.
But alas, when i minimize this UI window I am unable to hear the captured voice.Does the cooperative level setting got anything to do with the windows handle??I also tried using DSSCL_NORMAL . The same result .
Is there any solution to this. I mean, can i use any other cooperative level or any other way so that even if I minimize the UI window i can playback the captured audio???
sprintf(szTemp, "%c", 'a');
char c = '1';
int iRet = sscanf(szTemp, "%d", &c);
The last line results in a buffer overrun. The "%d" format reads an int from the string, but you're passing a pointer to a char. On most machines, int's are 32 bit (4 byte) values, while char's are 8 bit (1 byte) values. This line then overruns the char c by 3 bytes.
int iRet = sscanf(szTemp, "%c", &c);
This line is correct, because you are reading a single character from the string into a char variable.
-- Sancte Míchael Archángele, defénde nos in proélio contra nequítiam et
insídias diáboli esto præsídium. Imperet illi Deus, súpplices deprecámur:
tuque, princeps milítiæ cæléstis, Sátanam aliósque spíritus malígnos, qui
ad perditiónem animárum pervagántur in mundo, divína virtúte,
In inférnum detrude. Amen.
I need a simple Mathematical Expression Builder(parser). Does anybody know about some free source code (C++, MFC) for that. What is the best way of making an expression parser. can i use regular expressions? what would be the best suggestion.
I prefer to provide intellisence like Visual Studio or Visual Assist while typing an expression, how that can be provided? any code for that?
I don't know how to use those tools properly, but you could use them also.
The article that I pointed you to, has it's implementation based on mathematical expressions. After reading it, you should be able to write your own expression parser based on the same theory.
It doesn't matter wheter you want a mathematical expression parser or a regular expression parser, the idea of parsing is the same. Only the implementation is different.
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.