Click here to Skip to main content
15,308,025 members

Comments by pranav_30 (Top 47 by date)

pranav_30 23-Mar-12 8:46am View
   
thanksssss :)
pranav_30 23-Mar-12 5:57am View
   
what is wrong in second dialog rsource?
wel i have just added one dialog resource in resource editor which have by default two button ok & cancel

& my DlgDSplayerProc2 is as follows

BOOL CALLBACK DlgDSPlayerProc2(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
bool handled = false;

switch (message)
{
case WM_INITDIALOG:
return TRUE;
}
}
pranav_30 17-Mar-12 5:33am View
   
Deleted
i write following code in wm_paint


Bitmap b(800,800);
HDC hdc;
hdc = BeginPaint(g_hDialogWindow, &ps);
Graphics graphics(g_hDialogWindow);
Graphics *graphics2=Graphics::FromImage(&b);

Pen pen(Color(255, 40,40,40),2);
graphics.DrawLine(&pen,0,0,600,600);
graphics2->DrawLine(&pen,0,0,400,400);

b.GetHBITMAP(Color(255,255,255),&dcimage);



BITMAP bm;
HDC hdcMem = CreateCompatibleDC(hdc);
SelectObject(hdcMem, dcimage);
GetObject(dcimage, sizeof(bm), &bm);

BitBlt(hdc,rect.left, rect.top, bm.bmWidth, bm.bmHeight, hdcMem, 0, 0, SRCCOPY);
DeleteDC(hdcMem);

EndPaint(g_hDialogWindow, &ps);

it is creating bitmap image but its background is blue instead of white, i used b.GetHBITMAP(Color(255,255,255),&dcimage);

plz tell me what wrong with this code
pranav_30 26-Feb-12 13:16pm View
   
i tried to format the snippet but it wont work...
well above code works fine for me. but i am new to c++, so if any budy have any suggestion then plz post the suggestion....
thanks.
pranav_30 25-Feb-12 11:11am View
   
using open cv i can get iplimage from byte array with help of cvGet2D() &cvSet2D()
then convert thay iplimage into hbitmap
is this proper way ??
pranav_30 25-Feb-12 10:57am View
   
i think gdiplus have some performance issue.?????
pranav_30 1-Feb-12 7:48am View
   
well i had tried WM_WINDOWPOSCHANGED & WM_SIZE
i am using virtual HRESULT STDMETHODCALLTYPE RepaintVideo( ) of vmr9.h for repainting .
when i maximized application frame appears for shot duration & again it goes disappears..
pranav_30 1-Feb-12 4:01am View
   
suppose instead of thread if i call the threadPaint( void * ) function from WM_TIMER (where i set the timer event for 10 ms) then applications runs fine(no crashes & no abnormal window update) but drawing of line over video is not smooth as like using thread.
pranav_30 1-Feb-12 3:50am View
   
in same main.cpp file where is my thread present but suppose in wm_paint i did not write anything
pranav_30 30-Jan-12 1:25am View
   
well i used char dwDirectory[256];
strcpy_s();
&
fs->write(log,strlen(log));

:)
pranav_30 29-Jan-12 11:39am View
   
ok thanks... so i think i dont required to use TCHAR ..
i replace it with char :)
pranav_30 29-Jan-12 10:39am View
   
thx shal i use
Char instead of Tchar..
Ok i wl replace that strcpy

And after terminatng program output winow is ok means no mem leak detected..

Any further sugetn plz..
pranav_30 26-Jan-12 9:15am View
   
ok supose i have only klite codek..
Then which fourfcc should i use..
Bcoz i tried with all documented fcc of open cv
Bt prblm nt solved..
pranav_30 25-Jan-12 23:07pm View
   
is there any other api for multiple camera capture. i try to learn directshow.. but could not able to understand the procedure of direct show.
pranav_30 25-Jan-12 10:58am View
   
i have instal klite kodek pack so i dnt thnk k its kodek issue..
pranav_30 25-Jan-12 8:45am View
   
cvWriteFrame (writeravi,imgavi);

gives acess violatn while readng loctn ...
eror
pranav_30 25-Jan-12 7:11am View
   
ohhh i m realy sorry i dont know this thing...........
pranav_30 18-Jan-12 7:36am View
   
i am able to connect two camera simultaneously. even i have recorded video from both camera simultaneously.
i just want to do the work of "SendMessage(hMyWindow2,WM_CAP_DLG_VIDEOSOURCE,0,0);" by me itself. so that user need not to choose camera.
pranav_30 18-Jan-12 3:30am View
   
its normal web cam. i dont know much about drivers but its microsoft wdm .
pranav_30 18-Jan-12 1:50am View
   
i dont think so because i have already try this thing after setting that value to "1" WM_CAP_DRIVER_CONNECT returns 0 that means driver not connected.
pranav_30 15-Jan-12 23:41pm View
   
hi thanks for reply......
I want to change the look of slider (changing the color style of thumb etc)
pranav_30 12-Jan-12 2:41am View
   
