Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

jocblack

@jocblack
About
Posts
6
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Winsock
    J jocblack

    I was able to force the linker to use "ws2_32.lib" by adding the following line in my code. #pragma comment(lib, "ws2_32.lib") I found this in MSDN but it took a lot of search. Thanks

    C / C++ / MFC help question c++ delphi sysadmin

  • Winsock
    J jocblack

    Hi: I am building a client program in VC++ 6.0 using WINSOCK to connect to the server. I have a very small program that testing WINSOCK. My program contains include statement for WINSOCK2.h. Here is the code to initialize WINSOCK. WSADATA wsaData; int iResult; iResult = WSAStartup(0x0202, &wsaData); if (iResult != 0) { printf("WSAStartup failed: %d\n", iResult); } Errors: Linking... testwin1Dlg.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8 Debug/testwin1.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. testwin1.exe - 2 error(s), 0 warning(s) Additional Comment: I looked in WINSOCK.H and WINSOCK2.H and both has WSAStartup. In WINSOCK.H, it was PASCAL version. In WINSOCK2.H, it was either C or C++ version. Both version has the same signature (calling argurment). Can this be an issue? if yes, how can I eliminate the PASCAL version (WINSOCK.H)? Note that, I never include WINSOCK.H. Thanks Bill

    C / C++ / MFC help question c++ delphi sysadmin

  • type convert problem
    J jocblack

    I have the same problem long time ago. It is a mix mode of string vs char. Here the solution: define string strd1 = "9"; as char strd1 [1]="9"; or CString strd1 ="9";

    Managed C++/CLI help tutorial question

  • Need help onsending message between two windows.
    J jocblack

    QuerySibling is unavailable because I didn't setup the property sheet, I used property control default that came with MFC. Dave, have you used the "ON_MESSAGE" before and did you have any luck with it. Thanks Bill

    C / C++ / MFC help csharp c++ visual-studio question

  • Need help onsending message between two windows.
    J jocblack

    in the header file that I didn't list here.

    C / C++ / MFC help csharp c++ visual-studio question

  • Need help onsending message between two windows.
    J jocblack

    I have a project that is a note book (i.e. tab-- TabCtrl and and Pages). These tabpages are default with MS Visual Studio C++6. For the sake of the argument, I called them page1, 2, 3, and 4. Page1 will have a button that notifies other pages (2-4) to take some action. The message map is WM_CHANGESOMETHING. Page1 code (sender): void Page1::OnButtonClick(){ SendMessage(WM_FLIGHTCHANGE); } Page2' header file(recipient): //{{AFX_MSG(CTabSheet2) virtual BOOL OnInitDialog(); afx_msg LRESULT OnFlightChange(WPARAM wParam, LPARAM lParam); //}}AFX_MSG DECLARE_MESSAGE_MAP() Page2'Body Message Mapping: BEGIN_MESSAGE_MAP(CTabSheet2, CDialog) //{{AFX_MSG_MAP(CTabSheet2) ON_WM_SHOWWINDOW() ON_MESSAGE(WM_FLIGHTCHANGE, OnFlightChange) //}}AFX_MSG_MAP END_MESSAGE_MAP() Page2'Body Implementation: LRESULT CTabSheet2::OnFlightChange(wParam, lParam) { int a; return (LRESULT)0; } Problem, when compile and link, I get the error message listed below. fatal error C1010: unexpected end of file while looking for precompiled header directive Any one know what the problem is? Thanks Bill

    C / C++ / MFC help csharp c++ visual-studio question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups