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
E

Eugene Pustovoyt

@Eugene Pustovoyt
About
Posts
263
Topics
86
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to get the title of CPropertyPage ?
    E Eugene Pustovoyt

    This doesn't work because this structure will only become valid after the CPropertyPage is created, not before. Before creation pszTitle is empty

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    C / C++ / MFC com debugging tutorial question

  • How to get the title of CPropertyPage ?
    E Eugene Pustovoyt

    How to get the title of CPropertyPage before create CPropertySheet: CPropertyPage somePage; CPropertySheet m_sheet; TRACE(_T("Adding page '%'\n"), somePage.GetTitle()); m_sheet.AddPage(&somePage); ... m_sheet.Create(....);

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    C / C++ / MFC com debugging tutorial question

  • How to check retrived IP address from DHCP server for conflict ?
    E Eugene Pustovoyt

    Thanks. I did. In final I'll plan to used this code in the embedded application with hardware ethernet chip. It supports only a little count of sockets and I have to use a single socket for some sequence of tasks (DHCP, PING, SNTP etc).

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    Windows Development tutorial com sysadmin help question

  • How to check retrived IP address from DHCP server for conflict ?
    E Eugene Pustovoyt

    Thanks. I've used the SendArp function

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    Windows Development tutorial com sysadmin help question

  • How to check retrived IP address from DHCP server for conflict ?
    E Eugene Pustovoyt

    Thanks. ARP is working!

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    Windows Development tutorial com sysadmin help question

  • How to check retrived IP address from DHCP server for conflict ?
    E Eugene Pustovoyt

    I'm writing a dhcp-client code for my embedded application on cortex. Just I'm writing and debugging code on Windows. I'm testing how dhcp-requests are creating and how responces are handling. After that I'm porting this code to my embedded application For example: https://cdn1.radikalno.ru/uploads/2020/8/2/75f89f33473f9ebdf71927b46ac31262-full.jpg[^]

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    Windows Development tutorial com sysadmin help question

  • How to check retrived IP address from DHCP server for conflict ?
    E Eugene Pustovoyt

    I mean to check retrieved from DHCP server IP address is exist a some device in local network with same IP address or not. If exist I have to send DHCPDECLINE to DHCP server and request another IP address

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    Windows Development tutorial com sysadmin help question

  • How to check retrived IP address from DHCP server for conflict ?
    E Eugene Pustovoyt

    I'm debugging the client's DHСP code on winsock and after receiving DHCPACK I want to check the received IP for a conflict. But I don't know how to. Could someone help with example?

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    Windows Development tutorial com sysadmin help question

  • DNS query with winsock was failed
    E Eugene Pustovoyt

    Does it mean that the DNS server does not respond if there is not a single byte in response? But why?

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    Windows Development database com hardware debugging question

  • DNS query with winsock was failed
    E Eugene Pustovoyt

    I tried to specify the reading size to 1 byte instead 100 from example. But I got same result.

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    Windows Development database com hardware debugging question

  • DNS query with winsock was failed
    E Eugene Pustovoyt

    You're right. Getting size of structure better after initialization. But in my cause this structure has constant length and her size will be same after initialization. Second, I check other returning values but I cut this code for this example. When I'm debugging this code sendto function return 28. This value is equal to the length of sent data.

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    Windows Development database com hardware debugging question

  • DNS query with winsock was failed
    E Eugene Pustovoyt

    Hi, everybody I understand winsock has gethostbyname for this. But I need to debug for embedded application and first I try the code on Windows. Here is a my code:

    sockaddr\_in dns\_addr;
    int dns\_size = sizeof(dns\_addr);
    ZeroMemory(&dns\_addr, dns\_size);
    dns\_addr.sin\_family = AF\_INET;
    dns\_addr.sin\_port = htons(53);
    dns\_addr.sin\_addr.s\_addr = inet\_addr("8.8.8.8");
    
    SOCKET out = socket(AF\_INET, SOCK\_DGRAM, 0);
    
    char msg\[\] = {
    	0x12, 0x34,			// ID 
    	0x01, 0x00,			// QR ... RCODE
    	0x00, 0x01,			// QDCOUNT
    	0x00, 0x00,			// ANCOUNT
    	0x00, 0x00,			// NSCOUNT
    	0x00, 0x00,			// ARCOUNT
    	0x03, 
    	0x77, 0x77, 0x77,		// www
    	0x03, 
    	0x74, 0x75, 0x74,		// tut
    	0x02, 
    	0x62, 0x79,			// by
    	0x00, 
    	0x00, 0x01,			// TYPE\_A
    	0x00, 0x01			// CLASS\_IN
    };
    int msg\_size = sizeof(msg);
    int iSendOk = sendto(out, msg, msg\_size, 0, (sockaddr\*)&dns\_addr, dns\_size);
    
    if (iSendOk != SOCKET\_ERROR)
    {
    	char bufstr\[100\];
    	sockaddr\_in dest\_addr;
    	int dest\_addr\_size = sizeof(dest\_addr);
    	int iReceived = recvfrom(out, bufstr, 100, 0,(sockaddr\*)&dest\_addr, &dest\_addr\_size);
    }
    
    closesocket(out);
    

    And this code freezes when recvfrom function is execution. The function is executed with an infinite loop and never returns. What do I do wrong?

    Eugene Pustovoyt Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    Windows Development database com hardware debugging question

  • Does anyone know what happened with Hans Dietrich and his site 'hdsoft.com'?
    E Eugene Pustovoyt

    After 2011 Hans doesn't write the new articles and he doesn't have any discussions. Currently his website is not available. Several of my attempts to email him have gone unanswered. Does anyone know what happened?

    Eugene Pustovoyt (ICQ UIN: 161325180) Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    The Lounge com question

  • Does anyone know what happened with Hans Dietrich and his site 'hdsoft.com'?
    E Eugene Pustovoyt

    It happens. :-D I have never used this discussion yet. My root discussion is C/C++/MFC Thanks again. I'll post the question there

    Eugene Pustovoyt (ICQ UIN: 161325180) Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    - Uncategorised posts - com question

  • Does anyone know what happened with Hans Dietrich and his site 'hdsoft.com'?
    E Eugene Pustovoyt

    I'm sorry but what's Lounge!?

    Eugene Pustovoyt (ICQ UIN: 161325180) Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    - Uncategorised posts - com question

  • Does anyone know what happened with Hans Dietrich and his site 'hdsoft.com'?
    E Eugene Pustovoyt

    Thanks, but it's his old email. Unfortunately it's not availabled now.

    Eugene Pustovoyt (ICQ UIN: 161325180) Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    - Uncategorised posts - com question

  • Does anyone know what happened with Hans Dietrich and his site 'hdsoft.com'?
    E Eugene Pustovoyt

    After 2011 Hans doesn't write the new articles and he doesn't have any discussions. His website is currently not available. Several of my attempts to email him have gone unanswered. Does anyone know what happened?

    Eugene Pustovoyt (ICQ UIN: 161325180) Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    - Uncategorised posts - com question

  • How correctly to check up availability of a XP theme?
    E Eugene Pustovoyt

    Thank you. I found an answer :)

    Eugene Pustovoyt (ICQ UIN: 161325180) Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    C / C++ / MFC wpf com tutorial question learning

  • How correctly to check up availability of a XP theme?
    E Eugene Pustovoyt

    I have recently spent some time getting some of my apps looking right on XP styles, by adding a manifest resource, and also modifying some controls that are custom-drawn. However, if I use my xp-style-enabled controls in apps which do not have a manifest, and therefore draw using the old style, I find that my controls still draw with the current XP style. I have used IsAppThemed() as a way of determining how to draw my controls, but I have found that this returns TRUE even though the app is not XP-style-enabled, making the control look odd! I have tried using IsThemeActive but this also always returns TRUE. Does anyone know how I can find out if the app is XP-styled (ie the other controls are using the XP-styles)?

    Eugene Pustovoyt (ICQ UIN: 161325180) Soft and Hard Developer CPPMessageBox v1.0 CPPToolTip v2.1 CPPDumpCtrl v1.2 CPPHtmlStatic v1.2

    C / C++ / MFC wpf com tutorial question learning

  • How to make a vertical text into the Edit Control?
    E Eugene Pustovoyt

    :-D Your sample for drawing and not for the CEdit-derived classes. Changes CEdit font by SetFont methods hasn't effect.

    C / C++ / MFC help tutorial 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