Deleted
below code used to display textual display when cursor is on icon(HOME & EXIT)
case WM_MOUSEMOVE:
{
HWND hwButton_home=GetDlgItem(g_hDialogWindow,IDC_ICON_HOME);
HWND hwButton_exit=GetDlgItem(g_hDialogWindow,IDC_ICON_EXIT);

WINDOWPLACEMENT lpwndpl_home;
WINDOWPLACEMENT lpwndpl_exit;

GetWindowPlacement(hwButton_home,&lpwndpl_home);
GetWindowPlacement(hwButton_analyze,&lpwndpl_exit);



if( ((lpwndpl_home.rcNormalPosition.left)
pranav_30 1-Dec-11 1:40am View
   
i have directx 8.1 and directx 9.0 but in 9.0 there is no directshow so i m using dx8.1
pranav_30 1-Dec-11 1:07am View
   
I hv already changed the PVOID64 to POINTER_64 in typedef union _FILE_SEGMENT_ELEMENT

n after that i m getting above two error
pranav_30 29-Nov-11 6:46am View
   
i dont think so b coz i analyze that video on the cswing analyzer software.. and it is working absolutly fine.
pranav_30 18-Nov-11 11:18am View
   
i have google Bezier curves but i am not able to understand. is there any hardcode equation for Bezier curve like circe(X^2+Y^2=R^2) or line(Y=aX+c)
pranav_30 18-Nov-11 9:38am View
   
actualy i need only equation suppose there are three point P1(x1,y1), P2(x2,y2), P3(x3,y3) P1 and P3 are fixed point P2 is varying(control point). so for example i want to construct parabola then i can apply equation Y=AX^2+BX+C,

simillarly i want equation for that mspaint curve
pranav_30 17-Nov-11 4:34am View
   
i do not want to call media player i want handle video by same application
pranav_30 15-Nov-11 0:30am View
   
"warping bitmaps with a bezier surface" google this key word then first result is form site "fatlinesofcode.philipandrews.org" just go through that site u can warp the second image via control point. amazing example
pranav_30 14-Nov-11 4:38am View
   
i want to aply this algo on image not on text...
pranav_30 10-Nov-11 0:19am View
   
ok could u provide me any ref abt this mesh mappng
pranav_30 9-Nov-11 6:23am View
   
i m not able tu understood p[lz tel me something any oter resource or any sample code in visual c++
pranav_30 9-Nov-11 3:08am View
   
plz let me nknow cylindrical mappinng in visual c
++
pranav_30 9-Nov-11 2:25am View
   
u r not getting i want mapping function for square image to cylindrical and sphericxal
pranav_30 9-Nov-11 2:19am View
   
cylindical mapping as well spherical mapping
pranav_30 3-Nov-11 10:39am View
   
m getting following error


1>sharedcpp.obj : error LNK2001: unresolved external symbol ___MCC_sharedcpp_component_data
1>D:\pranav_study\final_work\matlab_demo\Debug\matlab_demo.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://d:\pranav_study\final_work\matlab_demo\matlab_demo\Debug\BuildLog.htm"
1>matlab_demo - 2 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ======


plz let me what is wrong going over here and what should i do with genrated .dll file after deployment
pranav_30 3-Nov-11 2:42am View
   
i m getting following error


1>sharedcpp.obj : error LNK2001: unresolved external symbol ___MCC_sharedcpp_component_data
1>D:\pranav_study\final_work\matlab_demo\Debug\matlab_demo.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://d:\pranav_study\final_work\matlab_demo\matlab_demo\Debug\BuildLog.htm"
1>matlab_demo - 2 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
pranav_30 3-Nov-11 1:48am View
   
hey bro thanks now i am able to create dll n some cpp file and object file using deployment tool... can u tel me how can i use this dll file to my visual c++ project..
pranav_30 2-Nov-11 15:58pm View
   
hey guys plz let me know interfacing... i want to do project on image warping with 9 contrrol point.. i search lot.. bt not get anything.. so i have decided to take help of matlab.
pranav_30 2-Nov-11 15:43pm View
   
but for that i have to purchase the matlab... at present i have downloaded matlab from torent n i m using that copy..
pranav_30 2-Nov-11 15:00pm View
   
is there any alternate way to achive this interface. bcoz its not feasible option to redistribute entire matlb software
pranav_30 2-Nov-11 14:25pm View
   
i am able to call matlab function using.
Engine *ep;
ep = engOpen("");
engEvalString(ep,"x = (1:1:10);" );
engEvalString(ep, "y = x.^2;");
engEvalString(ep, "plot(x,y);" );
ep = engOpen("");

now tel me if i make executable of my project and give to the client. then client pc need matlab installed for runnig the project
pranav_30 1-Nov-11 6:02am View
   
i go though wiki.. and i dont have credential for IEEE .. and actualy i want some idea to implement this transformation in visual c++...
pranav_30 29-Oct-11 4:18am View
   
hey the link u provided consist of project in which there is speech to text conversion.
do u have any example or link where i can find voice to voice comparison...
pranav_30 29-Oct-11 1:48am View
   
yes ur right
pranav_30 18-Oct-11 21:36pm View
   
hey i got confused in wrapping and warpping..
Bt i google abt it n i thnk its warping..
Thx buddy u put me on right track...
pranav_30 18-Oct-11 15:12pm View
   
THANKS FOR YoUR REPLY
i have google many times bt not get any quality stuff.

i need one dummy source code in visual c++ so that i can study it ang i can modify it according to my need..