hi I want to create CtoolBar dynamically, without the resource( RC file) entries. Load image to Toolbar and set size based on certain condition. RC file entries makes it predefined. your help is much appreciated.
Benjamin Bruno
Posts
-
Dynamically creating CToolBar -
WPF assembly in C#I want to create a WPF dll( assembly),so that I can use it in some other C# or VC++ application. Please help.
-
Executable created using ant buildApplication developed by javafx while build the application it will create this three file with the application exe msvcp100.dll msvcr100.dll packager.dll then double click the .exe application crash shows the error like Problem Event Name: APPCRASH Application Name: SimulatorEndUser.exe Application Version: 0.0.0.0 Application Timestamp: 55761984 Fault Module Name: packager.dll Fault Module Version: 0.0.0.0 Fault Module Timestamp: 55761993 Exception Code: c0000005 Exception Offset: 000129a0 OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1033 Additional Information 1: 0a9e Additional Information 2: 0a9e372d3b4ad19135b953a78882e789 Additional Information 3: 0a9e Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
-
Executable created using ant buildhi I have created a java application(exe). Now when I try to execute the application from a directory whose name is in unicode(Japanese),it crashes. I could not figure out the problem ,its showing packager.dll issue. Please help..
-
Problem in reading BMP HeaderHi, I'm trying to read a BMP image, the code is as follows. If i'm using a value 820 as BMP_HEADER_SIZE, my program works fine. I tried calculating the BMP_HEADER_SIZE value by summing the size of structure tagBITMAPFILEHEADER and tagBITMAPINFOHEADER (from BMP header file) but the program is not working. How can i solve this? Class BlockinessProc. # define BMP_HEADER_SIZE 820 void ReadImage(const char* filename); char m_info[BMP_HEADER_SIZE]; unsignedchar** m_memblock; void Blockinessproc::ReadImage(const char* filename)// Reading a BMP Image { streampos size; ifstream inFile; inFile.open(filename, ios::in|ios::binary); if (inFile.is_open()) { inFile.seekg (0, ios::beg); long nHeaderSize = sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER); inFile.read ((char*)m_info, nHeaderSize); width = *(int*)&m_info[18]; //Getting Image width from Header height = *(int*)&m_info[22];// Getting Image height from Header long pos = inFile.tellg(); m_memblock = new uchar* [width]; m_memblock_out = new uchar* [width]; for (int i = 0; i < height; i++) // create new array size: height of image. { m_memblock[i] = new uchar [width*3]; m_memblock_out[i] = new uchar [width*3]; } int size_s = inFile.gcount(); inFile.seekg (pos); for(int i=0; i(m_memblock[i]), width*3); } inFile.close(); } } Thanks in Advance
-
memset() run time errormay be give memset(pSharedBuffer2, 0, max_msg );
-
CIPAddressCtrl background colorHi How to change the background color of CIPAddressCtrl . Thanks
-
Coloring ClistBox controlHi How to color the CListBox controls entire client area ? I mean entire client rect. Thanks
-
Loading ICONHi How to load ICON file in Dialog application client area in VC8.
-
load dllHow to load dll in pure C++ class?
-
CString to HEXHi How to convert a CString value to HEX? eg: CString strHex = "0008103e"; to HEX value = 0x0008103e please help Thanks
-
XML parsingHi In my code I am parsing XML using MSXML .But I am not able to get Node values using MSXML .How to read the node values?
IXMLDOMNode\* nodeVal; CString csXMLValue; BSTR bsSelectedNodeItemName; hResult = pChildNodeList->get\_item( nIdx, &nodeVal ); hResult = nodeVal->get\_nodeName(&bsSelectedNodeItemName); if ( 0 == \_tcscmp( OLE2T( bsSelectedNodeItemName ), L"User" ) ) { nodeVal->get\_nodeValue(&**vtNodeValue**); }
but vtNodeValue is NULL .My XML node structure is
<User >2700</User>
<User>3700</User>I want to read the node values ie,2700 and 3700
thanks in advance
-
Radio Button CaptionHi How to change the radio button caption text color( MFC ).By default it is showing Black color.I want the radio button caption text color, other than default color. Thanks
-
Drawinghi I want to draw a perpendicular line from another line.How can it be implemented in VC++(GDI). thanks :^)
-
Line DrawingHi I want to draw line on OnMouseMove function of a dialog class.I want to draw the line in one color(fixed color not inverse color ),but it is showing in different/inverse color. If I omit SetROP2 the line will get spread. <code> CDC* pDC = this->GetDC(); int nR2 = pDC->SetROP2( R2_NOTXORPEN ); pDC->MoveTo(m_StartPoint); pDC->LineTo(m_Previouspoint); m_Previouspoint = point; pDC->MoveTo(m_StartPoint); pDC->LineTo(point); </code> How to solve it? :^) thanks
-
Getting path countHi
BeginPath(hdc) Ellipse( hdc,0,0,200,200 ); EndPath(hdc); FlattenPath( hdc); LPPOINT pt; LPBYTE byt; int nCnt= 0; nCnt = GetPath(hdc, (LPPOINT)NULL,(LPBYTE)NULL,0); if( nCnt != 0 ) { pt = new POINT[nCnt]; byt =new BYTE[nCnt]; }
Is this code produce correct path count (nCnt) in the given ellipse? -
Hit testingHi How to find hit testing of Circle/ellipse using mathematical formulas(not using Regions)? thanks :)
-
Hide TilteBar CMFCToolBar windowHow to Hide the TilteBar of a window Created Using CMFCToolBar in Floating Style
-
CListCtrlHi How to change the default Blue selected color of CListCtrl to White?
-
Wrapper ClassHi How to create a wrapper class for an existing class? thanks : :^)