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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by ForeverCode

  1. ForeverCode

    Program's path

    Perfect, thank you.
  2. ForeverCode

    Program's path

    How would I get my program's current path its running from?
  3. ForeverCode

    Setting Dialog Min size

    Actually WM_GETMINMAXINFO: void CInstantMessage::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI) { CDialog::OnGetMinMaxInfo(lpMMI); RECT winrect; GetDesktopWindow()->GetClientRect(&winrect); lpMMI->ptReserved = CPoint(0,0); lpMMI->ptMaxSize = CPoint(winrect.right,winrect.bottom)...
  4. ForeverCode

    Setting Dialog Min size

    Thanx, I'm using that, but I thought there was some API that would automatically stop the user from sizing the app when it hits a certain size.
  5. ForeverCode

    Setting Dialog Min size

    How would I set a CDialog's minimum size so the users cannot resize smaller than the min?
  6. ForeverCode

    systray callback

    Never mind, I got it(stupid me). Just add the virtual funtion WindowProc(); LRESULT Dlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) The callback goes there...
  7. ForeverCode

    systray callback

    I'm having issues getting the callback to work for my systray icon. I'm using PreTranslateMessage(MSG* pMsg) to get all the messages in the main dialog. This is what I'm using to make the icon go: NOTIFYICONDATA XAIMIcon; HINSTANCE hInst; hInst = (HINSTANCE)GetWindowLong(m_hWnd,GWL_HINSTANCE)...
  8. ForeverCode

    Create Dlg

    Perfect, thank you.
  9. ForeverCode

    Create Dlg

    I'm trying to create a dlg window from my main dlg out of a resource. I want it to be its own window and not part of the main dlg so it will minimize to the taskbar and such. Righ now I'm using Create() to create modeless dlgs but they are always on top of the main dlg and they wont minimize to...
  10. ForeverCode

    PlaySound ()....No Sound

    I really dont know, I got it to work a long time ago but wasnt satisfied(it lags the program a bit every time the sound is played) so I switched to using DirectX sound. Try this tho: PlaySound("C:\\FullPath\\HelloWin.wav", NULL, SND_FILENAME | SND_ASYNC); See if that works. -Micah
  11. ForeverCode

    Open GL

    I use OpenGL with VC++ as well. Here are two sites I have found very usefull: http://nehe.gamedev.net/ http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg1.htm I'm Pretty sure they dont use MFC. -Micah
  12. ForeverCode

    TLV Tag

    Cool, thanx. I'll check out that website. I think I was able to get what I was looking for by using htons(). The data I'm generating looks like the stuff I got by packet sniffing GAIM and other Clients. Although I dont understand why yet. -Micah
  13. ForeverCode

    TLV Tag

    Does anyone know how I would make a TLV tag? It's suppose to be 2 byes long and its used in AOL's TOC protocol among other things. I cant seem to find any usefull information on how to make it. Im having probs. with the initial signon: Client To Host: 4 byte FLAP version (1) 2 byte TLV Tag (1)...
  14. ForeverCode

    Raw Sockets

    Cool, thanx for the info. I'll have to keep that in mind. At the moment I'm just reading the raw packets but soon I'll be creating them as well. -Micah
  15. ForeverCode

    Raw Sockets

    Oh...I got it. Use htons()

Part and Inventory Search

Back
Top