|
Hi, Remco Hoogenboezem, thanks for your post, thanks.
I have read about the 'Usings CODEC to compress wave" page in the msdn website http://msdn.microsoft.com/archive/default.asp?url=/ARCHIVE/en-us/dnarmulmed/html/msdn_codec.asp. It talks about acm. But, unfortunately, I cant find the decompression part, I dont know where I did wrong.
Sorry, please forgive me for my stupidness, I dont understand with the 5 lists in your post. YOu mean I should choose one of them to be used or?
For your information, my main problem is I dont know how to call the codec dll from my software.
Could you please guide me a little? Please
|
|
|
|
|
Sorry to disturb, May I ask?
I was confused with the acm driver and as a newbie, I really coulndt implement it without any bug after finding the driver and doing the two conversions. I just want to call the third-party software.exe to help me do the compression and decompression part. Do I need to call the dll? Or, Can I just call the .exe from my software?
Sorry for causing any confusion, I was not clear with dll before I put this thread, after I read the pdf about dll, I think that maybe I dont need to call dll but just call the exe.
Please forgive me, I apologized for the trouble caused by me.
Do you think it is possible to call any CODEC software exe from my software? Which one is easier for a newbie like me?
But, I dont know how can I do so, do you mind to give me some guidance? Please, Please forgive me for my ignorance. I try my best in doing it. Hope you can teach me some. Please.
|
|
|
|
|
Run my process auto create a CicMarshalWndClass windows, but it not had WM_NCDESTROY message when the process is close.
|
|
|
|
|
Hello every body
Please tell me or give me code to validate xml using xsd file in DOM in VC++ ,I tried validation in MSXML 4.0 ,its worked,but i need this in MSXML 3.0,because we need it in WINCE.
Prabhakar.M
|
|
|
|
|
hi
we are implementing SMTP protocol in MFC.
We are using the CSMTPConnection v1.36 code provided by PJ Naughter
http://www.codeproject.com/internet/csmtpconn.asp[^]
The problem is while sending mails sometimes mails are not sent.
1)we are connecting ,sending mail and then disconnecting.
The above step is repeated 6 times hence 6 mails.Sometimes only 4 or 5 mails are sent.But sometimes all 6 mails are sent!!!
The problem seems to be while Sending the MAIL command in SendMessage()function
The return value of GetLastError() was 10038 i.e Socket operation on nonsocket.
the code snippet is as follows
BOOL CSMTPConnection::SendMessage(CSMTPMessage& Message)
{
.......
if (!m_SMTP.Send(pszMailFrom, nCmdLength)) //returns FALSE sometimes
{
TRACE(_T("Failed in call to send MAIL command, GetLastError returns: %d\n"), GetLastError());
CString str;
str.Format(_T("%d"),GetLastError());
AfxMessageBox(str); //displays error code 10038
return FALSE;
}
why is that the mails are sent sometimes but not delivered other time??
thanx in advance
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
-- modified at 3:20 Thursday 20th April, 2006
|
|
|
|
|
There error is described very well in the MSDN :
10038 - WSAENOTSOCK - Socket operation on nonsocket. An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for the select function, a member of an fd_set structure was not valid.
I guess this summaries it all.
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
YaronNir wrote: There error is described very well in the MSDN
I know the error description but what i wanted to know is why does it occur only sometimes??
anyway thanx for your reply....
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
well, you should check then (either using debugging mode or printing some output traces) if the handle you are referencing is a valid one or the fd_set structure is valid.
that is my advise...
hope it helps
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Hello everyone,
I am looking for tutorials dealing with static linking and dynamic linking in VS.net 2003. Does anyone have any recommendations?
regards,
George
|
|
|
|
|
|
v2.0,
Thank you very much! I will read through these valuable materials.
regards,
George
|
|
|
|
|
George_George wrote: I am looking for tutorials dealing with static linking and dynamic linking...
Static, or implicit, linking, requires a .h file, a .lib file, and a .dll file. Dynamic, or explicit, linking, requires you to call LoadLibrary() , GetProcAddress() , and FreeLibrary() .
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi DavidCrow,
I think we have three methods of using the functions of another library -- static linking, dynamic linking and dynamic loading. I think your method using LoadLibrary(), GetProcAddress(), and FreeLibrary() are dealing with dynamic loading -- not dynamic linking.
regards,
George
|
|
|
|
|
Hi
I am trying to make thread in a dialog based application. I have made the thread callback function, as static member function of that dialog class. Now if i want to use UpdateData(false) in that thread, I can not do that as UpdateData(false) is a non-static member function. What should I do now? Please can any one help me.
Thank you
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Normally I would have a thread function as a public member function of the class. As you can't do this explicitly (the thread function must be global) I do so implicitly: Have the global thread function do nothing but call the public function on the dialog class that does all the work. You'll have to pass the this pointer when you start the thread.
Steve
|
|
|
|
|
Thank you Stephen. I have made that thread function global. Now problem is that i am trying to initiate the thread from another class and that. To do this i declared this callback function in the cpp file of that class as
extern UINT myThread(LPVOID pParam);
But when i use AfxBeginThread to initiate the thread, it gives the following error.
AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'int (__cdecl *)(void *)'
Why i am getting this error? Please help me.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Can you show the source for:
- The call to AfxBeginThread .
- The function beging called.
Steve
|
|
|
|
|
OK i have declared and defined a thread function in a file cwait.cpp.
Now in CMyDlg.cpp, to initiate that thread function, I first declare that function like that
extern countTime(LPVOID pParam);
Now in the same file I initiate the thread like this
CWinThread* cTime = AfxBeginThread(countTime, NULL);
It is important that i am initiating the thread within a member function of CMyDlg
Thank you. Waiting for kind responce...
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Here's an outline of how to execute a member fuction of a class instance using a new thread:
-------------
// In a header file.
class CMyClass
{
public:
void StartThread();
private:
UINT ThreadFn();
static UINT __cdecl RawMyControllingFunction( LPVOID pParam );
};
// In a .CPP file.
void CMyClass::StartThread()
{
AfxBeginThread(&CMyClass::RawMyControllingFunction, this);
}
UINT CMyClass::ThreadFn()
{
// Do stuff here.
return 0;
}
/*static*/
UINT __cdecl CMyClass::RawMyControllingFunction( LPVOID pParam )
{
CMyClass *pThis = static_cast<CMyClass*>(pParam);
return pThis->ThreadFn();
}
Steve
|
|
|
|
|
Aqueel wrote: Now if i want to use UpdateData(false) in that thread...
Which you should never do as the secondary thread does not own any of the UI components. See here on how secondary threads communicate with the primary thread.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
hi all,
I want to display the Networking systems that are displayed in the Tree Control and their files in the ListControl. it must be just as the Explorer of Windows 95. How can we achieve to retrieve the Remote Computers in the LAN WorkGroup that has to Dispaly all the Computers and their Files Associtated.
any api's for this other than FindFirstFile(...) and FindNextFile(...) for the Local Computer Files to be Displayed in the ListControl.
please hlp me out..
thanks,
uday.
uday kiran
|
|
|
|
|
|
hi,
this are all described only for the Local Computers Drives but what abt the Remoter Computers appended to the Tree Control and there Disks and Drives i am confused that how to append the remoter computers.
because when you open the Window Explorer apart from the Local Computer there is a hook for Remoter Computer where all the Remote Computer and there Drives are Mentioned which is the Required Form i want.
pls let me know.
thanks,
uday.
uday kiran
|
|
|
|
|
Ok, i think your problem is different.
I thought all you wanted is to combine a tree and list together into one control.
Now i see you don't know how to read Remote computers, and to place them in the tree same as in disk drivers....
well for that there are good examples here is code project, all you have to do is search.
try to search for how to retrieve directories
hope this helps
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Hi,
I want to stop drop down of combobox if it doesn't contain any item. I check wheather combo box is empty or not in OnDropDown() function of combobox. I want that If combo box doesn't contain any item then should not drop down.........As the empty combox drop down without showing any item it doesn't looks good. Can any one help me out?
Thanks
|
|
|
|