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
  • 0 Votes
    0 Posts
    17 Views
    No one has replied
  • Animate GIF in C

    help com graphics c++
    15
    0 Votes
    15 Posts
    71 Views
    L
    Jochen Arndt wrote: Each window must have for example it's own message loop Not in cases where there are client Windows inside a main, and I am not talking about MDI. But in MFC each Window needs a message map. I used Win32 and MFC when I was developing for a living, and never found that MFC made things significantly easier. However, as with all such questions, it's largely a matter of personal choice. I am sure there are plenty of MFC developers who hate Win32.
  • Write plugin for Windows in JAVA

    java sysadmin windows-admin help tutorial
    2
    0 Votes
    2 Posts
    19 Views
    L
    Please provide proper details of your problem.
  • 0 Votes
    3 Posts
    27 Views
    L
    I don't think bots are currently recognized as being able to legally agree to anything. "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal
  • Win32 API with c

    learning game-dev json help tutorial
    3
    0 Votes
    3 Posts
    32 Views
    Z
    Kebedeaka wrote: please help me We will gladly do that when you ask something specific. Right now you have called the mechanic and told them you want to drive across country and then asked for their help. What will they do? There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.
  • Microsoft COM

    com question
    5
    0 Votes
    5 Posts
    31 Views
    M
    Let me reverse that down vote, because I agree with you, it was not that useful and seems to have died out.
  • win 32 api with c

    json question
    4
    0 Votes
    4 Posts
    28 Views
    K
    I already started win32 api. I know the basic. I want to develop a program which support education. The program I want to do this In the first page or window a list of buttons(Eg. Physics, Mathematics...) When user click on this buttons a new screen with a list of buttons(Example in Physics button- Static, Dynamics...) After User click on of the button(Example Statics) New window with a full of text that describe about static Beside this this program has back and home button. Back button backward the on step down. Home button to the initial screen
  • 0 Votes
    4 Posts
    31 Views
    L
    I find this answer to be more "English". asp.net web api - Difference between wcf restful services and WEB API - Stack Overflow[^] Or this says the same thing. Difference between WCF and Web API and WCF REST and Web Service[^]
  • plz help me rohitab api

    json help
    2
    0 Votes
    2 Posts
    15 Views
    L
    I'm tempted to ask where you lost it. Your question is unclear, please try to explain in a few sentences what you're trying to achieve. Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)
  • Pass arguments to ftp -s command

    com sysadmin question
    4
    0 Votes
    4 Posts
    39 Views
    M
    Thank you!
  • 0 Votes
    3 Posts
    21 Views
    J
    :thumbsup:Thanks! That looks like a good resource - I will try it out.
  • EvtChar and overlapped Readfile(serialport....

    help tutorial question
    4
    0 Votes
    4 Posts
    29 Views
    L
    See Canceling Pending I/O Operations (Windows)[^].
  • Desktop Shortcuts position at First Logon

    windows-admin help question
    2
    0 Votes
    2 Posts
    14 Views
    P
    Hmmm. If you save it at logoff then restore it at logon, then I wouldn't expect it to work at first logon because there has been no previous logoff to save it. Cheers, Peter Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
  • Windows Desktop Align Icons To Grid

    csharp css json help
    3
    0 Votes
    3 Posts
    19 Views
    J
    Thanks. I did find that and tried it but had a problem with it. While it did actually toggle the auto arrange functionality, the change did not show up in the desktop menu that comes up when you right click an empty icon position on the desktop. That menu item is still checked even when auto arrange is off and vice versa. The desktop doesn't expose its menu so I searched the desktop for an unused icon position and used sendinput to move the mouse pointer there, right click, and then send key strokes to manipulate the menu itself. It's a bit messy but it works reliably. Fortunately I already had code to do the sendinput from another project. Thanks for taking the time to answer.
  • a small problem with function

    help
    7
    0 Votes
    7 Posts
    36 Views
    L
    Thank you sir for your kind help. It worked
  • Windows 8.1 Event log problem

    c++ help
    4
    0 Votes
    4 Posts
    23 Views
    N
    The link was not broken. the site developerteacher.com is down...
  • Client Universall App WebApi

    question testing beta-testing json announcement
    3
    0 Votes
    3 Posts
    19 Views
    P
    This is the mehod Web api "POST": // POST: api/Bustas [ResponseType(typeof(Busta))] public IHttpActionResult PostBusta(Busta busta) { if (!ModelState.IsValid) { return BadRequest(ModelState); } db.Bustas.Add(busta); db.SaveChanges(); return CreatedAtRoute("DefaultApi", new { id = busta.IDBusta }, busta); } putting a breakpoint on this line db.Bustas.Add(busta); this result is (IDbusta = 3 , NomeCliente = nulll, prezzo = 0)
  • 0 Votes
    1 Posts
    8 Views
    No one has replied
  • 0 Votes
    9 Posts
    57 Views
    D
    Member 11545824 wrote: how can check the rest of your program for non-GDI memory leaks, if i don't know how? :( One way is to replace operators new(), delete(), etc. with operators that log memory allocations. For example, an pseudo-code implementation of new() and delete() could look like this: std::map< void*, std::size_t > allocations; void* operator new( std::size_t size ) { void* p = std::malloc( size ); if ( p != nullptr ) { allocations.insert( make_pair( p, size ) ); return p; } throw std::bad_alloc(); } void operator delete( void* p ) { if ( allocations.find( p ) == allocations.end() ) { // handle case of deallocation of unallocated memory } std::free( p ); allocations.erase( allocations.find( p ) ); } Note that the code will probably not compile; I just wrote it quickly as an example. An additional function, called when your program exits, can ensure that the allocations map is empty. If it is not, the size(s) of the blocks may give you an idea as to what blocks were not freed. If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill
  • Terminal: Schedule a program with main method arguments

    help question
    5
    0 Votes
    5 Posts
    36 Views
    M
    Ah... what a simple solution. Thank you VERY much!