I have just installed Visual Basic from my campus network. now everytime i boot my computer, I get the mfollowing msg: "Failed to load control 'RichTextBox' from RICHTX32.OCX. Your version of RICHTX32.OCX may be outdated. Make sure you are using the version of the control that was provided with your application." Can someone help me with this problem? Thanks in advance. hearties :confused: :confused:
hearties
Posts
-
RICHTX32.OCX -
error C1088: Cannot flush compiler intermediate filehow can i correct this error? fatal error C1088: Cannot flush compiler intermediate file: 'C:\TEMP\a00202sy': No space left on device
-
Dynamic control over treelist viewI have a treelist view. (reused the class from Gerolf @ http://www.codeproject.com/treectrl/treelistctrlgerolf.asp) When I edit the value (thus the label) of a list item, the value of its parent/ child item are also affected. these values are update din the document but not in the tree view. Only the change in the selected item is updated, not the parent or child item. How can I make sure that all the affected list items labels are updated accordingly. If you have a sample code, it woudl be wonderful. Thanks!
-
pointer question....How can I change the value of my document data from another class? in my sample MFC code in MyProjectView.cpp: ... ... CMyObject* pPencil = GetDocument()->m_pPencil; // the value of GetDocument()->m_pPencil->Length is 0 pPencil->Length = 2; ... ... somehow when I execute this code, the value of m_pPencil->Length in the document is still 0. how can I change the document data from my project's View class? :(
-
Get number of 1s in a set of binary numbersis there a functions of method where I can obtain the number of 1s in a set of binary numbers? eg. I have data = 59; //00111011; and I get nCount = 5; // since there are 5 ones in the binary equivalent of 59 Thanks in advance.
-
using bitwise operatorsto check and set certain bits of a data value, that was what i was trying to get. Thanks for reading through my blunder of code, and samples code. That helps a lot. Just another questions. What if I need to check 2 bits? for eg I want to set bits 1 and 2 to 10. Can I do it in the same way as you described? mask = 6 // 00000110, for checking bits 1 and 2 value |= mask; // is this correct?
-
using bitwise operatorsI have the following data DWORD data, mask, pre_result, result; int nShift; data = 0xF4; // 11110100 mask = 0x04; // 00000100 pre_result = data | mask; // = 00000100 switch (mask) { case 0x01: nShift=0; break; // mask = 00000001 case 0x02: nShift=1; break; // mask = 00000010 case 0x04: nShift=2; break; // mask = 00000100 // other cases } result = pre_result >> nShift; // result = 1 is there a method to dynamically shift the bits of pre_result to obtain the bit value for result without using case statements? pls help.
-
Update tree viewi've tried that btu it still doesn't work. :( :((
-
Popping up a message box from a library in C code used in a C++ programI am writing a c++ .exe MFC program, using a library written in C code. from the C code, I want a message box to pop up when an error has been detected. I tried using MessageBox function but it says too few actual parameters. The function prototype the MessageBox function is: int MessageBox( HWND hWnd, // handle to owner window LPCTSTR lpText, // text in message box LPCTSTR lpCaption, // message box title UINT uType // message box style ); does the problem lies with the hWnd handle? how can i get the handle to the window from the library in C code? Pls help. hearties
-
Update tree viewI have a TreeList view, where the first column is a tree view and the second cloumn is a list, with each list item corresponding to a tree item. I can change list item label via button control (to increase or decrease the value) or edit it value using a dialog box. When I use the button control, I find the the label on the list is not refreshed, I need to deselect it before the values changes. And when I use the dialog to change the value, it does nto change at all. How can I make the label on the list change 'instantaneously'? Thanks in advance
-
dynamically set the text on the top of a dialog boxDoes any one know how to dynamically set the text on top of a dialog box? a sample code would be great! Thanks!
-
maximum length of a CString objectDoes anyone know the maximum length of a CString object? thanks in advance.:eek:
-
use a C function from a C++ programI have included a c program (driver.lib) which is used as a library for my c++ program (myProgram.exe). from my c++ program I need to call C functions from driver.lib. I keep getting this compiler error: LNK2001: unresolved external symbol I read from the MSDN that I have to use 'extern' to call C functions from a C++ program. My question is how and where to use it. A sample code would be wonderful. thanks in advance ;)
-
linking error: library conflicti received this linking error: LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library does anyone knwo hwo to resolve this? thanks in advance
-
Data movement between CString && stringlook into the strcpy function eg: char* dest[1024]; CString sSource = "testline"; strcpy(dest, sSource);
-
Data type for hexadecimal numbersdoes anyone know how to store hexadecimal numbers? cwhich data types can store hex numbers in the form 0xffff1234 and let the compiler readily read it as a hex number and not as a string. is dword such a data type? :-D
-
itoa & ltoadoes itoa and ltoa work when the value is 0? for eg: long d = 0; // or int value char* stop; char* sResult; ltoa(d, sResult, 16); //this line generates error is the error due to the value of d being 0 or are there other reasons? Please help. Thanks!
-
Get tree itemI have placed TVINSERTSTRUCT as a memeber in a self-defined struct, as follows: struct MyStruct { int data; TVINSERTSTRUCT tvins; // etc... } When the user clicks on button A, and having selected a particular tree item, i want to amend the value of the member 'data' which is in the same struct as the selected tree item. I tried to use GetSelectedItem(), bt it returns a HTREEITEM. How do i know which node doe sit belong too? Thanks in advance. :rolleyes:
-
how to convert from CString to LPSTRLPSTR pszText; CString sbuffer; pszText = sbuffer; how can I make the last line work? how to cast?
-
RGB macrom_imageList.Create(16,16, ILC_COLOR | ILC_MASK, 4, 0); CBitmap bm;bm.LoadBitmap(IDB_BITMAP1); m_imageList.Add(&bm, RGB(255, 255, 255)); // error here bm.DeleteObject(); bm.LoadBitmap(IDB_BITMAP2); m_imageList.Add(&bm, RGB(255, 255, 255)); // error here the code above can't work. i copied this from a sample cod in the MSDN library but it just doesn't work! it gives the error: "error C2064: term does not evaluate to a function" did i forget to include some header file? it says in the MSDN that I have to include "windows.h", where do i include this file? or has it already been included?