|
idiot question, but, what about using the debugger to see the state of the variable str before and after the operation ?
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
I'm not sure if it wroks, but you can try this:
m_Edit.SetWindowText((CString) str+"W");
kakan
|
|
|
|
|
kakan wrote: ((CString) str+"W");
Mmmmh... IMO this is no good code practice. Better use the temp variable.
~RaGE();
|
|
|
|
|
Well, the only difference between my example (if it works) is that the compiler creates a temp CString, instead of the programmer.
Not much of a difference, IMO.
|
|
|
|
|
|
Yepp. I didn't try it.
You are right, of course.
|
|
|
|
|
in fact, to remenber it in the future here are the tips :
(CString)str
this is a C-Style cast (explicit cast of str to CString)
CString(str)
this calls explicitely the CString constructor that get a parameter of the type of str, to create a temporary object that will be passed then to the calling function (in our case).
hope this is helpful
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
Hello and thanks for the tip.
I really have to start testing my code before I reply to questions.
I've made more than one mistake...
|
|
|
|
|
Hello All
I am writing an application to store the RTP packets payload to audio files.
Now I am working on G.729 Codec. I am storing decoded G.729 payload in .WAV file. But the audio converstation is not stored properly.
I hope Decoding is done properly (Function is not returning ERROR). Extracting the payload is proper.
WAV file header details what I am stroing
Compression Code : 1 (PCM/uncompressed)
Channel: 1
Samples Per Sec: 8000
Bits per sample: 16
Let me know is my procedure is correct? After decoding let me know what is the format of the audio we get?
My application works fine for G.711 codec.
Thanks for your time
Ravi
|
|
|
|
|
your audio initialization is correct.
may i know about your codec.
JAYARAJ
|
|
|
|
|
Hai,could any one pls help me out.....
I have statically created a splitter window with 2 views one is derived from CTreeView and the other from CListView.Then i have managed to insert items into the tree view retrieving from the database. Now i want to insert some columns into the listview but i couldn't do so since the style of the list view is to be LVS_REPORT . But, initially the style is LVS_SMALL.I don't find any way to change this style property using msdn functions.
Please tell me either how to change the style property or how to insert the columns into the listview as above.
-- modified at 4:40 Thursday 22nd December, 2005
|
|
|
|
|
Change the style:
m_List.ModifyStyle(0,LVS_REPORT);
Insert a few columns:
m_List.InsertColumn(0,"abcd");<br />
m_List.InsertColumn(1,"efgh");
this is this.
|
|
|
|
|
SetWindowLong(....)
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
I need to display some visualizations base on output sound from speaker.
How could I do that? (No DirectX)
|
|
|
|
|
Get a flipchart and a pen. Open the flipchart and pump up the sound. Then, each time you hear a drum, move your pen up and down, while, during the song, slowly moving your pen from one side of the chart to the next.
If you do not want to use DirectX, try using an A/D-converter to feed your data back to the PC (USB or Legacy Ports).
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
If I was you, I would try, lets say, the Audacity source. Audacity is an open-source sound/wave editor/filterset, which might save you a lot of work.
They should do something like that somewhere.
If I was to record my own sound on the computer, I would retrieve the input from "Stereo Mixer" (which should also contain every sound your computer currently is playin, because it remixes the output stream into the input stream.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Hi,
I need to convert exe into windows 2000 service using vc++.
Can anybody suggest me how to do it.
|
|
|
|
|
trinadh_t wrote: I need to convert exe into windows 2000 service using vc++.
Start Your Windows Programs From An NT Service[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
thanks for giving me reply,
but i dont hav NT service in my pc. I hav windows 2000 professional in my PC. Can u tell me briefly how to do that.
regards
triadh
|
|
|
|
|
trinadh_t wrote: but i dont hav NT service in my pc. I hav windows 2000 professional in my PC
2000 is nothing just advance version of NT.... Please read that article... that contain readymade solution for your need
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi
Does anyone know how to use the SHChangeNotifyRegister API in a service.
|
|
|
|
|
Hope this helps...
http://www.codeproject.com/shell/shchangenotifyregister.asp[^]
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
I have created a charater pointer which points to
a string . I need to copy an existing string in the
char pointer i created so i did this
In my class the code is as
char *m_FileName;<br />
m_FileName=new char[strlen(FileName)]; <br />
strcpy(m_FileName,FileName);
In the destructor of the class
<br />
~Class_temp()<br />
{<br />
if(m_FileName!=NULL)<br />
delete []m_FileName;<br />
}
I get a error at the delete keyword ,
Damage After normal Block 0x00000034
am i wrong some where
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
|
This won't work coz it's an array of memory.
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|