|
|
WhiteSky wrote: WM_SHOWWINDOW
hi Hamid,
Happy new year dude, sorry it is not advisable to post WM_SHOWWINDOW message, you have to either use SetWindowPos api or ShowWindow api.... same apply for WM_SIZE message
"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
Support CRY- Child Relief and you
|
|
|
|
|
I know and when we can use of ShowWindow or SetWindowPos its better we use of them.I want to said also we have WM_SHOWWINDOW .
Thank you and for you but its early,New year is in April on my country
|
|
|
|
|
Anyone has something for me? I'm a beginner in Visual C++. And I want to learn the begin lessons. Anyone help?
If could, post a reply or simply send message to me at: thomasjohnsilver@gmail.com
Thanks in advance!
Noname
|
|
|
|
|
If you browse through C++/MFC[^] section of this site, you will get articles to start with.
Here is an example[^].
|
|
|
|
|
|
lp4me wrote: Anyone has something for me? I'm a beginner in Visual C++. And I want to learn the begin lessons. Anyone help?
better bought some book, after that refer net article
lp4me wrote: If could, post a reply or simply send message to me at: thomasjohnsilver@gmail.com
sorry this online forum.. no body email you the books or reference
"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
Support CRY- Child Relief and you
|
|
|
|
|
Hi,
while I am trying to retrieve the data from the database, where ever there is blank space (empty) in the correspoding column ,I am getting junk values.
This is my code.
VARIANT v;
v.vt=VT_BSTR;
CString str;
str = " ";
while(!(VARIANT_TRUE == pRecSet->EndOfFile))
{
str = pRecSet->GetCollect(v).bstrVal; .
//There is some junk data in str;
.
.
}
Should I do any other initialization or conversion? I have even tried using "NULL" but failed.
Thanks in advance.
Taruni
|
|
|
|
|
Taruni wrote: VARIANT v;
Use VariantInit to initialize the variant. Your code will be like this,
VARIANT v;
VariantInit(&v);
v.vt=VT_BSTR;
Check value of vt after using it in function. In other words, are you sure function in populates vt with VT_BSTR .
|
|
|
|
|
Hi Prasad,
Thank you for your immediate response.
VariantInit(&v);
I already tried this and but no use.
Taruni
|
|
|
|
|
What about my second point ? Does vt is initiailized to VT_BSTR , After using it as parameter ?
If yes, Do you see junk values in bstrVal of variant argument ?
|
|
|
|
|
Yes Prasad ..there are is still junk data in bstarVal.
My code is as follows :
VARIANT v;
VariantInit(&v);
v.vt=VT_BSTR;
CString str;
str = " ";
while(!(VARIANT_TRUE == pRecSet->EndOfFile))
{
str = pRecSet->GetCollect(v).bstrVal;
.
.
}
Taruni
|
|
|
|
|
Which class does GetCollect belongs to ?
-- modified at 4:24 Tuesday 2nd January, 2007
How it is declared ? If it is out parameter, you are not using its value further. Instead you are using its return value.
|
|
|
|
|
I am receiving some voice file from the network i am storing it into a buuffer using Receive() function and that is a sound file which is converted into a wave format. I am trying to play that buffer here in the recieving side using
PlaySound(Buff,NULL,SND_MEMORY|SND_ASYNC)
but i could not here anything after playing.
But if i am saving that buffer into a .wav file and play it by a doubleclick on the file it plays the sound. Where might be the problem?
Thanks in advance!
KIRAN PINJARLA
|
|
|
|
|
kiran.pinjarla wrote: PlaySound(Buff,NULL,SND_MEMORY|SND_ASYNC)
I assume, Buff contains sound bytes you recevied. But what MSDN suggests PlaySound has first parameter which points to image file. In other words,its should be stored on disk.
|
|
|
|
|
I found
A sound event's file is loaded in RAM. The parameter specified by pszSound must point to an image of a sound in memory.
in the MSDN. I guess that mean it should be stored in the RAM rather than disk.
That's what i did (Buff.
Is't it?
KIRAN PINJARLA
|
|
|
|
|
kiran.pinjarla wrote: I guess that mean it should be stored in the RAM rather than disk
Agree, but in your case it is pointing to buffer rather than file name.
|
|
|
|
|
What happens if you do this:
PlaySound(Buff,NULL,SND_MEMORY|SND_SYNC)
Are you sure Buff is valid for the duration of playback?
|
|
|
|
|
Are you sure Buff is valid? did you trace when it filled?
|
|
|
|
|
I'm working on a project and was wondering if there is a class like C#'s MailMessage (but for C++, I'm using visual studio 2003) that will allow me to write a program that will automatically send me an error log every month or so. I'm kind of new to the C++ world and would appreciate any help. Thanks!!
|
|
|
|
|
There's nothing built into the language, no. MAPI is the easiest way to go.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
If you need simple email alert notifications from a service and don't plan on implementing more than the basics, you can easily derive a basic mail client from RFC 2821 & 2822. RFC 2822 is probably the simpler and the more helpful of the two for implementing simple alerts.
Using the winsock2 api, just write a class that performs the steps you use when testing an SMTP server with a telnet session.
|
|
|
|
|
Blat[^] is a C library that lets you send emails. It's pretty horrible code but it does the job.
0 bottles of beer on the wall, 0 bottles of beer, you take 1 down, pass it around, 4294967295 bottles of beer on the wall.
Awasu 2.2.4 [^]: A free RSS/Atom feed reader with support for Code Project.
|
|
|
|
|
arbster wrote: studio 2003) that will allow me to write a program that will automatically send me an error log every month or so. I'm kind of new to the C++ world and would appreciate any help. Thanks!
Mail![^]
"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
Support CRY- Child Relief and you
|
|
|
|
|
See Email on the http://www.codeguru.com/cpp/i-n/internet/
|
|
|
|