Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. TintaLiviu

    services.exe eating a lot of CPU

    I have Windows 2000 Professional installed on my PC.All works fine until I select one .mp3 file in Windows Explorer.When I do that, and only then, I get an increase in my CPU usage of almost 40%.(Example: from 2% to 42%).After I remove the selection from the .mp3 file CPU usage returns to...
  2. TintaLiviu

    CMI8330 sound card on freeBSD 4.8

    Hello, I'm trying to configure my CMI8330 sound card. It is not onboard (so [code]options PNPBIOS[\code] I think is out of question). I've tried to configure it: first I've added to the kernel configuration file: [code] device pcm [\code] After compiling the kernel: [code] cd /dev sh MAKEDEV...
  3. TintaLiviu

    Hello! I want to read a file wit

    You can open the file in binary mode. Let's suppose that f is a FILE pointer to your opened file. You can read the numbers with the following: [code] #define MAX 100 char paranthesis, digit, characters[MAX], character; int nr1, nr2; fread(& paranthesis, sizeof(char), 1, f);//you can test this...
  4. TintaLiviu

    how to use a membervariable of CForm1 in CForm2

    Hello massur, I've looked at your code. In function [code]CUsefulSplitterWnd::ReplaceView[\code] you destroy the View that you want replaced. But you do not remove it from your document class. So, when you iterate through the document's views you got the one you just destroyed. This is the...
  5. TintaLiviu

    how to use a membervariable of CForm1 in CForm2

    Hello massur, Please make it a zip archive, this rar archive seems to be corrupted. I will look at it. Liviu.
  6. TintaLiviu

    how to use a membervariable of CForm1 in CForm2

    I do not have any idea why it crashes. If you want you can dowload the program I've made. It works fine on my computer. When I use CComboBox it works, but when I use CComboBoxEx it does not. The site is: web.ss.pub.ro/~tinta Liviu.
  7. TintaLiviu

    how to use a membervariable of CForm1 in CForm2

    Hello massur, OK. I got what you ment. You used a CComboBoxEx, and I used a CComboBox control. The CComboBoxEx does not support AddString. This is what I've found in C:\ProgramFiles\..\VC98\MFC\Include\AFXCMN2.INL: [code] // While CComboBoxEx derives from CComboBox, there are some //...
  8. TintaLiviu

    how to use a membervariable of CForm1 in CForm2

    I did not have any problem with that line. What does it say when it crashes ? Liviu.
  9. TintaLiviu

    how to use a membervariable of CForm1 in CForm2

    Hello massur, I've created a small test SDI application that does what you want. First I've created the SDI application with SplitWindow selected at step 4 from VC++ 6, button Advance. After that I've made two Dialogs, one contaning a combo-box, the other one button. I've selected the style...
  10. TintaLiviu

    how to use a membervariable of CForm1 in CForm2

    If you do not want to modify your document, you can just use the CDocument's functions: GetFirstViewPosition and GetNextView to search for the CForm1 view pointer, and then use it to add the string to the combo-box. If you have just two views, the search is easy. (all this when you press the...
  11. TintaLiviu

    how to use a membervariable of CForm1 in CForm2

    You can use the CDocument class of your SDI application to pass the data from CForm2 to CForm1. After pressing the button, you set a CDocument variable with the string you want to write in the CForm1's combo-box, and then call CDocument::UpdateAllViews. You must rewrite the CForm1's OnUpdate...

Part and Inventory Search

Back
Top