CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: binary2

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Unresolved external symbol ___iob_func libcurl.x86.lib

    I am trying to compile a project with visual studio 2017 and I'm getting the error:


    libcurl.x86.lib(mprintf.obj) : error LNK2001: unresolved external symbol ___iob_func

    It seems libcurl is...
  2. Replies
    3
    Views
    4,000

    Stdout undeclared identifier

    I'm trying to compile cpuminer in visual studio 2017 and I'm getting the error:

    error C2065: 'stdout': undeclared identifier

    At line:

    vfprintf(stdout, f, ap);


    I have included...
  3. Replies
    1
    Views
    2,215

    Errors in stdio.h

    I'm having the source code for an open source project without the project file, the project is written in C,
    I added the source code to an empty C project in Code Blocks and I'm getting some errors...
  4. Replies
    1
    Views
    963

    Hide a program from another program

    Is there a way to hide a program from another program using it's process handle?



    #include <iostream>
    #include <windows.h>
    #include <cstdio>
    #include <tlhelp32.h>

    using namespace std;
  5. Windows main loop and a server loop on 2 threads

    I'm trying to setup mongoos server in a Winndows app.
    The server code needs to be in an infinite loop, so does the windows main loop. I put the server code and win loop on 2 threads, the problem is,...
  6. Replies
    4
    Views
    5,170

    Re: Expression did not evaluate to a constant

    "inc" is an int



    int inc = 0;

    string line;
    varCount1 = 0;
    ifstream ddt( "file.dat" );
    if (ddt){
  7. Replies
    4
    Views
    5,170

    Expression did not evaluate to a constant

    I'm getting this error "Expression did not evaluate to a constant" when declaring a string in Visual Studio;

    string data[inc+1];
  8. Replies
    2
    Views
    7,376

    Re: Cannot convert from const char to LPCWSTR

    Thank you
  9. Replies
    2
    Views
    7,376

    Cannot convert from const char to LPCWSTR

    I have a code that worked in Code Blocks but doesn't in Visual Studio.


    element = CreateWindow("STATIC", "Label: ", WS_VISIBLE | WS_CHILD, 30, 100, 100, 30, hwnd, NULL, NULL, NULL);


    When...
  10. Re: Getting empty string as a response from a web server app

    The browser connects every time
  11. Getting empty string as a response from a web server app

    I have a web server app, and a client app that works like a browser. I get the desired response from the server app if I type my IP in the browser window, if I read the response to the client app I...
  12. Replies
    18
    Views
    15,217

    Re: Two dimensional dynamic string array

    Thank you

    How do I reference this in multiple cpp files and headers.

    In functions.cpp I have :



    vector<vector<string>> str;
    vector<string> A;
  13. Replies
    4
    Views
    1,028

    Re: String compare error

    Thank you!
  14. Replies
    18
    Views
    15,217

    Two dimensional dynamic string array

    I have a 2 dimensional dynamic string array. I don't understand how to add values at the end of it



    vector<vector<string>> str;
    vector<string> A;

    A.push_back("1");
    A.push_back("2");...
  15. Replies
    4
    Views
    1,028

    String compare error

    I'm retrieving the string from an edit control, the string is always 64 characters long, I need to check if the string is filled , when running the code I'm getting the error:

    error: request for...
  16. Replies
    16
    Views
    10,566

    Re: Changing the color of elements - Win API

    Thank you!

    Is there a way to set a border color and style to a "static" control? I'm interested in applying a dotted border to the top and bottom of the control
  17. Replies
    16
    Views
    10,566

    Re: Changing the color of elements - Win API

    The paint event is under the create event

    My Window Procedure is structured like this:



    LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
    ...
  18. Replies
    16
    Views
    10,566

    Re: Changing the color of elements - Win API

    Thank you!

    I'm creating several "EDIT" elements with a for, when I move the window outside the screen and inside again the "EDIT" elements disappear along with a line in the WM_PAINT event

    ...
  19. Replies
    16
    Views
    10,566

    Re: Changing the color of elements - Win API

    I created a button with owner draw, but it doesn't display the button

    Code:


    button = CreateWindow("BUTTON","Overview",WS_VISIBLE | WS_CHILD | BS_OWNERDRAW, 0,20,200,50, hwnd , (HMENU) 2 ,...
  20. Replies
    16
    Views
    10,566

    Re: Changing the color of elements - Win API

    For creating a filled rectangle I have this code:


    hdc=CreateDC(TEXT("DISPLAY"),NULL,NULL,NULL);
    rect = {0, 0, 500,500};
    brush = CreateSolidBrush(RGB(50, 151, 151));
    ...
  21. Replies
    16
    Views
    10,566

    Re: Changing the color of elements - Win API

    I searched the internet , I don't seem to find any examples. Can you show me an example of this
  22. Replies
    16
    Views
    10,566

    Changing the color of elements - Win API

    I have some problems when working with Win32 api.

    1. Changing the text and background color of a button doesn't take effect.
    My code:


    case WM_CTLCOLORBTN:
    COLORREF colorref;
    ...
  23. Re: Winsock API - send an receive data simultaneously

    I put the server and client in 2 threads separately, still data is not sent between 2 instances of my program.



    #pragma comment(lib,"ws2_32.lib")
    #include <WinSock2.h>
    #include <iostream>...
  24. Re: Winsock API - send an receive data simultaneously

    Can you show me an example of how to do that
  25. Re: Winsock API - send an receive data simultaneously

    I tried with the server and client separated in 2 console programs and it worked. So the connection part is good.
    I thing my problem is in the while loop here:



    SOCKET newConnection; //Socket...
Results 1 to 25 of 41
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured