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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

dene99970

@dene99970
About
Posts
14
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • StreamWriter disposed before call to Close() in destructor
    D dene99970

    I'm trying to make a logging class and I place SteamWriter.Close() in the destructor, however it seems that Dispose() has already been called on the StreamWriter by the time the destructor is called. Since I cant' call Close(), the text is never flushed to the file. How can I fix this? Turning auto-flush on helps but i still think i should be closing the stream properly rather than letting it happen automatically at program exit.

    C# question help

  • Named Pipes 2-way commication
    D dene99970

    If I open one named pipe and want to communicate both ways between client and server, how do keep the client from reading data it just wrote to the pipe? Or is the data only transfered in one direction, that that the client cannot end up reading the data it writes? For example: Client writes a string, then assume the server reads the string, so it checks the pipes for a response, then ends up reading the string it just wrote to the pipe.

    C / C++ / MFC sysadmin tutorial question

  • contact client pc from web server
    D dene99970

    I guess what I mean to say is that once connection is initiated by client, how can I have fast real-time communcation between client and web server. Can that be done on one of the many shared hosting solutions that cost $20 a month or so, or do I need a dedicated server with 2 seperate components: 1. the web server 2. the server app programmed in perhaps c++, java, or whatever

    Web Development sysadmin hosting business question

  • contact client pc from web server
    D dene99970

    Let's say there is a client app installed on a computer. I want to send notification to the client app from the web server. I know I can do this with a client and server app by opening a tcp connection. Can a non-http tcp connection be opened between the client app and the http server? Do I need to run a client app on the web server? Will running such an app, like an .exe file, cause performed problems for a standard http web server? Would I need a dedicated server? Initiating periodic http requests from client app would not be fast enough for my requirements.

    Web Development sysadmin hosting business question

  • CMDIChildWnd in new thread
    D dene99970

    When trying to create CMDIChildWnd in a worker thread I get an ASSERT fails in winmdi.cpp: if (pParentWnd == NULL) { CWinThread *pThread = AfxGetThread(); ASSERT(pThread); CWnd* pMainWnd = pThread->m_pMainWnd; ASSERT(pMainWnd != NULL); ASSERT_KINDOF(CMDIFrameWnd, pMainWnd);//****this line fails pParentWnd = (CMDIFrameWnd*)pMainWnd; } S I guess the parent window is not being set correctly. How can this be set?

    C / C++ / MFC c++ question

  • window in thread
    D dene99970

    I want to create a window in a thread. Instead of deriving a class from CWinThread and setting the m_pMainWnd variable, can I just create a worker thread and create the window in the controlling function. Then could I post messages to the window, and the resulting functions calls would occur in the new thread?

    C / C++ / MFC question

  • how to change grid color in CListCtrl?
    D dene99970

    This article is about CList not CListCtrl and has nothing about changing the grid color.

    C / C++ / MFC css tutorial question

  • how to change grid color in CListCtrl?
    D dene99970

    Is it possible? It seems to be automatic based on background color.

    C / C++ / MFC css tutorial question

  • sending input to window
    D dene99970

    Nope, look at the following string: "hello" strlen returns 5, which means the following characters are sent: 0 - 'h' 1 - 'e' 2 - 'l' 3 - 'l' 4 - 'o' Besides if I send 2 string in a row still only the last character of the last string is ommitted, not the last characters of both strings.

    C / C++ / MFC

  • sending input to window
    D dene99970

    I've attached to another window's input by calling AttachThreadInput(). I'm now trying to send text, as follows: int size = strlen(text); for(int i=0; i

    C / C++ / MFC

  • text file as custom resource
    D dene99970

    Lets say I have a text file named text1.txt, with a few lines of text. I want to include the file as resource in the .exe, so that no one can read the file. Then I want to be able to use it just as if it was an external file, such as std::ifstream fin('text1.txt'). What steps need to be taken so that that line of code std::ifstream fin('text1,txt'), will work for an internal resource?

    C / C++ / MFC question learning

  • WMI Win32_DiskDrivePhysicalMedia
    D dene99970

    Based on articles from this site: http://www.codeproject.com/system/UsingWMI.asp http://www.codeproject.com/system/Using\_WMI\_in\_Visual\_C\_\_.asp I've learned how to get information from a Win32_* class. First step: Service->ExecQuery(L"WQL", L"SELECT * FROM Win32_BaseBoard",WBEM_FLAG_FORWARD_ONLY,NULL, &enumerator); And later second step: obj->Get(L"SerialNumber", 0, &var, 0, 0); However, I don't know how to do it from class Win32_DiskDrivePhysicalMedia. The first step works of course, but I'm not sure how to specify the Antecedent or Dependent. I tried this: hf = obj->Get(L"Antecedent.SerialNumber", 0, &var, 0, 0); But it doesn't work.

    C / C++ / MFC com tutorial learning

  • custom menu item command ids
    D dene99970

    What is the exact acceptable range for creating your own custom command ids for menue items? I was trying to create a dynamic popup menu. Everything worked fine, I created menu item with AddMenu(): AddMenu(MF_ENABLED | MF_STRING, id, "aaa") my id was the problem. The numbers I was using were conflicting I guess with MFC reserved numbers. I experimented a bit and found that if I used really high numbers, starting at say 400000, it worked. Otherwise I get multiple errors, such as the right id not being returned in the OnCommand() override, or the menu item being greyed.

    C / C++ / MFC question c++ help

  • VC++ .Net migration problem
    D dene99970

    I'm getting this error in VC++ .Net 2003 in a project upgraded from VC++ 6: LINK : fatal error LNK1104: cannot open file "msvcirtd.lib" Anyone know how to fix this? I've found the VC++ 6 version of msvcirtd.lib, but it seems not to exist for VC++ .Net.

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