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 Wanet Telecoms Ltd 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: *

  • Users: computerwhiz
  • Order by date
  1. computerwhiz

    error in resource file

    I knew it had to be something stupid that I did wrong. I was putting a semicolon at the end and I should not have. thanks.
  2. computerwhiz

    error in resource file

    I keep getting this error and I don't understand why. error: Line 22 in file resource.rc : parse error #include "Main.h" ABOUTBOX DIALOGEX 22, 17, 171, 59 STYLE DS_MODALFRAME | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU CAPTION "Check Parser" FONT 8, "MS Sans Serif" { CONTROL "A", -1...
  3. computerwhiz

    refresh the contents of the entire window?

    How do I refresh the entire contents of the main window and all subwindows, listboxs, static boxes, etc. after resizing my main window.. As my main window is resized the other controls are repositioned according to the new window size, but the text is always staying without refreshing, and...
  4. computerwhiz

    maximize button--disable or remove??

    how do I remove or disable the maximize button in the system title bar.
  5. computerwhiz

    writing to files

    ...char lpszFile[512]; // File name from list box char lpszSaveFile[512];// File name to save as pch = (LPCH) LocalAlloc(LPTR, sizeof(char)*81); //reading file buffer pchTmp = pch; for(int a = 0; a <= uintLBCount-1; a++) { ZeroMemory(lpszFile, sizeof(lpszFile))...
  6. computerwhiz

    Progress bars/ what a pain??

    I feel so stupid, you are right and I relized it as soon as I saw your post. thanks.
  7. computerwhiz

    Progress bars/ what a pain??

    by the way I am using the default range setting of 0 to 100, I have not reset the step increment since I an not using stepit.
  8. computerwhiz

    Progress bars/ what a pain??

    ...position of the // progress bar by the % of file read. SendMessage(hwndPB, PBM_SETPOS, (WPARAM) ((iTotBytes/dwFileSize)*100), 0); } else break; } SetWindowText(hwndSTS, "..."); SendMessage(hwndPB, PBM_SETPOS, (WPARAM)0, 0); }...
  9. computerwhiz

    listbox count???

    I am trying to find the count of items in my listbox and then delete those items but when I retrieve the count I get half of what I should. I have tried both ways of getting the listbox count. example: my listbox has 10 entries, the count would come back as 5. my listbox has 3 entries, the...
  10. computerwhiz

    drag and drop files

    ...dropped files structure. I am using dev-cpp and I am getting the error: 97 C:\WINDOWS\Desktop\mysourceC++\main.cpp invalid conversion from `void*' to `HDROP__*' msdn.com says this is the way to attain the structure. I am confused. help please. case WM_DROPFILES: { HDROP...
  11. computerwhiz

    Dev-C++ compiler giving error `__gxx_personality_v0'

    absolutely perfect, I took my files and placed them into a new project and when I compiled it worked. thank you very much.
  12. computerwhiz

    Dev-C++ compiler giving error `__gxx_personality_v0'

    This is the make file: # Project: chkparser # Makefile created by Dev-C++ 4.9.8.7 CPP = g++.exe CC = gcc.exe WINDRES = windres.exe RES = chkparser_private.res OBJ = Main.o $(RES) LINKOBJ = Main.o $(RES) LIBS = -L"C:/DEV-CPP/lib" -mwindows INCS = -I"C:/DEV-CPP/include" CXXINCS =...
  13. computerwhiz

    Dev-C++ compiler giving error `__gxx_personality_v0'

    I keep getting this error I have listed below but I cannot figure out what is causing it. Please help. I would show you code but I don't even know what is causing the error. Compiler: Default compiler Building Makefile: "C:\WINDOWS\Desktop\mysource\Makefile.win" Executing make... make.exe -f...
  14. computerwhiz

    memory management???

    Is there a faster way to insert a particular string into a string at a certain position? Here is the code I am using now. <pszText> is a static global variable accessed in several functions. My program is running to slow, would reallocation be faster than what I am doing now? void Insert(int...
  15. computerwhiz

    how do i convert an int into an lpstr for use in a string

    I need to use the number in my loop counter as part of a string to show the count in my status bar. but I cannot figure out how to convert my int variable into a lpstr variable for use. I was thinking like this: int Pages = 0; lpstr Temp = &Pages;
  16. computerwhiz

    messagebox()

    ohh man that was so duh. thanks, that was my dumb moment for the day.
  17. computerwhiz

    messagebox()

    how do I use the results from a user pressing "yes" or "no" in a message box? an if statement or in wndproc area? INT Result = MessageBox( hwnd, "This file has not been parsed.\r\n" "Do you want to Parse this file now?", "File not parsed", MB_YESNO | MB_DEFBUTTON1 |...
  18. computerwhiz

    SETTEXT OF DIALOG??????

    is there a large scale text editor dialog box that can be used? Or should I just rethink this whole procedure and use textout to display the file text? Would the dialog be able to handle the amount of data using textout?
  19. computerwhiz

    SETTEXT OF DIALOG??????

    ...if(bSave) { ofn.Flags = OFN_EXPLORER | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT; ofn.lpstrFilter = &quot;CSV Files (*.csv)\0*.csv\0\0&quot;; if(GetSaveFileName(&ofn)) { if(!SaveFile(GetDlgItem(hwnd, IDC_MAIN_TEXT), szFileName)) { MessageBox(hwnd...
  20. computerwhiz

    Loading a file into a dialog box for editing?

    all the data of the file is being parsed into pieces in one continuous while loop.

Part and Inventory Search

Back
Top