A beautiful android app is launched for android users. Please follow this link https://play.google.com/store/apps/details?id=com.scribble.app This app is for scribbling and sketching on android, and then one can grab the image. The color of drawing is red, you can draw just anything by your finger touch and write alphabets as well. This is optimized with app-bundle so less memory space is required, any device for it can support. Please check out this link in play store also there is a link of a video, you can check it out before grabbing it. This is a CAD app, handy for android users, from sketching drawing to text writing, by free-hands is possible with this. Very useful and elegant look n feel. You can save your sketch by taking screen shot and start a new sketch by clearing the screen. If you have any query feel free to ask me.
appollosputnik
Posts
-
A beautiful graphics app -
draw multiple lines and move then on screenhow can I implement a transform for each line. I want to pick a line by mouse and then move it anywhere on the screen and place it. drag and move. Currently I am defining a a rect for each line and doing InvalidateRect() and moving and when this line is crossing other line , the other line is getting removed or wiped out. How can I move lines on screen without affecting other lines. Thanks Sujan
-
draw multiple lines and move then on screenI am writing a pure C based win32 applications. I have drawn line. Now i want to translate that line, move the line whereved user wants to move on screen. Then again I drawn another line, I am drawing multiple lines. I have created rectangle region for each line and trying to move the line. When I move the 2nd line over the 1st line on screen the 1st line is getting wiped out. Because I am InvalidateRect() of the rect for the line being moved, so when that rectangle is crossing the other line then the other line is getting removed from the screen. How can I rectify it. How can I have all the lined being on the screen and moved according to the user's wish. The code should be pure C and win32 no MFC. Please help me how can I do it. Any help is highly appreciated. Thanks Sujan
-
win32 drawing shape and StrokeAndFillPath(hDC) please helpI am trying to draw a shape or font on dialog and then fill the outline. I have 2 buttons on this 2 buttons I have the following code [code] case IDC_BUTTON1: MessageBox(hDlg, L"Start Drawing!!", L"ButtonPressed", MB_OK | MB_ICONEXCLAMATION); hDC = GetDC(hDlg); brush = CreateSolidBrush(RGB(128, 128, 128)); SelectObject(hDC, brush); hpen = CreatePen(PS_SOLID, 1, RGB(128, 0, 128)); SelectObject(hDC, hpen); BeginPath(hDC); break; case IDC_BUTTON2: MessageBox(hDlg, L"End Drawing!!", L"ButtonPressed", MB_OK | MB_ICONEXCLAMATION); EndPath(hDC); StrokeAndFillPath(hDC); DeleteObject(brush); ReleaseDC(hDlg, hDC); break; [/code] Then in the drawing part I have the following. [code] case WM_LBUTTONUP: if (IsDlgButtonChecked(hDlg, IDC_RADIO1) == BST_CHECKED ) { EndX = LOWORD(lParam); EndY = HIWORD(lParam); SetROP2(hDC, R2_XORPEN); MoveToEx(hDC, StartX, StartY, NULL); LineTo(hDC, EndX, EndY); IsDrawing = FALSE; } [/code] When I remove the BeginPath() and EndPath() functions my lines are being drawn. But when I insert this BeginPath() and EndPath() and StrokeAndFillPath(hDC); the nothing is being drawn. Why it is not doing as per the expectations. I want to draw a shape for example A with a outline. And i want it to be closed when drawing is ended and filled the hollow portion. What am I doing wrong in this ? Please help. I am not implementing it in WM_PAINT but drawing is done in WM_LBUTTONUP. Please help. Thanks a lot in advance
-
Rotating a single object out of 3 in OpenGLI have 3 objects on the screen, I want to rotate onll 2 objects the axis and X,Y,Z. Another line is there which I want not to rotate. But with this code below all are moving. Check below my DrawScene function. [code] void CopenGLCoordView::DrawScene(CDC *pDC) { wglMakeCurrent(pDC->m_hDC, m_hrc); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glEnable(GL_DEPTH_TEST); glMatrixMode(GL_PROJECTION); glLoadIdentity(); if (wd <= ht) glOrtho(left, right, top*ht/wd, bottom*ht/wd, znear, zfar); else glOrtho(left*wd/ht, right*wd/ht, top, bottom, znear, zfar); glPushMatrix(); glRotatef(rot[0], 1.0f, 0.0f, 0.0f); glRotatef(rot[1], 0.0f, 1.0f, 0.0f); glRotatef(rot[2], 0.0f, 0.0f, 1.0f); glCallList(axes); glPrintX("X"); glPrintY("Y"); glPrintZ("Z"); glPopMatrix(); drawLine(); //This is also moving...i want this to not to move... glFlush(); SwapBuffers(pDC->m_hDC); wglMakeCurrent(NULL, NULL); } :) [/code]
-
Freelancer software developer with 10 years experience C/C++,VC++,Qt,Qwt,OpenGLSoftware developer with 10 years experience in developing desktop applications using C/C++,VC++,Qt,OpenGL for CAD/CAM/CAE/CFD applications. Call Sujan @ +91-8420921887/+91-9163437906. skype: 'sujan.dasmahapatra' , email : 'appollosputnik@yahoo.com' website : http://www.sujantechnologies.com/
-
problem deploying applicationi tried using debugger. All calls are fine. I am passing the 3D model's file name to the function draw() and then its being called. But nothing is drawn on the screen. pls help.
-
problem deploying applicationCould it be happened becasue of graphics card. May be the graphics card is not supporting the 3D model or it is not sufficient. Because in some systems it is working fine.
-
problem deploying applicationI got an application MFC and openGL are used. When I run the application it should load a 3D graphics model. But my tool bar, menu bar everything is coming properly but the 3D model window with the model is not appearing. There is no error or no dll problem. Everything linked propely. Why the 3D model is not coming. Please help me someone. Thanks Sujan Please check this link for the screen shot https://www.dropbox.com/sh/5thffcacwx7ye6u/i_mmqIgerU?m[^]
-
dll application is not launching for some PCSI am facing problems in launching my dll application. which is launching correctly for some PCS but it is not launching for some other PCS. Pls check the 2 attachments.
one is working.jpeg which is working fine. it is expected that when clicking on launch button from client this should show the screen with the CAD model. for some pcs this is working.Check the other attachment which not-working-screen-shot.png which on launching the application it's not displaying the model. it is a grey color screen whethe there's no opengl window even.
I have developed this dll application in dialog based window. Pls help resolve this problem. Thanks a lot in advance Sujan
Check the attachements in codeguru. thread name as this thread name "dll application is not launching for some PCS" under VC++ programming.
-
animation in openglMY OBJECT IS THERE I DINT POST THE DRAWSCENE PART OF THE CODE. IT'S DRAWN ON THE SCREEN, ONLY DIFFICULTY I AM FACING IN SIMULATING IT. I WANT THE OBJECT TO MOVE BACK AND FORTH FOR 1 MINUTE. HOW CAN I ACHIEVE THIS PLS HELP.
-
animation in openglI am trying to animate my object like below, the object should move back and forth, but with this i can't see the movement. please tell me whats going wrong in this code below. Thanks Sujan [code]
// TODO: Add your command handler code here
CDC* pDC = GetDC();
wglMakeCurrent(pDC->m_hDC, m_hrc);
transObj2[0]=transObj2[0] - 40.0f;
Invalidate();
Sleep(5000);
transObj2[0]=transObj2[0] + 40.0f;
Invalidate();
Sleep(5000);
wglMakeCurrent(NULL,NULL);[/code]
-
64 bit option not coming:) My machine is 64 bit. I have installed visual studio 2005, which by default installed in Program Files(x86). When i start visual studio I am not getting the option of win64 in the configuration manager. Please help me how can I get the option, do I need to reinstall it. I installed it 2 times but still the win64 option not coming. Please help. Thanks Sujan
-
64 bit problemMy application is running fine in 32 bits. But in 64 bit my Graphics is not coming. It's a blank window appearing.
I have removed WIN32 definitions in the stdafx.h file please check it...
[code]
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently#pragma once
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#endif// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER // Allow use of features specific to Windows XP or later.
#define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows.
#endif#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
#define _WIN64_WINNT 0x0500 // Change this to the appropriate value to target other versions of Windows.
#endif#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later.
#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE.
#endif#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#include <afxole.h> // MFC OLE classes
#include <afxodlgs.h> // MFC OLE dialog classes
#include <afxdisp.h> // MFC Automation classes#include <afxstr.h >
#include <atlimage.h>#endif // _AFX_NO_OLE_SUPPORT
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h> // MFC ODBC database classes
#endif // _AFX_NO_DB_SUPPORT#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h> // MFC DAO database classes
#endif // _AFX_NO_DAO_SUPPORT#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h> -
in dialog dll because of App class instance application being crashedhow can I do that please give me some hint.. I have one api exposed for mfc client called 'runAppli' [code] __declspec(dllexport)runAppli(CString fileName) { CDlgsViewDlg dlg(fileName, NULL); dlg.DoModal(); return true; } [/code] Using this I am calling the dll after loading. So how can I displaying and handling your dialog in the "context of the original application". Please give me some hints.
-
in dialog dll because of App class instance application being crashedI have dll where I am creating a dialog whihc is shown from the mfc client application. I loading this dll as an extension dll, then by implementing Do.Modal() function I am showing the dialog which has menus, toolbars,black model visualization screen. When trying to display this screen, it's crashing as debug ASSERT failed, at appcore.cpp ASSERT(AfeGetThread()==NULL) My App class is like this in the header file I have the App constructor and in .cpp file I have the construcor and also one instance of ViewApp as below //MyViewApp.h [code] //Inside the class definition MyViewApp(); //constructor dclaration //outside the class definition extern MyViewApp theApp; [/code] //MyViewApp.cpp [code] MyViewApp::MyViewApp() { } MyViewApp theApp; [/code] It's crashing with this code (ASSERT failure in appcore.cpp), and when I am removing this constructor declaration and definition and also removing the one instantiation, then it's not crashing but coming out of the application, My Dialog GUI is not launching. Please help me whats going wrong in this. Thanks a lot for help in advance.
-
mousePress crash 64 bit mfc applicationMy application is working fine on 32 bit, I am trying to run in 64 bit mfc application, GUI is launching, the model is also loaded but the moment I press left right or middle mouse it crashes. what all i need to change to run successfully in 64 bit machine. The error I found in OnMouseActive() function, do i need to implement this function ? Pls help me. Thanks a lot in advance
-
debug dll not workingI have an extension dll. when I am building the dll in release mode, and call from the client mfc application it's launching, but when I am bulding the dll in debug mode and loading from client mfc application it's not launching giving error ////////////////////////////////////////// debug assertion failed. program: file: f:\dd\cvtools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp line: 451 For more information on how your program can cause assertion failure, see visual c++ documentation on asserts (Please retry to debug the application) ////////////////////////////////////////// Please help me why this error is coming I am trying to launch the dll like this [code] hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\View inside a Dialog\\package\\RevolutionDLL\\debug\\dlltest.dll"); [/code] when there is 'release' instead of debug it's working fine. Please help.
-
toolbar not being loaded for dialog dll---extension dllI want to call this dialog from another mfc application, it loads fine working properly. only the toolbar is not coming.
-
toolbar not being loaded for dialog dll---extension dlli have created an extension dll. where i am loading a dialog from the client mfc application. My dialog has all menubar, toolbar, view. the dll dialog is being loaded but the toolbar is not coming. toolbar is there of the client mfc applications toolbar. My dll dialog toolbar is not being shown. any suggestions what could be the problem??? Thanks in advance [code] BOOL CDlgsViewDlg::OnInitDialog() { CDialog::OnInitDialog(); m_pNewView = new CMyView(); ShowWindow(SW_SHOWMAXIMIZED); CRect clientRect; GetClientRect(&clientRect); clientRect.DeflateRect(10, 30); // Creation of the view window if(! m_pNewView->Create(NULL, NULL, WS_VISIBLE | WS_CHILD, clientRect, this, WM_USER)) { MessageBox(L"Failed to create view"); } menu.LoadMenu(IDR_MAINFRAME1); SetMenu(&menu); if(!m_FirstToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_FirstToolBar.LoadToolBar(IDR_TOOLBAR1)) { EndDialog(IDCANCEL); } RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST,0); m_wndStatusBar.Create(this); //We create the status bar m_wndStatusBar.SetIndicators(indicators,2); //Set the number of panes CRect rect; GetClientRect(&rect); //Size the two panes m_wndStatusBar.SetPaneInfo(0,ID_INDICATOR_NISH, SBPS_NORMAL,rect.Width()-100); m_wndStatusBar.SetPaneInfo(1,ID_INDICATOR_TIME,SBPS_STRETCH ,0); //This is where we actually draw it on the screen RepositionBars(AFX_IDW_CONTROLBAR_FIRST,AFX_IDW_CONTROLBAR_LAST, ID_INDICATOR_TIME); m_wndStatusBar.SetPaneText(0,L"MainWindow Initialized"); if(!fileName.IsEmpty()) { m_pNewView->loadProfile(fileName); m_pNewView->domainSetUpForProfile(); m_pNewView->drawLines(); m_pNewView->drawArcs(); m_pNewView->drawProfile(); m_pNewView->isModel=true; m_pNewView->OnGeneratesurface(); m_pNewView->OnShade(); m_pNewView->OnIsosouthwest(); } return TRUE; // return TRUE unless you set the focus to a control } [\code] This is the OnInitDialog of my dll dialog where i am loading everything menubar, toolbar calliing some functions etc. Please help