after some browse through the net, i could solve this problem by adding AfxOleInit() in the calling application's InitInstance.
chandu004
Posts
-
[SOLVED]CWebBrowser2 not getting displayed on a dialog in a dll. [modified] -
[SOLVED]CWebBrowser2 not getting displayed on a dialog in a dll. [modified]further investigations on this issue, concluded that, the window itself was not getting properly created for the web browser control. any ideas?
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
[SOLVED]CWebBrowser2 not getting displayed on a dialog in a dll. [modified]Hi, iam trying to display a browser control of type CWebBrowser2 in a dialog, which will be initiated from a dll. now, the problem is, the dialog is getting displayed properly, when i dont insert the webbrowser control. but when i draw the webbrowser control on the dialog, it is not showing up. i even tried to create it dynamically, but Create method is returning by closing the application. any ideas? thanks in advance.
modified on Friday, June 17, 2011 5:19 PM
-
CToolTipCtrl: Restrict Tooltip within the dialogHi all, i need to restrict the tooltip within the dialog box. when i tried the options like setmargin(), iam seeing the tooltip as flickering. Obviously, the text in the tooltip will be a big sentence, which need to be displayed in multiline. Please convey your suggestions. Thanks in advance.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
Float to CString problemlook at the following url. http://www.elook.org/programming/c/pow.html[^] there he says that, There's a domain error if base is zero and exp is less than or equal to zero i think you may have to do some workaround on this.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
Float to CString problemas you said, you are going to operate on larger values, the problem should be that, your resultant value is exceeding the 4 byte boundary, and you are getting improper result. by the way, what are the values you are passing to pow? what is the result you are getting, and what is the result you are expecting?
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
Can i set Float value to CLabelControl::SetCaption()I guess Setcaption should accept a CString. if that is the case, then you can format your float value to a string and then pass it to the SetCaption().
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
Error in executing release version, c++ dotnet forms application.hi experts, my windows forms application, is unable to be executed in a PC where dotnet is not installed. the reason i expect would be, because, iam using a dll in my application. though i make a release version, there is no use. please let me know if any details are required from my side. any suggestions to get through my problem would be appreiciable. thanks in advance, chandu.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
Image Matrixyou need to do something like this.
for(int row=0;row<128;row+=3)
{
for(int col=0;col<128;col+=3)
{
ComputeSubMatrix(row,col);
}
}let me know if you have any doubts.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
Image Matrixsorry my friend, i ve got to leave for the day now. if i give any short answer, you may again get confused. i have put a mail to your id. keep in touch and we will solve it tomorrow.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
Image Matrix1.if your original matrix of size 128/128 is say "M", 2.write a function as follows
ComputeSubMatrix(int row,int col)
{
int avg=0;
for(int i=row;i'<'row+4;i++)
{
for(int j=col;j'<'col+4;j++)
{
avg+=M[j][i];
}
}
for(i=row;i'<'row+4;i++)
{
for(int j=col;j'<'col+4;j++)
{
M[j][i]=avg-m[j][i];
}
}
}
//Note:please understand '<' as less than symbol .(there is some display problem)3.now, you call this function in nested loops, by passing the start row and column of each sub matrix. 4.and this should solve your problem.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
Image Matrixstill not clear about your question. what is your original matrix size, that you want to sub matricize to 4X4 blocks? i require an example to help you out.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
Image Matrixcould you please elaborate your problem, and present it clearly with an example?
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
How to decode non-PCM wave files to PCM formatDan_K wrote:
As I said earlier, this WAV file is not in PCM format
sox donot require pcm formats as source file, to convert to PCM format. long back, i used this exe, to convert wav files in gsm format to pcm format. iam not sure of what is the input format you are using, and if sox supports that format. you can do the following things. 1.take a pcm file which is able to be played in a media player, and convert it to itself. i mean, pcm itself. if it works, it proves that, the exe you are holding is the right one. other wise, we will see an alternative. 2.put me a mail, attaching the sample file you are trying to convert, the sox.exe you have with you, and the source you have downloaded. i will try to help you at my best. please find a mail in your inbox, where i stated my mail id.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
Combo Box sortingin that case, follow what experts said below. i.e. you have to sort them manually.
liz3 wrote:
they are not fixed. Will change regularly.
it would be good, if you can narrate your task, with an example. like, 1.are they going to have only numeric values? or can it have text too. 2.will it be loaded at the initiation of the application? or in between while operation on the UI. 3.please narrate what are the different possible values and what are the conditions, at which the values get addd to the combo. all the best.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
How to decode non-PCM wave files to PCM formatthats what i was trying to say DAN, you have SOX source code right, try to get the sox exe also, and use the command i have given, and test if it works for your need. if it works, then you can understand from the src, how it is done. all the best.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
Combo Box sortingwhat are the values that your combo carry. are they fixed? or are they going to change regularly.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
How to decode non-PCM wave files to PCM formatif you have an exe file, then this is how, it can be used from the command line. sox nonpcm.WAV -s -r 16000 PCM.wav let me know if you have any issues.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
How to decode non-PCM wave files to PCM formati remember, there is a tool called SOX, which does the conversion from non-PCM(for example, GSM) to PCM. it is a command line tool. if you search for it, you may get it. also you may get its open source, if you search more. all the best.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.
-
move function in maze does not work correctlyif i understood it correctly, your problem is that, you are unable to scan the keys Right??. i dont think getch will do for you here in this context. there is some other mechanism to get the key code here. let me refer my backups and let you know. parallelly, you can also try it.
-------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.