|
As a first step, simply I found the number of spaces in a string and the length of it. So I can count number of characters there.
No I want to calculate number of words there. So I want to find a combination a space and immediately follows a character. Because that's the start of a word. How can I detect that combination? Any comments.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
you can test the value of a character like (buf[x] == 'c')
there are also C runtime functions like isdigit() that you can find in the documentation
led mike
|
|
|
|
|
|
hey im working on video processing project bt i need help in capturing
frames from an video of .dat format
*** we will specify the path of video file and den the code should access that video
and capture frames from it and den store the captured frames from dat video at
the location where we will specify.
|
|
|
|
|
You will need the specs for the .dat file...
there's lots of proprietary .dat formats - I don't
know of any standard formats.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hey mark
specs as in wat sense? i didn get wat u wana say.....
nywys even if u can tell me frame extraction for any type of video it would be
helpful to me....
|
|
|
|
|
suresh zende wrote: specs as in wat sense?
specs == specifications.
What's in the file? You can't extract frames if you
don't know where they are in the file or what format
they are in.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
im considering an sports video here bt it wont matter wat video file we r takin
we are having the video file from which we hv to extract frames
as a video file is nothing but sequence of frames..eg: 1 sec video will hv around 24/30 frames
so the task is to take snapshots of the video as the timepasses,so here we hv to take atleast
24/30 snapshots in 1 second to get good no of frames those can be processed....
hope nw the prbml is clear..plz help me for this..
|
|
|
|
|
I would start with clearly defining the steps you need to take
to accomplish your task. It's still unclear to me.
This is what I have so far:
Open the file
Loop until done:
Read a video frame
Do something with the video frame
Close the file
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
We are having an application which is interacting with the static library(Default library) and in turn this will interact with the DLL.
This is written on the application side
*****************************************
CNodeView *node_view = NULL;
node_view = m_default_mgr->GetGUI(node); (the call goes to
if (NULL == m_pMainVseqEditor)
return;
if (!IsWindow(node_view->m_hWnd))
{
CRect rectView = CRect(0,0,700,500);
// create the window
if(NULL == ((CWnd*)node_view)->Create(NULL, NULL, WS_CHILD | WS_VISIBLE, rectView , m_pMainVseqEditor, 14567))
The create function will work fine in debug mode but in release mode this return NULL.
Let me know how to resolve this issue in relesse mode.
Is there any specific project settings are there?
|
|
|
|
|
Did you check GetLastError() ? You could also check it by adding @err,hr in watch window. I hope it could give you some hint.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
lavate malllik wrote: Create(NULL, NULL,
First parameter takes the window class name for e.g. WC_EDIT , you have given nothing here, shouldn't you give your CNodeView 's class name. You must have a used RegisterClassEx or AfxRegisterWndClass for this purpose.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
What type is node_view? You use it in the IsWindow() call
like it's a CWnd*, so why do you cast it to a CWnd* when you
call the Create() method?
Is m_pMainVseqEditor->m_hWnd valid at the Create() call?
For clarity, FALSE is a better macro to use than NULL when you're
comparing a BOOL (IMO).
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I am using a ClistCtrl which is to be filled with the data coming from server. As it is taking some time so there is flickering of window.
I want that while the data is being fetched a dialog should appear with progress bar along with the message Downloading.
Can any one help me.
Thanks In advance
Dhiraj Kumar Saini
|
|
|
|
|
You may use a worker thread to perform the data acquisition and send messages to the progress bar window in order to update its status.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
Sorry to say but i dont have any idea of creating threads
Please can you help me.
I am never worked on multithreading
Thanks
Dhiraj Kumar Saini
|
|
|
|
|
|
U can either use AfxBeginThread or CreateThread to start a new thread....For more information u can refer msdn.
Dont worry...this is how everybody learned about any new things..
|
|
|
|
|
Dhiraj kumar Saini wrote: I am using a ClistCtrl which is to be filled with the data coming from server. As it is taking some time so there is flickering of window.
Since you are frequently adding data to your list ctrl, flickering is usual. Use LockWindowUpdate() and UnLockWindowUpdate()to lock the control. Check here[^] about how to use it.
Dhiraj kumar Saini wrote: I want that while the data is being fetched a dialog should appear with progress bar along with the message Downloading.
Create a model-less dialog with progress bar and display it. Define a custom message by RegisterWindowMessage() and utilize it to update progress to ProgressDialog.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi all,
i m using SDI type aaplication,
Ctrl+C,Ctrl+V,Ctrl+X,Ctrl+z like shortcuts are not working.
in forms and dilog boxes keyboard shortcuts are not working.
Please help me for this.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Are you sure it's not something with your machine? Have you checked if it's working with regular apps like notepad, etc.? Do they work in a fresh new SDI project?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
(Assuming you're using straight Win32 since you don't mention a class library)
Do you have accelerators set up for Ctrl+C, V, etc? Are you calling TranslateAccelerator() in your message loop?
Are you calling IsDialogMessage() in your message loop? You must call that for the dialog navigation keys to work.
|
|
|
|
|
Hi all,
I have a local pointer variable as follows in a method.
wchar_t * ptr;
Use it for some processing. Once this process, or this method calls number of times it occurs an exception on the following library function
void operator delete(
void *pUserData
)
Can someone help me to fix this.
Thanks
I appreciate your help all the time...
CodingLover
|
|
|
|
|
|
I'll try to explain in my best this.
I don't call any delete function. Basically I use that pointer to torkenize a string on a space character.
<br />
wchar_t spec[] = L" ";<br />
wchar_t * token;<br />
token = wcstok("This is the string", spec);<br />
Actually I passes a string through this large number of times. At a random point I got an exception, actually assertion fail, at the above mentioned delete method of a some library.
Hope it's clear.
I appreciate your help all the time...
CodingLover
|
|
|
|