Skip to content

Windows API

Discussions on the APIs of the various versions of Windows

This category can be followed from the open social web via the handle windows-api@forum.codeproject.com

811 Topics 2.7k Posts
  • Browse for Folders & Shell Objects

    linux collaboration tutorial question
    2
    0 Votes
    2 Posts
    7 Views
    U
    haha
  • startprocess

    help
    19
    0 Votes
    19 Posts
    35 Views
    L
    eftekharpour wrote: i don't know please explain clear..:( :( Go to this[^] page. That's the manual. Next, find the link that says "Win32Exception". You can find it on that page, without scrolling. Click on that link, and you'll get a page that explains the exception, and what might cause it. It's a generic exception, and if the message doesn't tell you what went wrong, then you'd need to fetch the NativeErrorCode[^] to see what caused the exception. Bastard Programmer from Hell :suss:
  • startprocess

    help question
    3
    0 Votes
    3 Posts
    7 Views
    L
    eftekharpour wrote: anybody knows ? help meeeeee.. Sure. You got to the manual here[^], and then you can read which exceptions the Start method might throw, and why. ..and if you click on the Exception and read it, you'll find a nice exception-handler that gives some more detail; try { System.Diagnostics.Process myProc = new System.Diagnostics.Process(); myProc.StartInfo.FileName = "c:\nonexist.exe"; //Attempting to start a non-existing executable myProc.Start(); //Start the application and assign it to the process component. } catch(Win32Exception w) { Console.WriteLine(w.Message); Console.WriteLine(w.ErrorCode.ToString()); Console.WriteLine(w.NativeErrorCode.ToString()); Console.WriteLine(w.StackTrace); Console.WriteLine(w.Source); Exception e=w.GetBaseException(); Console.WriteLine(e.Message); } In this particular case, I'd guess that Windows can't find the file - probably because it's not in the local path. Bastard Programmer from Hell :suss:
  • subitem select & edit

    database csharp c++ css json
    3
    0 Votes
    3 Posts
    7 Views
    D
    Richard, thanks for the link! I never wrote MFC-based programs, but I think that I can borrow some ideas from there. Now I start thinking that I can get rid of the Header Common Contol and draw the contents of the table all by my self, not worring only of the grid headers.
  • How to write a Windows terminal server

    sysadmin help tutorial question
    3
    0 Votes
    3 Posts
    9 Views
    B
    GS_windows wrote: I want my WIndows 7 and XP machines to be terminal server. Windows XP and Windows 7 allow for remote sessions. On your client computer, start "Remote Desktop Session" from the Accessories menu of the Start menu, and enter the name or IP address of your "server" (alternatively use Run -> mstsc.exe). It may be necessary to enable Remote Sessions on the "server" computers; and do not forget to add some users to the group of "Remote Desktop Users".
  • SendInput() does not work after GetMessage()

    help announcement
    4
    0 Votes
    4 Posts
    10 Views
    J
    I know it is an old thread, but I think it is worth to explain the problem. You wrote console application. Console does not process any messages, hence your GetMessage (as you pointed) is blocking the thread since it waits for the message to come. There is no messages to handle and you are sitting in the GetMessage without ever exiting. Put a break point in the message loop and see if it is ever hit. JohnCz
  • Question about (CX?) destructor?

    question graphics game-dev help lounge
    3
    0 Votes
    3 Posts
    11 Views
    A
    If whatever god foresaken language you're using works like C++ then the compiler will generate a default constructor for you. This default destructor will call the destructors for the data members for you (in the reverse order they were constructed). If it doesn't work like C++ then all bets are off :-). Cheers, Ash
  • 0 Votes
    1 Posts
    3 Views
    No one has replied
  • RegConnectRegistry : Access Denied

    json help
    5
    0 Votes
    5 Posts
    9 Views
    S
    Hi Pete O'Hanlon, User: Domain Account Remote Machine: Windows 2003 SP2 1. Remote Registry is running. 2. Also tried with local Admin user but not working. Sharing and security model for local accounts, and set to "Classic"
  • The Metro Tile expands: and then ... what ?

    csharp wpf winforms design tutorial
    5
    0 Votes
    5 Posts
    13 Views
    B
    +5 Thanks; I missed seeing this response until today. best, Bill "Our life is a faint tracing on the surface of mystery, like the idle, curved tunnels of leaf miners on the surface of a leaf. We must somehow take a wider view, look at the whole landscape, really see it, and describe what's going on here. Then we can at least wail the right question into the swaddling band of darkness, or, if it comes to that, choir the proper praise." Annie Dillard
  • LoadLibrary error 127 on W7 X64

    sqlite help csharp visual-studio algorithms
    3
    0 Votes
    3 Posts
    10 Views
    D
    Yes I did. Error was due to different version of SQLite than I link in system32 directory.
  • DialogBox - ProgressBar Problem

    help c++
    4
    0 Votes
    4 Posts
    9 Views
    R
    Wow.  This code snippet took me back to 1993! /ravi My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
  • Metro interaction with another application running in Win8 ?

    csharp wpf question
    8
    0 Votes
    8 Posts
    18 Views
    L
    I expect the clients becoming smaller, cheaper, dumber; and the real value of the apps to reside on servers (no Metro there), clouds or other. Bandwidth increasing all the time, we won't continue to carry around big apps. Web services, or whatever fancy name will be in vogue then, and pretty simple client stuff, mostly presentation layer. What client software remains is a browser, some social networking items perhaps, and a lot of gadgetry. We won't be running ERP or SAP locally. BillWoodruff wrote: A conversation where the MS rep is asked: what's Metro going to do for us ? So once more the MS answer will be: everything you need. :-D Luc Pattyn [My Articles] Nil Volentibus Arduum iSad
  • Windows NameSpace Extension

    csharp linux
    2
    0 Votes
    2 Posts
    5 Views
    L
    Please post your questions in one forum only. Unrequited desire is character building. OriginalGriff
  • Need Prodikey pc midi windows 7 64bit driver help

    help
    12
    0 Votes
    12 Posts
    28 Views
    H
    Hello: I'm finding prodikeys pc-midi driver for windows 7 64bit. And I view your topic at here http://www.codeproject.com/Messages/3457937/Re-Need-Prodikey-pc-midi-windows-7-64bit-driver-he.aspx But http://www.proaudiosoft.com has out of service. If you can help me, please send the driver to me.huihuimusic@qq.com Thanks. I'm a chiniese and my English level is very low. If I make some mistakes, please forgive me. Thank you. huihui
  • How to Get To Metro Screen

    windows-admin tutorial question
    3
    0 Votes
    3 Posts
    8 Views
    P
    As far as I can tell, that is correct. Forgive your enemies - it messes with their heads "Mind bleach! Send me mind bleach!" - Nagy Vilmos My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
  • 0 Votes
    10 Posts
    21 Views
    T
    you could just use itoa() or sprintf() as has been mentioned. But here's a better version of your function: std::string get_value(int value) { std::string result = ""; if (value < 0) { value *= -1; result = "-"; } do { int digit = value % 10; value /= 10; result = (char)(digit + (int)'0') + result; } while (value > 0) result = result.reverse(); return result; } If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun
  • UAG: how to ‘embed’ into DCA?

    sysadmin com security help tutorial
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • 0 Votes
    3 Posts
    8 Views
    C
    Thanks for the info, but I can't reproduce. Paul Watt wrote: BIF_RETURNFSANCESTORS definitely excludes the root dir, which might be the difference between the two flags, and this flag also excludes the use of certain network shares. With these flags, I do get root directories (C:\ for example): BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE | BIF_UAHINT | BIF_RETURNFSANCESTORS Weird, huh? Thanks anyway. I'm not blocked by this problem thankfully. /* Charles Oppermann */ http://weblogs.asp.net/chuckop
  • 0 Votes
    5 Posts
    13 Views
    P
    Great! I am glad YOU worked it out, and that I could help. Regards,