Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

adityarao31

@adityarao31
About
Posts
20
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Only unist.isu gets installed by visual C++ install shield
    A adityarao31

    I have created very simple dialog based project by using visual C++. I have build it in release mode Now I added this exe is FileGroups link of installshild ,then I compiled and run the setup folder get created in C:\program files ,but it contains only uninst.isu file I have licenced version of Visual studio 6.0,so problem of corrupt files., Please help me on this issue

    Be Happy

    C / C++ / MFC help c++ announcement csharp visual-studio

  • Is COM an 'outdated' technology?
    A adityarao31

    Thank you very much,for giving some of your precious time for replying my question.

    Be Happy

    The Lounge com design question discussion

  • Is COM an 'outdated' technology?
    A adityarao31

    I am new to COM,DCOM,I am a MFC Programmer. Is it wise to study COM,DCOM at this time? Does microsoft will remove the support for this architecture in near future? Please help me on this issue as its very important for my career

    Be Happy

    The Lounge com design question discussion

  • Where to get suitable SQL Server Management Studio?
    A adityarao31

    Thank you very much

    Be Happy

    Database csharp help c++ database sql-server

  • Where to get suitable SQL Server Management Studio?
    A adityarao31

    I have purchased Visual Studio 2010 Professional. Along with it SQL server express 2008 R2 has been installed, but I cannot find "SQL Server Management Studio". May be it may not be needed also.But for learning purpose I need it. If I download from MSDN ,I will get SQL express 2005 and may be I will land in conflict. Please help me on this issue. Also I want to know is there ADO.NET connectivity for VC++ also ?

    Be Happy

    Database csharp help c++ database sql-server

  • Which function can I use instead of ShowControlBar
    A adityarao31

    I am getting error at following line of code ShowControlBar(&m_wndColorBar, !m_wndColorBar.IsVisible(), FALSE); the error is error C2664: 'CFrameWnd::ShowControlBar' : cannot convert parameter 1 from 'CMFCToolBar *' to 'CControlBar *' I understand the error is due to m_wndColorBar is a variable of CToolBar ,but of CMFCToolbar. Please guide me which function can I use instead of ShowControlBar

    Be Happy

    C / C++ / MFC help tutorial

  • Want some guidance
    A adityarao31

    Thank you everyone for your answers

    Be Happy

    Visual Studio csharp c++ visual-studio business tutorial

  • Want some guidance
    A adityarao31

    I was vc++ 6.0 programmer ,for last three years I was away from programming due to my family business. now I want to enter in programming again .so latest version is visual studio.net 2010. Where should i start ? , how should I start ? ,where will I get guidance ?. It seems express edition does not have mfc.Please guide me.

    Be Happy

    Visual Studio csharp c++ visual-studio business tutorial

  • How To Serailize collection class object
    A adityarao31

    I have simple CLine class which has two member variables which store first and last point of line.I store set of drawn lines in CObArray .Now I want to save the set of lines which I have drawn on CView on save button. And Get All lines back on open button click. Means serialize and deserialize in and out of CObArray Collection class. I have tried as shown in code. but I get no values where I have mentioned in code.Thus enable to retrieve the saved drawing. Can any one help me on this issue? // Serialization3View.cpp : implementation of the CSerialization3View class // #include "stdafx.h" #include "Serialization3.h" #include "Serialization3Doc.h" #include "Serialization3View.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CSerialization3View IMPLEMENT_DYNCREATE(CSerialization3View, CView) BEGIN_MESSAGE_MAP(CSerialization3View, CView) //{{AFX_MSG_MAP(CSerialization3View) ON_WM_LBUTTONDOWN() ON_WM_LBUTTONUP() ON_WM_MOUSEMOVE() ON_COMMAND(ID_FILE_SAVE, OnFileSave) ON_COMMAND(ID_FILE_OPEN, OnFileOpen) //}}AFX_MSG_MAP // Standard printing commands ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint) ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CSerialization3View construction/destruction CSerialization3View::CSerialization3View() { // TODO: add construction code here } CSerialization3View::~CSerialization3View() { } BOOL CSerialization3View::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return CView::PreCreateWindow(cs); } ///////////////////////////////////////////////////////////////////////////// // CSerialization3View drawing void CSerialization3View::OnDraw(CDC* pDC) { CSerialization3Doc* pDoc = GetDocument(); ASSERT_VALID(pDoc); int liCount = pDoc->GetLineCount(); if(liCount > 1) { int lipos; CLine* l; for(lipos = 0;lipos < liCount;lipos++) { l = pDoc->GetLine(lipos); l->Draw(pDC); } } // TODO: add draw code for native data here } ///////////////////////////////////////////////////////////////////////////// // CSerialization3View printing BOOL

    C / C++ / MFC c++ help wpf graphics debugging

  • SetScrollSizes is cauing pinch.
    A adityarao31

    Thanks I will check it tomorrow and will tell you,but it seems right,if I will practically find font height pixels everything will get solved.

    || Lust Causes Sorrow ||

    C / C++ / MFC

  • SetScrollSizes is cauing pinch.
    A adityarao31

    I have written SetScrollSizes function for my class derived from CScrollView in OnInitUpdate. But it is giving me big pinch. I have to read one text file from disk and diaplay as it is by changing font. I created font and I am displaying it. // code fragment. sizeTotal.cx = Linelength //calculated and fine. sizeTotal.cy = Numlines * cyChar; where cyChar = tm.tmHeight + tm.tmExternalLeading; SetScrollSizes(MM_TEXT,sizeTotal); But during display I find scroll is too huge than my file and scrolling is very fast than required. If file would have of constant size I might have hardcoded but sometimes it is just four lines and some time tens of thousands. Can any one tell me. I checked current mapping mode of device context ,it is MM_TEXT. muktoham

    || Lust Causes Sorrow ||

    C / C++ / MFC

  • How to change place of activex control at run time
    A adityarao31

    I am using version of VC++ version 6.0. I dont understand your concept of wrapper class. The classes gets automatically created once you place activex control. So I feel version in not required. The defination of create() which I have written is one which comes in Active X controls self generated classes. Any way I done one mistake I dont need to create control at runtime. I just need to change place at runtime so that I can save my text display. I got my own answer I have to get window then rect and change place. My current problem is diverted,but still these create remains problem. #if !defined(AFX_WMPPLAYER4_H__29950495_92A5_48C7_A665_14C10BA68140__INCLUDED_) #define AFX_WMPPLAYER4_H__29950495_92A5_48C7_A665_14C10BA68140__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++ // NOTE: Do not modify the contents of this file. If this class is regenerated by // Microsoft Visual C++, your modifications will be overwritten. // Dispatch interfaces referenced by this interface class CWMPControls; class CWMPSettings; class CWMPMedia; class CWMPMediaCollection; class CWMPPlaylistCollection; class CWMPNetwork; class CWMPPlaylist; class CWMPCdromCollection; class CWMPClosedCaption; class CWMPError; class CWMPDVD; class CWMPPlayerApplication; ///////////////////////////////////////////////////////////////////////////// // CWMPPlayer4 wrapper class class CWMPPlayer4 : public CWnd { protected: DECLARE_DYNCREATE(CWMPPlayer4) public: CLSID const& GetClsid() { static CLSID const clsid = { 0x6bf52a52, 0x394a, 0x11d3, { 0xb1, 0x53, 0x0, 0xc0, 0x4f, 0x79, 0xfa, 0xa6 } }; return clsid; } virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL) { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); } BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL) { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID, pPersist, bStorage, bstrLicKey); } // Attributes public: // Operations public: void close(); CString GetUrl(); void SetUrl(LPCTSTR lpszNewValue); long GetOpenState(); long GetPlayState(); CWMPControls G

    C / C++ / MFC delphi com

  • How to change place of activex control at run time
    A adityarao31

    I am having windows media player as activex control in my application. I am trying to use create method for same but I am not able to use. Some where I am missing something. CWMPPlayer4 m_lplayer; void CApl2IEDlg::OnButton1() { RECT lprect; lprect.bottom = 0; lprect.left = 0; lprect.right = 100; lprect.top = 100; RegisterWindow(); CWMPPlayer4 cwmp; cwmp.Create(m_lplayer,mediaclass,0,lprect,(CWnd*)m_hWnd,0,NULL); } LRESULT FAR PASCAL WndProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam) { return (DefWindowProc(hWnd, Message, wParam, lParam)); } void CApl2IEDlg::RegisterWindow() { mediaclass = "mediaclass"; WNDCLASS wndclass; wndclass.style = CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW; wndclass.lpfnWndProc = WndProc; wndclass.cbClsExtra = 0; wndclass.cbWndExtra = 0; wndclass.hInstance = AfxGetInstanceHandle(); wndclass.hIcon = LoadIcon(NULL,_T("")); wndclass.hCursor = LoadCursor(NULL,IDC_ARROW); wndclass.lpszMenuName = NULL; wndclass.lpszClassName = mediaclass; }

    || Lust Causes Sorrow ||

    C / C++ / MFC delphi com

  • My registered activex control is corrupted or missing.
    A adityarao31

    My registered activex control seems to be corrupted or missing. Now before installing new one I want to remove it entirely even from VC++ registered activex control. How Can I remove it. In similar manner how to remove added activex control in application.Because it gets added to standard controls list. How to remove it. I agree most of time when you add same control it gets overwritten but I dont want that, as I am not sure overwriting may not be correct.

    || Lust Causes Sorrow ||

    C / C++ / MFC c++ com tutorial question

  • Windows Media Player ActiveX Control.
    A adityarao31

    I got my answer through another forum, My approach and functions where right,my control seems to be not installed correctly because same code worked fine on another machine.

    || Lust Causes Sorrow ||

    C / C++ / MFC c++ com help

  • Windows Media Player ActiveX Control.
    A adityarao31

    I included windows media player control successfully, but now I am getting problem with that. I am not able to play movie inside that. It does not resond to any of its functions like SetFileName, SetEnabled,Play. Its buttons doesnot activate. All of its buttons remain inactive. My friend has used it very well in VC++

    || Lust Causes Sorrow ||

    C / C++ / MFC c++ com help

  • Windows Media Player ActiveX Control.
    A adityarao31

    I included windows media player control successfully, but now I am getting problem with that. I am not able to play movie inside that. It does not resond to any of its functions like SetFileName, SetEnabled,Play. Its buttons doesnot activate. All of its buttons remain inactive.

    || Lust Causes Sorrow ||

    C / C++ / MFC com help

  • How to include MPEG Player ?
    A adityarao31

    Thanks to your suggestion, I included windows media player control successfully, but now I am getting problem with that. I am not able to play movie inside that. It does not resond to any of its functions like SetFileName, SetEnabled,Play. Its buttons doesnot activate.

    || Lust Causes Sorrow ||

    C / C++ / MFC c++ html tutorial question

  • Dialog inside view?
    A adityarao31

    I developed application using SDI CHTMLView Is it possible to have dialog at one corner of my view ? If yes how to acvhieve that.

    || Lust Causes Sorrow ||

    C / C++ / MFC tutorial question

  • How to include MPEG Player ?
    A adityarao31

    I am developing software in which MFC exes are called by HTML sripts. I am only involved in developing exe. Now need of time is that I have to include mpeg player in html display at one corner. And based on event in code mpeg will display video. I dont know how to handle situation. And where to read which articles.

    || Lust Causes Sorrow ||

    C / C++ / MFC c++ html tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups