|
Ah! I was starting to get really despondent about this, my latest discovery (I have other stuff to do), and thought I'd done some horrendous thing somewhere which will show up sometime. I am so relieved!
Thanks,
Appreciate your help,
ns
|
|
|
|
|
Don't worry about 'first chance exceptions.' For more info, see KB article Q105675.
Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***
|
|
|
|
|
when i compile, i all of the sudden get all these messages:
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(547): error C2143: syntax error : missing ')' before ';'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(547): error C2059: syntax error : ')'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2143: syntax error : missing ')' before ';'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2660: 'ReadFile' : function does not take 3 parameters
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2143: syntax error : missing ';' before ','
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(567): error C2059: syntax error : ')'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ')' before ';'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ')' before ';'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2059: syntax error : ')'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2143: syntax error : missing ';' before '&&'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(582): error C2059: syntax error : ')'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(614): error C2143: syntax error : missing ')' before ';'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(614): error C2059: syntax error : ')'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2143: syntax error : missing ')' before ';'
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2660: 'recv' : function does not take 3 parameters
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2143: syntax error : missing ';' before ','
d:\90GIG\MP3ORGANIZER\FileTransfer\main.cpp(632): error C2059: syntax error : ')'
The first error message directs me to this line:
szFileBuffer = (char *)malloc(SEND_BUFFER_SIZE);
what is wrong with that? there's no ) missing
and the "ReadFile function does not take 3 parameters" directs me here:
ReadFile(hFile, szFileBuffer, SEND_BUFFER_SIZE, &dwBytesRead, NULL);
there isn't threee parameters there, there are five! i don't understand it... and all of the other error messages are wrong too, i'm not missing an ')' or an ';' in any of the places, what could be wrong?
thanks
-Rune Svendsen
|
|
|
|
|
Post the #define SEND_BUFFER_SIZE line.
Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***
|
|
|
|
|
It's
#define SEND_BUFFER_SIZE 8192;
it's the ; that made the errors, thanks to both of you.
|
|
|
|
|
I suppose the SEND_BUFFER_SIZE looks like this
#define SEND_BUFFER_SIZE 100;
This would introduce errors of this kind.
I keep submitting “VB” as a Priority-1 bug, but apparently no one here knows how to fix it. Nick Hodapp, Semicolon
|
|
|
|
|
Hi friends ,
i 'v a problem.. i want to get the handle of a editbox in applet chat program..how can i get the handle ..?
Program The Future.
|
|
|
|
|
Use Spy++ to get the ID of the edit control. With this, you should be able to grab handle of main window (the edit's parent) with FindWindow and get the edit handle with GetDlgItem.
Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***
|
|
|
|
|
nopes..the spy shows the classname as InternetExplorer_server(Remember its is shown in an explorer..pls look my question...)
I like the dreams of the future than the history of the past.
|
|
|
|
|
So what? Can't you go deeper in windows hierarchy and get the ID of edit box?
Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***
|
|
|
|
|
sorry i hav no idea..can u help..?
I like the dreams of the future than the history of the past.
|
|
|
|
|
Can you expand 'InternetExplorer_Server' item in the Spy++ windows tree?
Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***
|
|
|
|
|
ok..i get..i can now see the handle and classnames...
i want to write some sort of automation(that is i want to write the messages in to the textbox and apply the send button just like the booting software for Yahoo! messenger..(pls dont misunderstand me....!!!!!)by using another program)...
what i want to do.. is there is any samle code available for the same problem ..??
I like the dreams of the future than the history of the past.
|
|
|
|
|
I'd take the following steps:
1) locate main IE window with FindWindow
2) step into windows hierarchy with GetDlgItem (if you know the control ID) or EnumChildWindows (if you only know class name).
Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***
|
|
|
|
|
thankssssssssssssss..thanks a lotttttttttttt..!!!!
I like the dreams of the future than the history of the past.
|
|
|
|
|
I want to show a Startdialog at the beginn of my SDI/MDI application. Where do I have to put the code for the dialogbox, and how can i manage that the box close automaticly after (for excample) 2 seconds?
|
|
|
|
|
Are you sure you want a dialog box and not classic splash screen displaying bitmap image?
Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***
|
|
|
|
|
What is a classic splash screen? How can I create it?
|
|
|
|
|
'Classic' splash is a window which displays bitmap for few seconds during application startup - just like one Visual C++ or MS Word uses. Is this what you're looking for?
Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***
|
|
|
|
|
i think someone has previously posted an article regarding with the same problem.
I like the dreams of the future than the history of the past.
|
|
|
|
|
How can i use the MCI device in a MFC application? Is possible to put a video on a dialog with it?
|
|
|
|
|
I have never used it personally, but it seems MCIWndXXX API could do that. You may check MPlay SDK sample as well.
Tomasz Sowinski -- http://www.shooltz.com
*** Purgamentum init, exit purgamentum ***
|
|
|
|
|
I've resolved using DirectShow (perform much things and formats than MCI) but i've a problem passing the CString filename, the function receive a LPCWSTR parameter but i can't find a way to convert it. I've read there's a macro T2W that can do that but the compiler tell me undeclared identifier.. there's some kind of include or it's a way better to convert it?
|
|
|
|
|
The T2W macro is in ATLCONV.H, however, you might find it almost as easy to use the AllocSysString function that's part of CString. This will return a BSTR, which in your context could be treated as a LPCWSTR without a cast. However, you must free it after the call has returned;
e.g.
CString myFileName;
....
BSTR tmp = myFileName.AllocSysString();
somefunction( tmp );
::SysFreeString( tmp );
The T2W and it's friends would require something like;
{
USES_CONVERSION;
somefunction( T2W( myFileName ) );
}
Steve S
[This signature space available for rent]
|
|
|
|
|
I have win32 application,iam subclassing my listbox which is the child of dialogbox.So iam calling my subclass wndproc function in the WM_INITDIALOG i.e..
lpfnDbClkListboxProc=(WNDPROC)SetWindowLong(hDialogListBox,GWL_WNDPROC,(DWORD)SubClassDialogListboxFunc);
But when i show my dialox box the dialogbox closes again.why itis so.
|
|
|
|