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!

Search results for query: *

  1. ForeverCode

    Program's path

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

    Setting Dialog Min size

    How would I set a CDialog's minimum size so the users cannot resize smaller than the min?
  3. 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)...
  4. 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...
  5. 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)...
  6. ForeverCode

    Raw Sockets

    I'm using raw sockets and when I pull the originating and destination port out of the packet(TCP/IP layer) I'm not getting the right port. I can't find if they are integers or what. All I can find is that they are 16 bits long. http://www.protocols.com/pbook/tcpip.htm#TCP Can anyone help me...
  7. ForeverCode

    nafxcw.lib

    I have a slight problem... I've been writting an app and everything is going well, but when I switched from Debug to Release I get this link error: LINK : fatal error LNK1104: cannot open file "nafxcw.lib" I checked in my LIB folder and I don't have that file. -Micah
  8. ForeverCode

    PHP.dll

    I'm having problems finding information on how I would load a php.dll most likely php4apache.dll and be able to use it in my app. Does anyone know how to do this? I've been searching through the Apache source but it's really hard to find what I'm looking for. Any tips would be great. -Micah
  9. ForeverCode

    recv() issues

    I'm having a problem recieving data... Whenever my code goes into a loop to get the data it stops on recv() and waits for more data once all the data has been read. I dont want this to happen. Is there any way to fix the following code so that once all the data has been written the loop exits...
  10. ForeverCode

    How to connect using sockets

    Alright, I'm having problems connecting to servers with my sockets. I'm using regular sockets and I can only connect to IPs. So, how would I resolve the IP for say "www.google.com" I really dont feel like writting a DNS client cause I know it Isn't necissary. here's what I'm doing...
  11. ForeverCode

    unresolved external symbol _main

    When i try to rebuild i get this: msvcrt.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main Does anyone know what I need to do to fix this?? I'm kinda stuck here until I am able to rebuild my project:( -Micah
  12. ForeverCode

    How to find a clients IP

    I'm having issues getting a client's IP address while using regular Sockets. Do I use "gethostbyname()" or what? Does anyone know how to do it? -Micah
  13. ForeverCode

    dumpout.cpp

    In the program I'm writting I'm getting a "Bug Assertion Failed!" It happens in Dumpout.cpp on line 52. What could be causing this? All my program is doing is it waits for a connection, once something connects it spawns a new thread, passes the connection to the thread, gets the data...
  14. ForeverCode

    Socket- recv();

    char Read[1000]; recv(Socket, Read, 1000, NULL); That puts the clients sent data into Read, but what if the data being sent is greater than the size of the buffer? How would I check to see if I have recieved all the data, and if not read the rest? I can't figure out the best way to do this:/...
  15. ForeverCode

    Problems With Files

    File.Open(RFile, CFile::shareDenyNone | CFile::typeBinary, &pError) UINT nRead; nRead = File.Read(FileData, 8192); while (nRead == 8192){ AllData.Format("%s", FileData); send(work, AllData, 8192, 0); nRead = File.Read(FileData, nRead); } if( nRead > 0 ){...

Part and Inventory Search

Back
Top